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

Using HTML and cascading prompt

Started by kskanth, 04 Oct 2010 05:18:27 PM

Previous topic - Next topic

kskanth

Hi all,

I have an issue where I need to use java script for removing the field name and dashes.. and It is a cascading prompt. I did that. And When I select an item in the 1st value prompt it automatically refreshes the page and reproduces the respective items in the next following prompt correctly. But in the 1st prompt it is going back to the initial starting value item. Thus it is allowing me only to display the report respective to the 1st item from the first prompt.

Any ideas where I have to check back and correct the prompts.

technomorph

It sounds like a conflict between the JavaScript you're using and the cascading functionality.  As a troubleshooting exercise, I would remove the JavaScript and get the cascading functionality working as intended, and then reintroduce the JavaScript. Perhaps publish your code here so we can see what you're trying to do.

Cheers

kskanth

Hey thanks everybody,

I got it. I just changed the code and it works.

just changed "true" to "false"in the following code


<script language="javascript">
var f = getFormWarpRequest();
var list = f._oLstChoicesDepartment;

list.remove(1);
list.remove(0);
list.removeAttribute("hasLabel");
list.options[0].selected = true;

canSubmitPrompt();
</script>