3
Views
3
Comments
link to action
Question
hello,

can I link externally an action?

Fusion Charts allows drill down by having a URL link in the data, and I wanted to link to an action, but I don't know how to reference the action, is there a URL for an action?

thanks,

Rui Pereira
2024-06-12 10-07-10
Daniel Martins
Hi.

You can link your graph to a javascript action, here you can find more documentation about it:

https://kb.fusioncharts.com/questions/459/What+is+a+Drill-down+chart%3F#javascript


When you are creating the XML you cand add the javascript action.

JavaScript: prefix :
provide single or multiple JavaScript functions or statements after JavaScript: prefix. e.g.,
<set label='USA' value='235' link="JavaScript:  CallOSAction();"/>
Create a hidden button  that executes the screen  action (do not forget to give a name to your button)


You can achive what you want, if, when you call the JS action and click the hidden button, this javascript code would look something like :
function CallOSAction(){
    osjs(function($) {
         $('#'+ElemId).click();
    });    

}


Cheers
UserImage.jpg
rui.pereira
thanks a million Daniel
2024-06-12 10-07-10
Daniel Martins
Great! 


I'm glad that you sorted it out the solution, and, I'm glad i could help you.
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.