How to set the value of combobox list dynamically

Hi all,

We have the following method that gives us the Server, table and Forms name:

//return all the table names, and column properties from the database
var server = "servoy"
var tableNamesArray = databaseManager.getTableNames('servoy');
globals.BT_SERVER_NAME = server
globals.BT_TABLE_NAME = tableNamesArray[0]


//////////show all forms in combobox
var formNamesARY = forms.allnames;
application.setValueListItems('forms', formNamesARY);
globals.BT_ALL_FORMS = formNamesARY[0];


///count all the tables in database
var arl = tableNamesArray.length
globals.BT_ARRAY_COUNT = arl

   
//column names?
globals.BT_column_name


//columnType?

globals.BT_columnType

We like to set the value of combobox list dynamically.

Can someone please let us know how to do this?

Thanks,

Abrahim

You are already setting the list ‘dynamically’ so what other/more dynamics are you looking for?

Marcel,

I just figure it. I was missing:

var name = elements.BT_TABLE_NAME.getValueListName();
application.setValueListItems(name, tableNamesArray);

Thanks,

Abrahim