A fan asked me how to automatically fill in the value in the drop-down box
I would like to ask, the drop-down control needs to be bound to the list in the data source, how to do this, I have studied it for a long time but have not figured it out, which tutorial do I need to refer to?
Generally, you can set the field to an enumeration type. If it is dynamic, you can bind the data source and set the field.
My version is to choose an array.
When I bind variables, it prompts an error, please guide
Generally, there are several solutions to this kind of problem. One is that you only design one data source, and the field of the drop-down box is set as an enumeration value. If you use a form container, it can automatically become a drop-down box
In the second case, it can be set as the main sub-table, and the micro-build will also read the association relationship and turn it into a drop-down box
If you don’t want to choose either of these two, and the simple drop-down box wants to get values from the data source, then we need to prepare two data sources
One is a school data source with only one field with a name
The second data source is the teacher data source, add the school to the field, and select text for the field type