Skip to main content
1-Visitor
February 7, 2020
Solved

Set default value for combobox thingworx

  • February 7, 2020
  • 3 replies
  • 1735 views

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

 

 

 

Best answer by Constantine

Hello,

 

Make sure you selected correct ValueField property on this combobox.

 

/ Constantine

3 replies

17-Peridot
February 7, 2020

Hi,

 

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

 

Thanks,

Raluca Edu

22-Sapphire I
February 7, 2020

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.

 

18-Opal
February 7, 2020

Hello,

 

Make sure you selected correct ValueField property on this combobox.

 

/ Constantine