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

 

Javascript-Code to remove the selected values from Multi-Select text prompt

Started by GGowtham, 09 Jul 2015 08:07:23 AM

Previous topic - Next topic

GGowtham

I have a Text-Box prompt with multiselect option along with list prompt,Check box prompts in the prompt page.
And I have a Javascript - reset button to clear the selected values from all the prompts in the prompt page.

I am able to clear the values for all the prompts but I am not able to remove the selected values from a multi-select text prompt alone.

Please guide me with a javascript code to remove the selected values from Cognos mutiselect text-box prompt.

MFGF

Quote from: GGowtham on 09 Jul 2015 08:07:23 AM
I have a Text-Box prompt with multiselect option along with list prompt,Check box prompts in the prompt page.
And I have a Javascript - reset button to clear the selected values from all the prompts in the prompt page.

I am able to clear the values for all the prompts but I am not able to remove the selected values from a multi-select text prompt alone.

Please guide me with a javascript code to remove the selected values from Cognos mutiselect text-box prompt.

Hi,

First, a caveat that I don't do javascript and I know less about it than I know about the migration habits of the lesser-spotted tree frog.

However, I do know that IBM introduced a Prompt API for the 10.2 release, and the solution you are looking for will vary depending on whether you are using a version of Cognos BI from before or after this change.

What version of Cognos BI are you using?

MF.
Meep!

GGowtham

Hi MFGF,

I am using Cognos 10.1 Report Studio, Please let me know if you have any javascript solution to remove the selected values Thanks!!

Regards,
GG

MFGF

Quote from: GG on 10 Jul 2015 06:30:08 AM
Hi MFGF,

I am using Cognos 10.1 Report Studio, Please let me know if you have any javascript solution to remove the selected values Thanks!!

Regards,
GG

Ok - so there's no Prompt API in your version. That should at least help anyone with javascript skills to know what to suggest for you. Sadly I cannot, though. For me, javascript is to be avoided at all costs. ;)

MF.
Meep!