I am trying to build a report generator, each report has a specific script, whose name is stored on each record, the question is how to create a button on a report that will launch that specific script?
Have a script that uses If() and send a ScriptParameter to this Script with name of Script. Then
If( get(ScriptParameter )= "Your report name 1"
Perform Script (Report 1)
Else if ( get(ScriptParameter) = "Your report name 2"
Perform Script (Report 2)
I had thought of that approach, but that means, that you have to hardcode the reports in the script.
The way I'm trying do it, is having a field within the record to store the script's name, but I cannot use a variable in the Perform Script structure, you have to select it, in order to make it work.
Do you have any suggestions?
Retrieving data ...