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

Dropdown Check box

Started by babu babu, 03 Dec 2010 07:21:47 PM

Previous topic - Next topic

frankrss

Hi Paul,

I tried to save as, there is nothing. It seems not only for me, somebody left a comment there with the same problem.

Thanks

frankrss

sorry, I still  have a question about the drowdown multi selection scripts posted on the thead. It works now perfect with me even with more than one dropdown on one page, now I would like to know whether it can get the selected value as texts in the selections part, or just give a hint text there in the selection( for example: if there are items selected, then it will show: items selected as text instead of the fixed text there:
<OPTION VALUE="1" SELECTED >Product Line</OPTION>
in fact what I mean is: to give Product Line a dynamic Variable based on what you have chosen.

ShadowOfTheRiver

@franks How do you get it for multiple prompts? Any added prompt doesn´t work for me! apreciate your assistance

CognosPaul

Wow, I missed Franks message. Frank, if you still need help, let me know.

Shadow, it should work fine for multiple prompts. You only need to add another call to runPromptPopup for each prompt you need to change. Remember, it only supports list, radios, and checkbox prompts. Also, make sure that the prompts have a name. The javascript works by calling the object name.

So if I have two prompts, OrderMethod and Year it would be:
paulScripts.runPromptPopup ('OrderMethod','All Order Methods');
paulScripts.runPromptPopup ('Year','All Years');

zzeuss

Quote from: Amruta Gandhi on 25 May 2011 01:17:23 AM
Hi Prit,
The problem is due to the document.onclick which calls the function when we click anywhere outside the prompt as rightly suggested by Sunchaser. So, to overcome this we can have an option where in, the Prompt would open and hide on the click of the single select prompt seen on the report. Not much to be done for that, just remove the line "document.onclick=showHideMultiSelectPrompt; " from the script.
Add the statement "showHideMultiSelectPrompt();"   in the changePromptType function as shown below:

function changePromptType(oPrompt){
   if(oPrompt.multiple == false){
      oPrompt.multiple = true;
      oPrompt.multiple = false;
   }
showHideMultiSelectPrompt();
}


This would show the multiselect prompt on the click of the single select prompt and hide it only when it is clicked on that prompt again. However, it would not Hide the multiselect prompt when it is clicked anywhere on the screen.
Please let me know if I was able to solve your query.

Hi Amruta,

This is an old post.. and hope you can help me out here.. :)
Would there be a way to hide the multiselect prompt only when you click outside of the prompt box?
We want the multiselect dropdown open so we can select more than one values.. but instead of clicking the prompt, we want the dropdown go away when you click outside of that prompt..
Than you!!

ranjaniganesh30

Hi,

The given javascript is not working in Firefox. Can someone help?

Cinderellapong

Hi Amruta,
Very impressed by your response and it solved my issue too! Thanks so much! But I have one more question, we have a lot of prompts in the report. I want to apply this method to each prompt, but seems it only works for one prompt, do you know why? I also changed the div ID for each of them..
Thanks in advance!