<< Click to Display Table of Contents >> Navigation: »No topics above this level« TOC : Script API > JavaScript > JavaScript API > ChartObject > ChartCylinderPiece3D > Method >SetLinkServlet |
Requests a report to OZ servlet type server.
Prototype :
void SetLinkServlet
(
string ServletURL,
string ReportFilePath
)
Arguments :
ServletURL |
URL of the servlet type server |
ReportFilePath |
Report File Path |
Example :
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.SetLinkServlet("http://127.0.0.1:8080/oz/server", "sample.ozr");
}
}
Available Events :
OnPostChartBuild