I am trying to write a java application to access a report in Cognos 11. I am trying to pass a parameter into the report. For now, it's proof of concept so it is hardcoded string. Problem is when I use this method, the output HTML file is the parameter page and not the underlying report.
ParameterValue parameters[] = new ParameterValue[1];
parameters[0] = new ParameterValue();
parameters[0].setName("pFundingDescription");
ParmValueItem[] pvi = new ParmValueItem[1];
SimpleParmValueItem item = new SimpleParmValueItem();
item.setUse("AUTO PAYMENTS");
pvi[0] = item;
parameters[0].setValue(pvi);
The parameter name in the report is "pFundingDescription" and it is a mutli-select which includes the option "AUTO PAYMENTS".
How do I make this work?
ps: I was looking at this question to get as far as I did: Cognos v11 SDK Parameter Passing