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
378
XamlPivotGird doesn't work when I use my own XmlaDataSource
posted

Here is my source code

<UserControl x:Class="mytest.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"
             xmlns:olap="http://schemas.infragistics.com/olap"
             xmlns:xmla="clr-namespace:Infragistics.Olap.Xmla;assembly=InfragisticsSL4.Olap.Xmla.v10.2"
             mc:Ignorable="d"
             d:DesignHeight="300"
             d:DesignWidth="400"
             xmlns:ig="http://schemas.infragistics.com/xaml">
    <Grid x:Name="LayoutRoot"
          Background="White">
        <!--<Grid.Resources>
            <olap:XmlaDataSource x:Key="DataSource"
                                 ServerUri="http://sampledata.infragistics.com/olap/msmdpump.dll"
                                 Database="Adventure Works DW Standard Edition"
                                 Cube="Adventure Works" />
        </Grid.Resources>-->
        <Grid.Resources>
            <olap:XmlaDataSource x:Key="DataSource"
                                 ServerUri="http://localhost/olap/msmdpump.dll"
                                 Database="Animal Cube"
                                 Cube="Crop Test" />
        </Grid.Resources>
        <ig:XamPivotDataSelector HorizontalAlignment="Left"
                                 Margin="249,0,0,0"
                                 Name="xamPivotDataSelector1"
                                 VerticalAlignment="Top"
                                 DataSource="{StaticResource DataSource}" />
        <ig:XamPivotGrid HorizontalAlignment="Left"
                         Name="xamPivotGrid1"
                         VerticalAlignment="Top"
                         DataSource="{StaticResource DataSource}"
                         Width="243" />
    </Grid>
</UserControl>


when I use the first Datasource(ServerUri="http://sampledata.infragistics.com/olap/msmdpump.dll"),everything is ok;but when I use my own Datasource(ServerUri="http://localhost/olap/msmdpump.dll) the XamlPivotGird and XamPivotDataSelector do not work. ServerUri="http://localhost/olap/msmdpump.dll is correct,and I used it in WPF version.

Parents Reply Children