Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Developing Analytics Applications
report parameter not setting with 'setParameterValues'
Migrateduser
I am trying to run a report in a servlet using IRunTask. I am setting the parameter of the report using setParameterValues(hashmap). My report has following types of parameters:
3 multiselect parameters and 3 simple parameters.
My hashmap is like this: HashMap<String, String[]> paramValues; This is taking value from a json like below:
"paramvalues":{
"param1":[
"value1"
],
"param2":[
"value2"
],
"param3":[
"value1",
"value2"
]
}
This is giving me an error saying the parameter which are simple are expected to be of 'string' and not java.lang.String. This problem is because the simple parameter is expecting just a string and not an array of string.
The problem now is that i want to set the report parameters all at once using a hashmap. But because of the above error i cant seem to set them all with a single hashmap. The only solution i can think of, is parsing my hashmap in to separate strings for each parameter. Is there any other way where i can do it using a single hashmap or set all the parameters in one shot??
Avinash
Find more posts tagged with
Comments
There are no comments yet