Quantcast
Channel: SCN : Unanswered Discussions - BI Platform
Viewing all articles
Browse latest Browse all 5661

How to set new prompts for Crystal reports

$
0
0

Hello friends,

 

I am able to get Webi report prompts and updating them with new values and scheduling the report like below.

 

Prompts prompts = widoc.getPrompts(); // Getting prompts

updatePromts(); // updating prompts method

widoc.setPrompts(); // setting new prompts

 

//Code for scheduling report

infoObject.getSchedulingInfo().setType(0);

  infoObject.getSchedulingInfo().setRightNow(true);

  infoStore.schedule(infoObjects);

  infoStore.commit(infoObjects);

 

Similarly I am trying to achieve it for crystal reports.

 

I am able to get and modify prompts, but I am not able to set the new prompts. I am able to schedule crystal reports but as there are no parameters set, reports are failing.

Below is the code for scheduling crystal reports.

 

Fields<IParameterField> parameterFields = crdoc.getDataDefController().getDataDefinition().getParameterFields(); //Getting propmts

updatePromts(); // updating prompts method

???????????????

//Code for scheduling report

infoObject.getSchedulingInfo().setType(0);

  infoObject.getSchedulingInfo().setRightNow(true);

  infoStore.schedule(infoObjects);

  infoStore.commit(infoObjects);

 

What method do I need to use to set new params for crystal reports?

 

Please let me know if the question is not clear.

 

Regards,

Rakhy.


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>