Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
205
Problem: Loading data to XamPivotGrid and XamPivotDataSelector
posted

Good Morning,

I´m new at the forum posts also XamPivotGrid and XamPivotDataSelector are new to me.

I'm trying to build an application that uses Silverlight and XAML, and I have a problem with these two components. I'm using Visual Studio 2010 and SSAS 2005.

I followed the directions that are on the site

http://blogs.infragistics.com/blogs/atanas_dyulgerov/archive/2010/01/27/how-to-set-up-xmla-http-access-for-sql-server-analysis-service-2008-and-access-the-adventure-works-2008-from-an-infragistics-pivotgrid-application.aspx

parameterizing the entire IIS site and creating what they call "olap", associating the XML file "clientaccesspolicy.xml" to my project.

The problem is when I run the program I can not get data in my components to choose from (Database, Dimensions, Measures ...)

The code XAML I use is below:


<UserControl x:Class="Teste.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="398"
    d:DesignWidth="888" 
    xmlns:olap="http://schemas.infragistics.com/olap"
    xmlns:ig="http://schemas.infragistics.com/xaml">

    <Grid x:Name="LayoutRoot" >
       
        <Grid.Resources>
            <olap:XmlaDataSource x:Key="xmlaDataSource"
                                 ServerUri="http://localhost/olap/msmdpump.dll">
            </olap:XmlaDataSource>
        </Grid.Resources>
       
       <ig:XamPivotGrid HorizontalAlignment="Left"
                         Margin="271,49,0,0"
                         Name="xamPivotGrid1"
                         VerticalAlignment="Top"
                         Height="349"
                         Width="617"
                         DataSource="{StaticResource xmlaDataSource}"/>
      
        <ig:XamPivotDataSelector HorizontalAlignment="Left"
                                 Margin="0,49,0,0"
                                 Name="xamPivotDataSelector1"
                                 VerticalAlignment="Top"
                                 Width="265"
                                 DataSource="{Binding xmlaDataSource, ElementName=xamPivotGrid1}"/>
    </Grid>
</UserControl>

 

Below is my C# code:

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Teste
{
    public partial class MainPage : UserControl
    {
        public MainPage()
        {
            InitializeComponent();
        }
    }
}

 

Can anyone help me?

sseixas