<< Click to Display Table of Contents >> Navigation: »No topics above this level« TOC : Script API > JavaScript > JavaScript API > ChartObject > ChartPiePiece3D > Method >SetLinkRepository |
Executes or saves the file on the server repository.
Prototype :
void SetLinkRepository
(
string RepositoryFileURL,
string FileExecuteMode
)
Arguments :
RepositoryFileURL |
Repository File URL |
FileExecuteMode |
File Execution Mode |
Reference :
HTML5JS viewer only support "save".
Android and iOS viewers only support "run".
File Execution Mode:
mode |
description |
run |
execute the linked file |
save |
save the linked file |
choice |
execute/save/cancel the linked file |
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.SetLinkRepository("ozp://sample.jpg", "choice");
}
}
Available Events :
OnPostChartBuild