Display the referenced model in the radio button format. You can select one value.

An example

Prepare the district model in advance as shown in Fig. 1.

Figure 1 Pre-prepared district model

Figure 2 shows an example screen that selects the value of this district model with a radio button. You can select the name of the referenced model "district" from the radio button.

Figure 2 Radio button example

Definition method

In the customer model shown in Figure 2, the type of the district item is referred to as "item reference of another model".(Figure 3)

Figure 3 Definition of customer model

In the detailed type setting, the reference destination model is set to "district", and the item of the reference destination model which is the option of the radio button is "district name". Select "radio button" as input type.

Fig. 4 Setting to use the radio button

An example

You can specify the initial value of the radio button.We will explain an example of making "Hokkaido" selected for the radio button when opening the new registration screen of customer model.

Check the value of the primary key (here, the district ID) of the target data.(FIG. 5)

Fig. 5 Check the primary key of the data used as the initial value

When you open the new customer model registration screen, you can see that the data in Figure 5 is selected as the initial value.(FIG. 6)

Figure 6 Example of screen when initial value is set

Definition method

Specify the primary key of the target data.

Figure 7 Setting the initial value of the new registration screen
The value of the primary key is never changed during system operation.

In the choice model, you can set the same rule as changing the display order of choices to any model.

Please read "Description of list box" for details.

In the choice model, you can set the same rule as choice invalidation in any model.

Please read "Description of list box" for details.

You can set the same rule for any model as "make invalid item also search target in choice model".

An example

Radio buttons are designed to display four choices per line by default.

Figure 8 Wrapping in four views

If you specify this as wrapping every eight times it will be displayed as shown in Figure 4.

Figure 9 Wrapping in Eight Displays

Definition method

From the Input Control tab of the Model Item Detailed Definition dialog box, specify the number of checkbox/radio button wraps in the model reference.When it is blank it is interpreted as "4".

Fig. 10 Setting of turnaround number

An example

When radio button is used, a clear button (eraser icon) for canceling the current selection is prepared.

Figure 11 Clear button

You can also hide the clear button.In this case, once you select something, one will always be selected.(You can not cancel all.)

When you do not prepare the clear button

Definition method

From the input control tab of the model item detail definition dialog, activate "Create clear button" in the model reference.(It is enabled by default.)

This setting is reflected in the registration, update and search screens.

Fig. 13 Creating the clear button

When this setting becomes invalid

If the radio button is required, the clear button will be automatically hidden.

You can change the input type of the registration/update screen and search screen.
By default, radio button items are treated as list boxes on the search screen.

For details of switching method, please read "Description of list box".

An example

On the detail screen, only the selected item is displayed.This is the standard behavior.

Figure 14 Display on Detail Screen

If you set the item name which was not selected, it will be as follows.

Figure 15 When setting to display item names not selected is enabled

Definition method

Activate the "Display unselected item names" setting that is provided for options in the model item type detail setting dialog.

Figure 16 Model Item Type Detailed Settings Dialog
This setting is also reflected on the list screen.

If the reference data has been deleted, "Detailed data" will be displayed on the detail display screen.

Change wording

You can change this wording "nonexistent data".

The reference key item of the reference source model ("estimate" model in the above example) holds the ID value of the reference destination model.It is not a content part.A state that none of them is selected is NULL.

When you check the table on the database, you can see that the ID value is stored.