<< Click to Display Table of Contents >> Navigation: »No topics above this level« TOC : Script API > JavaScript > JavaScript API > ChartObject > ChartAreaPieceRotational3D > Method >SetLinkParam |
Sets 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);
ChartPiece.SetLinkServer("127.0.0.1", 8003, "sample.ozr");
ChartPiece.SetLinkParam("Title", "Sales by Region");
ChartPiece.SetLinkParam("Region", "Seoul");
}
}
Available Events :
OnPostChartBuild
See also :