alkabello
asked on
Populate a Drop-Down list in Dexterity
I'm trying to populate a drop-down list in Dexterity v9.
I can either get the info from a while loop going through a range of data, of 'bind' the drop-down list to a TEMP table populated during the while loop.
Can anyone provide the code needed to add the items? My drop-down list is a local field, and is called lbInvNum, and I'm trying to add a list of Invoice Numbers.
Lastly, what property of this object (lbInvNum) will hold the selected value?
Thanks in advance.
I can either get the info from a while loop going through a range of data, of 'bind' the drop-down list to a TEMP table populated during the while loop.
Can anyone provide the code needed to add the items? My drop-down list is a local field, and is called lbInvNum, and I'm trying to add a list of Invoice Numbers.
Lastly, what property of this object (lbInvNum) will hold the selected value?
Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
You are correct on the add item answer which addressed the first question
.
For the second question, the value returned when something is selected is the index of the choices.
I will need to build an array to reference back to the selections added to the list.
.
For the second question, the value returned when something is selected is the index of the choices.
I will need to build an array to reference back to the selections added to the list.
ASKER
I'm expecting a string result (Inv #).
What will hold the value of what is selected?