COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: patrickthatcher on 28 Aug 2015 11:27:16 AM

Title: Cancel button not working on Set Properties
Post by: patrickthatcher on 28 Aug 2015 11:27:16 AM
We've added a cancel button to our prompt page and it works as expected using this code cognos.Report.Action.CANCEL when either running from report studio or from the report link.  However, if the user click the Set Properites box and sets the prompt values from the Report tab, the cancel does not function.

Is there other code I should be using?

Thank you
Title: Re: Cancel button not working on Set Properties
Post by: patrickthatcher on 31 Aug 2015 04:47:34 PM
figured it out.  We used promptAction('cancel') instead of cognos.Report.Action.CANCEL and this fixed the issue
Title: Re: Cancel button not working on Set Properties
Post by: bdbits on 01 Sep 2015 05:26:18 PM
Glad it worked out, but on a prompt page, why not just use a Prompt Button with the Type property set to 'Cancel'?
Title: Re: Cancel button not working on Set Properties
Post by: patrickthatcher on 02 Sep 2015 11:23:23 AM
We are using cookies to store previously stored values from a list box that we need to delete when the cancel button is used.