<< Click to Display Table of Contents >> Navigation: »No topics above this level« TOC : Script API > JavaScript > JavaScript API > ChartObject > ChartLabel > Method >SetLinkParam |
Set the value of the form parameter for the report to be linked.
Prototype :
void SetLinkParam
(
string FormParameterName,
string FormParameterValue
)
Arguments :
FormParameterName |
form parameter name |
FormParameterValue |
form parameter value |
Reference :
Use SetLinkOption() to set the viewer parameter value.
Example :
//link sample.ozr and set form parameter values for report
var ChartRootUnit = This.GetChartRootUnit();
var ChartShapeCnt = ChartRootUnit.GetShapeCount();
for(i = 0; i < ChartShapeCnt; i++) {
var ChartShape = ChartRootUnit.GetShape(i);
var ChartPieceCnt = ChartShape.GetPieceCount();
for(j = 0; j < ChartPieceCnt; j++) {
var ChartPiece = ChartShape.GetPiece(j);
var ChartPieceLabel = ChartPiece.GetLabel();
if(ChartPieceLabel != null) {
ChartPieceLabel.SetLinkServer("127.0.0.1", 8003, "sample.ozr");
ChartPieceLabel.SetLinkParam("Title", "Sales by Region");
ChartPieceLabel.SetLinkParam("Region", "Seoul");
}
}
}
Available Events :
OnBind, OnInitialize, OnPostChartBuild, OnStartBind
See also :