If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

value Prompt using as a Radio button giving error HELP PLS !

Started by mohsin2010, 11 Jan 2011 03:22:36 AM

Previous topic - Next topic

mohsin2010

HI,

Ok.. it's bit triky as we have to use Javascript. I was thinking like it's on Main page.

Here we go__

1) Create one value prompt name it as 'choice'. The parameter for this is P_choice
2) create two radiobutton group value prompts. the parameters P_Region, P_Country
3) create boolean render variable for Region and Country prompts seperately.
   for Region.... render variable say V_Region
    script would be___
 
Code:

ParamDisplayValue('P_choice')='Region'

   similar for Country
   
Code:

ParamDisplayValue('P_choice')='Country'

4) create an HTML item just beside to Choice prompt
    give the script as
Code:

      <Script>
         function my_onchange()
          {
            SetPromptControl('reprompt')
           }

         document.forms["formWarpRequest"].elements["_oLstChoiceschoice"].onchange = my_onchange
      </Script>


OR IHAVE ALSO CHANGE IT THIS SCRIPT AS UNDER!

Change the script last line
Code:

document.forms["formWarpRequest"].elements["_oLstChoiceschoice"].onchange = my_onchange

with
Code:

getFormWarpRequest()._oLstChoicesChoice.onchange=my_onchange;

Best Regards,
Syed Mohsin Raza