Originally Posted by
Moon Wizard
You can find the code in the CoreRPG ruleset under:
* common/scripts/combobox*.lua
* common/template_combobox.xml
You can add items to the combobox using the add or addItems functions:
* The add function accepts a value parameter, with an optional display parameter. The value parameter is what is saved to the database as a string database value. If no display parameter is supplied, the value will also be used as the text to show in the combo box.
* The addItems function accepts a table as a parameter. It assumes a table of strings, and will add each one as a value. You can not override display text with this function.
You can get/set the value of the selected item by using the getListValue and setListValue functions.
Regards,
JPG