Quantcast
Channel: Latest Questions on Splunk Answers
Viewing all articles
Browse latest Browse all 13053

How to get selected values from pulldown module?

$
0
0

Hey,

I have a pulldown module wich is filled with search results.

< module name="Pulldown">
          < param name="name">filiale</param>
          < param name="label">Filiale</param>
          < param name="size">7</param>
          < param name="template">location="*$value$"</param>
          < param name="separator">+OR+</param>
          < param name="outerTemplate">( $value$ )</param>
          < param name="staticOptions"></param>
          < param name="valueField">location</param>

...

If the pulldown items has been selected with the mouse the field $filiale$ looks correct:

( location="50425" OR location="59935" OR location="80668" OR location="80692" )

The problem:

After the user clicked a button, a javascript function marks some elements as selected (changes the "selected" property to true).

In this case the field value doesn´t change.

In the sideview utils sourcecode (/sideview_utils/modules/Pulldown/Pulldown.js) I found a function called "templatized" which returns the field value with the selected pulldown elements. But this function is only called after the items has been selected with the mouse. So it seems that i need the onchange event of the pulldown module.

I´ve tried to fire the onchange event manually - without any results.

How can i get the pulldown values after selecting via javascript?


Viewing all articles
Browse latest Browse all 13053

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>