Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

prompts with multiple options

Status
Not open for further replies.

antara1234

IS-IT--Management
May 21, 2007
1
US
I have a requirement to have a report with 3 prompts but only one of them should be answered.
Do you know how I can make sure that at least one is mandatory ?
If I mark both of them as "required" then I need to answer both of them.
If I mark both of them as "optional" , it works , but user can skip both of them as well
 
That is actually a very good question! It is a clear and simple question, but not something easy to do in Cognos.

This is how I would handle it: Create a finish button of your own in HTML using a HTML object of course. Write the onclick procedure yourself in a JavaScript function.

This function checks the value of the first prompt. If this is empty, then you check the value of the second prompt. If one of them isn't empty, then you force the onclick of the Cognos finish button. If they are both empty, then you can give a warning message for example.

Now, i haven't done this myself yet. But I have gone pretty far with using javaScript in Cognos reports, and I know you can go very far with these things. So this would be the way that I would try it.

I hope this has helped you on the way.

Kind regards
Jelle Daems
 
I was talking about the tool Cognos Report Studio. And there you have the possiblity to do these kind of things. I don't think this can be done in Planning.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top