cancel
Showing results for 
Search instead for 
Did you mean: 

Download template for dropdown box and javascript

Former Member
0 Kudos

Hi BW Gurus,

I have created a Web Template in WAD 3.5. I have included two dropdown boxes, one dataprovider, one Filter Item, a Table Item and four buttons with help of form tag. When i select a button the structure of the table is changed and the clicked button is highlited. When i select the a value in dropdown box the table is filtered but my clicked button is not highlited, can any one correct the javascript included in the template. I am attaching the URL here. The button class should not be changed when i select a value in a dropdown box

Thanks in advance

<a href="http://download.yousendit.com/74091B5C0852E022">Click the link to download the template</a>

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Ranga,

Your problem seems to be this. When you click on a button it refreshes the entire query and applies the filter you wish it to. However, when you select a value from a dropdown box it only filters the table, it does not refresh the query. This prevents your javascript to color the buttons from running when it is chosen from the dropdown. I would suggest adding an event to the dropdown boxes so that it will call the javascript function for you. This should fix the problem.

Cheers,

Rusty

Former Member
0 Kudos

Hi Hedrick,

Thanks for your response, can u send me code for writing an event i.e. onselecting the values in both the dropdown boxes i have to call the script function.

<b><param name="SCRIPT_FUNCTION" value="set_color01()"/>

</b>

This is not working how do i call the function with an event.

Thanks you for your help.

Regards

Ranga