TOC : Script API > JavaScript > JavaScript API > ChartObject > ChartCylinderPiece3D > Method >

 

SetLinkExecute

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

TOC : Script API > JavaScript > JavaScript API > ChartObject > ChartCylinderPiece3D > Method >

 

SetLinkExecute

 

 

Sets the command to execute by the link.

 

 

 

Prototype :

 

void SetLinkExecute

(

        string Command,

        string Parameter

)

 

 

 

Arguments :

 

Command

Command to execute

Parameter

Parameter for the command

 

 

 

Reference :

 

This is only supported on the ActiveX Viewer.

 

 

 

Example :

 

//Script that executes Microsoft Edge

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.SetLinkExecute("msedge.exe", "--profile-directory=Default");

  }

}

 

 

 

Available Events :

 

OnPostChartBuild