Skip to main content
Feb 7, 2020 2:00 AM UTC
Solved

Set default value for combobox thingworx

Hi All,

I am using a combobox and a text to set the default value for the combo box. But I have not been able to do it successfully.
My model is as follows:

BingData.png
Can anybody give me advice on this problem?

 

Thanks and Best Regards

 

 

 

Feb 7, 2020 6:02 PM UTC

Hello,

 

Make sure you selected correct ValueField property on this combobox.

 

/ Constantine

3 replies

Feb 7, 2020 3:55 PM UTC

Hi,

 

Could you please explain the implementation? I can see you are using a database.

 

Thanks,

Raluca Edu

Feb 7, 2020 4:23 PM UTC

Ideally, the service resolving the default should have a single output of base type string.

 

If this here below doesn't make sense, then just stick to the top line I wrote.

Right now it looks like a table of information and you aren't binding a specific column to the selected text.

Since you are doing a single value, infotable return is not ideal because you won't have selected row available (unless that infotable is bound to another widget and you are selecting in that widget) so you'd only have all data to bind from which is always top row.

 

Feb 7, 2020 6:02 PM UTC

Hello,

 

Make sure you selected correct ValueField property on this combobox.

 

/ Constantine