本文介绍了Cognos v11 SDK参数传递的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网页,用户可以在其中选择(n)条记录进行打印。是否可以将一组ID发送给Cognos?

I have a webpage where the users can pick (n) records to print. Is there a way to send an array of Id's to Cognos?

还是将它们保存在表或xml文件中并让cognos将其用作数据源更好?

Or is it better to save them off in a table or xml file and have cognos use that as a datasource?

推荐答案

因此,您只需创建多个simpleParmValueItems

So you just create multiple simpleParmValueItems

parameterValue[] parameters = new parameterValue[1];
parameters[0] = new parameterValue();
parameters[0].name = "variableName";

parmValueItem[] pvi = new parmValueItem[2];
simpleParmValueItem item = new simpleParmValueItem();
item.use = "value1";
pvi[0] = item;
item = new simpleParmValueItem();
item.use = "value2";
pvi[1] = item;

parameters[0].value = pvi;

这篇关于Cognos v11 SDK参数传递的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-30 08:02