Expand my Community achievements bar.

SOLVED

Accessing bindItems returns undefined

Avatar

Former Community Member

Hello,

I'm trying to access the string representing of the SOM expression associated with dynamic properties for a drop-down using script.

Looking in at the xml source I see the element bindItems with attributes being ref, labelRef and valueRef.

I figured trying to access those values for a particular DropDown in the scripting editor would be:

DropDown.bindItems.ref

or something of the like but an exception is thrown that DropDown.bindItems is undefined.

Any help would be greatly appreciated.

Thank you.

Kyle

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Kyle,

I don't know what the pattern is, some seem to work some don't. But you can get around it by using one of the following methods.

DropDown['#bindItems'].ref

DropDown.resolveNode('#bindItems').ref

Good luck

Bruce

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi Kyle,

I don't know what the pattern is, some seem to work some don't. But you can get around it by using one of the following methods.

DropDown['#bindItems'].ref

DropDown.resolveNode('#bindItems').ref

Good luck

Bruce