0

In SSJS I'm looping through document in a view and I want to add a new option to a hidden combo for each document and once finished then show that hidden combo.

I've tried building an array with value|string and adding that to the getComponent("apm").setValue(myArray), but no luck and how do I grab the combo and make it visible because dojo.byId("#{id:apm}").setRendered(true); gives error about dojo not found, so do I need to include something?

Any ideas?

Naveen
  • 6,786
  • 10
  • 37
  • 85
user1753622
  • 287
  • 3
  • 19

1 Answers1

3
  • Add your array to a viewScope var.
  • In your combo, add a formula value and point it to the viewScope.
  • After your array is built make sure the combo is refreshed. You can set the rendered property based on whether or not your viewScope var exists.