locked
Help on PPSM SDK RRS feed

  • Question

  •  

    Hi folks,


    Im trying to insert a scorecard in a .Net web application in runtime. I developed the following code:

     

    Microsoft.PerformancePoint.Scorecards.Scorecard scorecard = Microsoft.PerformancePoint.Scorecards.PmService.CreateInstance("http://localhost:40000/webservice/pmservice.asmx").GetScorecard(scorecardId);
               
    if (this.scorecardControl == null)
    {
      this.scorecardControl = new Microsoft.PerformancePoint.Scorecards.WebControls.ScorecardCtrl();
    }
    this.scorecardControl.ID = "scorecardCtrl";
    Panel scPanel = new Panel();
    scPanel.CssClass = "ms-WPBody";
    scPanel.Controls.Add(this.scorecardControl);
    this.mainPlaceHolder.Controls.Add(scPanel);
    this.scorecardControl.SetData(scorecard,configuredViewId,"Resources");

    But when i try to insert a Microsoft.PerformancePoint.Scorecards.Scorecard (scPanel.Controls.Add(this.scorecardControl); ) object type i get the following error:

    Page.RegisterRequiresPostBack can only be called on controls that implement IPostBackDataHandler

     

    Can someone help me on this please?

     

    Best Regards

    Wednesday, February 27, 2008 2:55 PM