Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361285 - Invoke script functions namespace
Summary: Invoke script functions namespace
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 3.7.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact: Hao Zhou CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-18 14:02 EDT by donino donino CLA
Modified: 2011-11-09 21:37 EST (History)
1 user (show)

See Also:


Attachments
A simple example report using invoke scripts (48.77 KB, application/octet-stream)
2011-10-18 14:02 EDT, donino donino CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description donino donino CLA 2011-10-18 14:02:23 EDT
Created attachment 205447 [details]
A simple example report using invoke scripts

When the chart interactivity "invoke script" feature is used, this kind of html code is generated by Birt Engine:

<Script>function userCallBack1318885099(evt,categoryData, valueData, valueSeriesName, legendItemText, legendItemValue, axisLabel)
  {ShowEventData(evt, categoryData, valueData, valueSeriesName, legendItemText, legendItemValue, axisLabel);
};
</Script>

If the API HTMLRenderOption.setHTMLIDNamespace(String namespace) is enabled, all html elements are namespaced except these 'userCallBack' scripts.

So in a portlet context, if several instances of a report are aggregated on a single page, using invoke scripts lead to unexpected behavior since all usercallback functions have the same name. 

userCallBack functions should be namespaced when HTMLRenderOption.setHTMLIDNamespace is used , just like other DOM elements generated.