Community
Participate
Working Groups
Build Identifier: I define a function "replace_query" in an external .js file, and then include it in the report. I then use the function in the beforeOpen script. If the data set is not used to generate a dynamic parameter selection, then it works fine. Otherwise, when viewing the report, it will give this error: Error evaluating Javascript expression. Script engine error: ReferenceError: "replace_query" is not defined. Reproducible: Always Steps to Reproduce: 1. Define a function in an external .js file 2. Include the .js file in the report 3. Call the function in the beforeOpen script of a data set that is also used to generate a dynamic parameter selection
Created attachment 178236 [details] sample report
Created attachment 178237 [details] sample .js file
(In reply to comment #2) > Created an attachment (id=178237) [details] > sample .js file Which BIRT version were you using? I can not reproduce this issue on BIRT 2.6.0 release, using the attached report and js file. Dynamic parameter list pops up with customer names.
You are not supposed to see any customer name, because the beforeOpen script should have replaced "1 = 1" with "1 = 0"
(In reply to comment #4) > You are not supposed to see any customer name, because the beforeOpen script > should have replaced "1 = 1" with "1 = 0" Which BIRT version were you using to reproduce this issue?
I am using version 2.5.2 here.
(In reply to comment #6) > I am using version 2.5.2 here. Can you try 2.6.1 to see if the issue still exists? If yes, please reopen the bug.