Hello all,
I've checked on site for a solution but all I've test don't work.
My requirement :
_I have cascading prompts
_The first is auto submit, the second one multi select (not auto submit btw)
In order to aware user that if he choses multiple selection, he not gonna have detail, I want an alert or a message when he presses "Reprompt" button.
But I don't know how to do it !
I've test html items like <span id></span> or <p title></p> without any result.
Help may be appreciated =)
Thx in advance
ps : in order to retrieve how regions they have selected, I force the reprompt button by rendering finish button when "paramCount>0". If javascript autorefresh for multiple select is available
(http://i58.tinypic.com/f35quu.jpg)
You can hide the Reprompt button, then create your own Reprompt button in javascript, then have your Reprompt button press the hidden Cognos Reprompt Button.
To access your hidden Reprompt button using javascript, you will need to wrap it in html tags. The exact syntax depends on which version of Cognos 10 you are using. 10.2 and above have a PROMPT API. Below 10.2 you can use 'getFormWarpRequest()'.
Guide to Pre-10.2 Javascripting in Report Studio:
https://www.ironsidegroup.com/2011/07/25/ibm-cognos-and-javascript-%E2%80%93-part-i/
10.2 Prompt API commands
https://www-304.ibm.com/support/knowledgecenter/SSEP7J_10.2.2/com.ibm.swg.ba.cognos.ug_cr_rptstd.10.2.2.doc/c_prmpt_api_overview.html%23prompt_api_overview
Guide on pop up boxes in javascript
http://www.w3schools.com/js/js_popup.asp
Also, if you are new to javascript, this site is an easy and fun way to learn it:
http://www.codecademy.com/en/tracks/javascript
Hello Ross,
ok to create an html reprompt button, but as a rookie in javascript, I don't know how to implement the alert onclick or the text mousover. That's the big deal
ps : cool links you provide ! But impossible to found a js code for implement Reprompt button which works as the original one
Thank for what you've done