COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: JeffRich on 22 Sep 2009 03:38:38 PM

Title: Enable/Disable Finish Button
Post by: JeffRich on 22 Sep 2009 03:38:38 PM
Hello to All,

I have a Prompt Page with two Text Box Prompts based on two parameters.  The two parameters have the Usage Property set to 'Optional', which means the FINISH button is always enabled.  I don't want my users running the report without criteria, so I'd like the FINISH button to be disabled until one of the two Text Box Prompts fields have been populated.  Anyone know how to accomplish this?

Thanks
Title: Re: Enable/Disable Finish Button
Post by: kaevne on 22 Sep 2009 03:53:02 PM
So you want both of the prompts to be optional, but the user has to select 1 or both, but not none?  Honestly I would just create a textnote to remind the users or some javascript to check and make sure one of them is selected.
Title: Re: Enable/Disable Finish Button
Post by: JeffRich on 22 Sep 2009 04:00:24 PM
Yes both are optional.  The user has the capability to select either one or the other(a higher or lower level of criteria).  Doing it this way the user could select none.  I doubt that the user would take this path, but it's a possibility.

I could place a textnote to remind them to select one or the other option, but I really felt that a background variable could be used to close this loophole.
Title: Re: Enable/Disable Finish Button
Post by: Gopinath on 07 Oct 2009 10:43:35 AM
Try having a custom built Finish button(using HTML code) and enable or disable it using javascript.