COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Reporting => Topic started by: Mountain Streams on 06 Jun 2019 12:33:15 PM

Title: Custom Control to increment a parameter value.
Post by: Mountain Streams on 06 Jun 2019 12:33:15 PM
I have a prompt named DayNumberPrompt to satisfy a parameter called pDayNumber.
The default value for DayNumberPrompt is 30.
I want to display a button that, when clicked, will increase the value by 1 and refresh the page.
I've been trying to figure this out using the new samples and reading posts here but my js days were 20 years ago.
Wondering if anyone can assist.
Title: Re: Custom Control to increment a parameter value.
Post by: dougp on 10 Jun 2019 11:27:41 AM
Interesting exercise...

Add a text box prompt, name it DayNumberPrompt, set the Visible property to No.
Add a custom control, set the Module path property, set the Configuration property.


I would post my code here, but when I do I get this message:

Quotewww.cognoise.com - Access Denied
Error code 15

This request was blocked by the security rules

I'll try uploading it as a file.