Skip to main content



      Home
Home » Archived » BIRT » Unable to invoke the script in CHARTs using API
Unable to invoke the script in CHARTs using API [message #253905] Wed, 29 August 2007 18:01
Eclipse UserFriend
Originally posted by: asdf.asdf.com

Hello Experts,

I am trying to invoke a script when a pie slice is clicked, I have
implemented the action and trigger as follows , but when I click on the
pie slice I get a js error which I cant debug.Please le me know if you see
anything wrong with this.

Trigger trigger = TriggerImpl.create(TriggerCondition.ONCLICK_LITERAL,
ActionImpl.create(ActionType.INVOKE_SCRIPT_LITERAL,
ScriptValueImpl.create("alert('Hello!');\n" +
"alert('"+"showHide(row[\""+xAxisColumn.replace('.',
'-')+"\"])"+"');\n"+
"function showHide(chartName){ \n"+
"alert(chartName);\n"+
"if(document.getElementById(chartName).style.display == 'none')
\n " +
"{document.getElementById(chartName).style.display =
'block';}\n" +
"else{document.getElementById(chartName).style.display =
'none';}\n" +
"document.getElementById(chartName).focus();}\n" +

"showHide(row[\""+xAxisColumn.replace('.', '-')+"\"]);")));
Previous Topic:Don't see the "Query" dialog while creating a new Data Set
Next Topic:Multithreaded App
Goto Forum:
  


Current Time: Mon May 12 05:25:45 EDT 2025

Powered by FUDForum. Page generated in 0.04098 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top