cancel
Showing results for 
Search instead for 
Did you mean: 

Prompts in recurring schedules in BO SDK

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

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

Former Member
0 Kudos

wow Thank you very much Prithviraj, It worked ....

Answers (0)