Link to home
Start Free TrialLog in
Avatar of alkabello
alkabelloFlag for United States of America

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.
ASKER CERTIFIED SOLUTION
Avatar of Abdulmalek_Hamsho
Abdulmalek_Hamsho
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of alkabello

ASKER

I will try that...

I'm expecting a string result (Inv #).
What will hold the value of what is selected?
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.