AnsweredAssumed Answered

Dynamically generating a drop-down in an IRF

Question asked by samuel.leibowitz on May 30, 2013
Latest reply on Jun 10, 2013 by Kaj.Wierda

I'm trying to create an interaction request form with a drop-down - specifically a String parameter with predefined values generated by an expression. I'm able to do it when I put the path of a static dataset into the expression field, but I'd like to be able to generate the options dynamically in Javascript and instantiate them on the form that way.

According to the PAM user manual, I should be able to pass any javascript expression that yields a ValueMap with two fields (an array called "Keys" and one called "Values"). However, it only seems to work when I pass it an explicit path like Datasets[path_here].OptionList. When I pass it something like Process.OptionList, it doesn't work, even though the two things are identical ValueMaps. Any ideas what I might be doing wrong?