Ction Parameters - Drop down

(imported topic written by cstoneba)

I was wondering if there was a way to do this, then I saw this thread: http://forum.bigfix.com/viewtopic.php?id=825

Can someone explain how to have a drop down in the description of a fixlet and have that value as an action parameter?

(imported comment written by cstoneba)

Anyone?

(imported comment written by jgolembi)

cstoneba,

I took a look at the link that was attached to the forum post. If you save the

.bes

file as a txt file you can get a view into what is going on. I would recommend opening the file in Notepad++.

<Title>Fixlet with select drop down options</Title> <Description><![CDATA[ <P>Choose a value: <select id=theDaySelect> <option value=
"Sunday">Sunday</option> <option value=
"Monday">Monday</option> <option value=
"Saturday">Saturday</option> </select> </P> <P> </P> <P>Click <span id=
"importlink" style=
"text-decoration: underline; color: #5386b3;">here</span> to begin deployment with the above value.</P> <script> function DoImport() 
{ var theActionScript =  
''; var doc = myAction.XMLDocument var a = doc.selectSingleNode(
"BES/SingleAction/ActionScript"); theActionScript            += 
'// Do some stuff here\n'; theActionScript                 += 
'// Selected day was: ' + theDaySelect.options[theDaySelect.selectedIndex].value; a.text = theActionScript; var result = ImportXML(myAction.xml); 
} </script>

Essentially the XML has a nice little script that generates an action using ImportXML. You could add text & formatting to the action by modifying

theActionScript

value.

-John G

(imported comment written by cstoneba)

not as straight forward as I was hoping, but at least it’s something. Thanks jgo.

(imported comment written by jgolembi)

You are welcome.

-John G