TOC : Script API > JavaScript > JavaScript API > Component > Multiplex > Chart > Method >

 

SetLinkEvent

<< Click to Display Table of Contents >>

TOC : Script API > JavaScript > JavaScript API > Component > Multiplex > Chart > Method >

 

SetLinkEvent

 

 

Raise the link event and send argument values to the external event(OZLinkCommand, OZUserActionCommand).

 

 

 

Prototype :

 

void SetLinkEvent

(

        string UserTag,

        string UserValue,

        [string MouseButton],

        [bool UsePopupMenu]

)

 

 

 

Arguments :

 

UserTag

user defined tag

UserValue

User defined value

MouseButton

mouse button to raise the event ("Left", "Right" or "Left, Right")

the default is "Left"

UsePopupMenu

true for enabling the viewer popup menu

the default is "false" (disable)

 

 

 

Reference :

 

Set viewer parameter viewer.linkcommand or viewer.useractioncommand to true before raising OZLinkCommand or OZUserActionCommand.

 

UsePopupMenu takes effects only when MouseButton is "Right" or "Left, Right".

 

 

 

Example :

 

This.SetLinkEvent("Region", "Seoul");

 

 

 

Available Events :

 

OnAddToPage,  OnBind,  OnEndBind,  OnInitialize,  OnStartBind