eva/3 Application BuilderDeveloping eva/3 ApplicationsWorking with FormsStandard Beans 

SComboBox

Fig. 138: SComboBox Icons
Fig. 138: SComboBox Icons

The SComboBox allows to select from more options. In a SComboBox a list of text elements can be displayed.

Example: A list of states, to serlect a state from a SComboBox.

The user can select a text or image element from the SComboBox or use the free text input. The SComboBox gets its selection data from a STableElement and saves the value in a bound column (e.g. the primary key), of the target table.

The SComboBox is only in conjunction with a STableElement meaningfull applicable. The connection to the STableElement is set in the property page Database (s. fig. 139 ).

Fig. 139: Property Page Database SComboBox
Fig. 139: Property Page Database SComboBox

Example: The table saves state informations and contains the following values:

Land_ID The primary key of the table
Land The country name
Symbol The image of the country

Fig. 140: State Table
Fig. 140: State Table

The othet table saves person informationand contains the following columns:

Personen_ID The primary key of the table
Person The surname of the person
Ref_Land_ID The foreign key

Fig. 141: Person Table
Fig. 141: Person Table

In the form the surname from the person table and the flag of the state from wich the person comes were displayed. The connection of the tables is implemented by the primary key column Land_ID and the freign key column Ref_Land_ID (s. fig. 142 ).

Fig. 142: Form SComboBox
Fig. 142: Form SComboBox

The following settings has to be done on the property page Database in the Properties dialog (s. fig. 139 ).

Fig. 143: Configured Database Properties of the SComboBox
Fig. 143: Configured Database Properties of the SComboBox