Passing an integer value from a script to report doesn't work

You are not using your parameter at all because it does not exist. You have to create the parameter, idValue in the report, not just the query.

image

Example for Named Query source

For query source, you use a ? for the variable place holder, not the named query style :intValue. After you put in a question mark, a window will appear to choose the parameter to substitute into the query.