on 05-16-2016 8:17 PM
Hi,
I am trying to write SDK Program to get prompt values for recurring schedules. I am able to get email address and prompt value but getting issues while trying to get prompt name.
I am attaching code below. Could you please me debugging this issue.
IProcessingInfo processinginfo = (IProcessingInfo)infoObject.getProcessingInfo();
IProperties pproperties = (IProperties)processinginfo.properties();
IProperties webiprompts = (IProperties)pproperties.getProperties("SI_WEBI_PROMPTS");
IProperties prompt = (IProperties)webiprompts.getProperties("1");
IProperties name = (IProperties)prompt.getProperties("SI_NAME");
IProperties value = (IProperties)prompt.getProperties("SI_VALUES");
System.out.println(name);
I am attaching error message in attachment.
Thank you all in Advance
Sowmya
Not the correct way of retrieving the property. Use the snippet below.
IProcessingInfo processinginfo = (IProcessingInfo)infoObject.getProcessingInfo();
IProperties pproperties = (IProperties)processinginfo.properties();
IProperties webiprompts = (IProperties)pproperties.getProperties("SI_WEBI_PROMPTS");
IProperties prompt = (IProperties)webiprompts.getProperties("1");
String name = prompt.getProperty("SI_NAME").getValue().toString();
out.println("<b>Name : </b>"+name+"<br>");
IProperties valueProps=(IProperties)prompt.getProperties("SI_VALUES");
out.println("<b>Values : </b><br>");
IProperty valueTotal=(IProperty)valueProps.getProperty("SI_TOTAL");
if(valueTotal != null)
{
valueTotalValue=valueTotal.getValue().toString();
Integer outputFile1=new Integer(valueTotalValue);
for(int m=1 ; m<=outputFile1.intValue() ; m++)
{
String value=valueProps.getProperty(""+m).getValue().toString();
out.println(value+"<br>");
}
}
Thanks,
Prithvi
Message was edited by: Prithviraj Shekhawat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.