Iam trying to build a generic search form that will set some options for the user depending on how they arrived at this search form.
To do this, one thing I need, is to be able to set the current /selected item in some combo boxes.
i.e. preset the display values before showing the form but still give the user the ability to deviate from what we predicted they wanted to do
The comboboxes are populated from a custom vlauelist (not tied to a table) using the syntax
‘friendly prompt’ | indexno
The application. methods relating to valuelists don’t seem to provide this - I am looking in the wrong place presumably.
something like this ? application.setvaluelistdisplayitem(valuelist,index).
Don’t think about the valuelist, just set the value of the field in the onShow code and you’re done. If you set fieldA to 1 and in your valuelist you have “Red|1” you will see that the combo will show the “Red” value in the form. That’s what Marcel meant.