Very often I have a table for every valuelist and I have a integer (1/0) column “active” in this table.
If I want to create a valuelist of all the active=1 entries I do something like this:
sql= "SELECT ... WHERE active=1"
ds = databaseManager.getDataSetByQuery(...,sql,...)
r_real = ds.getColumnAsArray(1)
r_display = ds.getColumnAsArray(2)
application.setValueListItems('my_valuelist',r_display, r_real)
Is there not a best way?
Could be a feature request a filter dialog in the valuelist definition dialog?