Can I use runScript() in Reporting parameter default?

  • The expression works correctly when I use it in an expression binding on a Perspective custom property. The dataset is returned.
  • When I try it in the report parameters as shown above I get,
    WARN: Error parsing default value expression for parameter "reportColors" -- Error executing script for runScript() expression:Report_Functions.reportColors

I can't find any documentation to say that runScript() won't work here.

Any ideas?

Does Report_Functions exist in your gateway scripting project?

Should not matter. Reports are part of a project, and that project's library is in scope.

Sounds like a bug.

As a workaround, use a script data source to make the call and assignment.