Skip to Content
0
Dec 01, 2011 at 08:27 PM

Calling and scheduling existing publication by SDK with promt value

79 Views

Hi

Context

Calling and scheduling existing publication by SDK with different promt values, included document in publication are Webi.

Issue

I can call and shedule publication with different promp values, however some promts are multivalue with various value count. (For example there is value 111 in first case and values 222 and 333 in second case). Problem is i can fill such a many values how i set in publication by GUI (to understant i can change value but i can;t add/delete another value in one promt).

Here is some example of my code:

IProperties oInfoDocumentsProp = publication.getProcessingInfo().properties().getProperties("SIPROCESSINFO_PER_DOC");

IProperties oInfoDocumentProp = oInfoDocumentsProp.getProperties("1"..."N");

IProperties oWebiPrompts = oInfoDocumentProp.getProperties("SI_WEBI_PROMPTS");

IProperties oWebiPrompt = oWebiPrompts.getProperties("1"... "N");

//to get Values collection

IProperties oWebiPromptValues = oWebiPrompt.getProperties("SI_VALUES");

//to get N value

IProperty oWebiPromptValue = oWebiPromptValues.getProperty(1...N);

//to set prompt value

oWebiPromptValue.setValue("something")

_publication.schedule/save.... .

for now it is good, however when i do this

oWebiPromptValues. add(x,x,x) or oWebiPromptValues.removeLocal(n) it do almost nothing when i look into publicaiton by GUI.

Any idea how to change promt values count ?

Thanks in advance.