custom component - access picklist property in runtime

  • 1
  • Question
  • Updated 3 years ago
  • Answered
xmlDef.attr('mypicklistproperty') returns some kind of object.

What is the appropriate syntax for getting the value of a picklist property?

Thanks!
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
^^bump
Photo of Moshe Karmel

Moshe Karmel, Champion

  • 8,646 Points 5k badge 2x thumb
Try console.log() ing the object. Then you can figure out how to access its properties.
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Thanks, Moshe.

Turns out it was giving me the right thing the whole time. I was just subsequently using skuid.utils.merge() when I should have been using skuid.utils.mergeAsText().