2010-12-07 10 views

答えて

1

SharePoint Server 2010はPmServiceの代わりにPPSAuthoringService Webサービスを使用します。まだ見ていない場合は、この記事をPerformancePoint Servicesチームのブログでチェックしてください。http://blogs.msdn.com/b/performancepoint/archive/2010/09/13/using-the-ppsauthoringservice-web-service.aspx

OLAPレポートのクエリは、ReportView.CustomDataプロパティに格納されています。このような何かがうまくいくはずです(この例ではAPIからWebサービスを呼び出していますが)。警告 - 私はアマチュアのプログラマーです。

2/4/11 - 次のようにレポートのCustomData propを照会するのではなく、レポートの場所をGetMdxメソッドに渡すだけで済みます。

static void Main(string[] args) 
{ 
    string pathToAuthoringService = "http://<serverName>/_vti_bin/PPS/PPSAuthoringService.asmx"; 
    IBIMonitoringAuthoring service = BIMonitoringAuthoringServiceProxy.CreateInstance(pathToAuthoringService); 

    string listUrl = "/BICenter/Lists/PerformancePoint Content/"; 
    FirstClassElementCollection fcos = service.GetListItems(listUrl); 
    Dashboard dashboard = new Dashboard(); 

    foreach (FirstClassElement fco in fcos) 
    { 
     if (fco.ContentType == FCOContentType.PpsDashboard && fco.Name.Text == "Contoso Sales Management") 
     { 
      dashboard = fco as Dashboard; 
     } 
    } 

    // Or if you know the ItemUrl, you can retrieve the dashboard directly. 
    //RepositoryLocation dashboardLocation = new RepositoryLocation("/BICenter/Lists/PerformancePoint Content/32._000"); 
    //Dashboard dashboard = service.GetDashboard(dashboardLocation); 

    List<RepositoryLocation> childLocations = dashboard.GetChildFCOLocations(); 
    foreach (RepositoryLocation location in childLocations) 
    { 
     if (location.ItemType == FirstClassObjectType.ReportView) 
     { 
      ReportView report = service.GetReportView(location); 

      if (report.IsAnalyticReport()) 
      { 
       Console.WriteLine(report.CustomData); 
     } 
    } 
} 

} PPSの

0

あなたはPPSデザイナーアプリケーションを開き、ダッシュボードで使用されているグラフの名前と、MDXを表示するためにデザインモードに切り替えることができるレポートから表示できます。

また、SQLプロファイラを実行して、PPSからAnalysis Servicesに送信されたクエリをトレースすることもできます。あなたはPPSが多くのキャッシングをしていることに気づく必要があります。私はそれがデフォルトで10〜20分だと思うので、最初のクエリーが間に合わない場合は、クエリーが再度送られるまで待つ必要があります。

+0

あまりにも多くのものは、同じ理由でプロファイラを使用することはできません、それを行うためにその実用的ではない、PMServiceがやったのSharePointの以前のバージョンでそれを行う方法がありました仕事、今それは存在しません:( – Shekhar

関連する問題