Unload Report (RPX) using Script Code on PromptDialogCancel

Posted by: sfee on 4 August 2017, 2:42 pm EST

  • Posted 4 August 2017, 2:42 pm EST

    I have a project very similar to the Diamond Reports project.  If I prompt the user for a parameter field and they hit cancel, I want to cancel the report.  I am using rpx files so I need to use script code to do so.  I have tried rpt.cancel and rpt.stop but it doesn't cancel the report.  Unload rpt errors with a type mismatch.  

    What am I doing wrong?
     

  • Replied 4 August 2017, 2:42 pm EST

    I'm not sure what you may be doing wrong.  I created the attached sample to illustrate my results when looking into this.  Calling the cancel method in that event appeared to work properly for me.

    If you can make any changes to this sample to reproduce your issue, please do and I will look into it.

    2005/09/CancelInScript.zip
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels