I am trying to use the 10.1.1. SDK Sample RunReport. There are two reports that I want to run. One report (report1) has no parameters and one report (report2) has a single parameter. I do not want to prompt the user. I know the parameter name (at lest what the dropdown control is called in report studio) and what I want for the value.
1) How do you run a report with no parameters? I am using the following "run" java command. Assumed with no parameters it would just be the following.
ParameterValue parameterValues[] = new ParameterValue[] {};
run(objectPath, parameterValues, options)
I have also tried
ParameterValue parameterValues[] = null;
run(objectPath, parameterValues, options)
Both give me a NULLPointerException.
2) How do you run a report with a single parameter? Obviously I have no idea since I cannot get #1 to work.