Displays the referenced model in checkbox format. Multiple values can be selected.
Prepare the district model in advance as shown in Fig. 1.
Figure 2 shows an example screen that selects the value of this district model with a check box. You can select the name of the referenced model "district" from the check box.
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)
In the type detail setting, the reference destination model is "district", and the item of the reference destination model which is the option of the check box is "district name". Select "Checkbox" as input type.
You can select all the options at once.Please press the check all icon shown in Figure 5.
After checking, the shape of the icon changes to an eraser.(FIG. 6)
By using the eraser function, you can cancel all selections at once.The icon returns to the full check.
Select all of the check boxes/Switch the state of the clear buttonEven when the check box is pressed downIt will be done.
If you check all the check boxes, it automatically changes to the clear button.If you uncheck one of all checked states, it changes to a full selection button.
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.
You can specify the initial value of the check box.When opening the new registration screen of the customer model, we will explain an example of selecting "Hokkaido" "Tohoku" "Hokuriku" "Kanto" into the selected state.
Check the value of the primary key (here, the district ID) of the target data.(Figure 9)
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. 10)
Specify the primary key of the target data.If the target is a check box, you can specify multiple values separated by commas.
"Initial value> check boxIt is summarized in.There are ALL notation for full selection and techniques that can be used in combination with functions.
Changing display order of options in option modelYou can set the same rule as for any model.
Detail is,List box descriptionPlease read.
Invalidating options in option modelYou can set the same rule as for any model.
Detail is,List box descriptionPlease read.
Invalid items in the option model are also to be searchedYou can set the same rule as for any model.
Please read the link above for setting.
The check box is set to display four choices per line by default.
If you specify this as wrapping every eight times, it will be displayed as shown in Figure 12.
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.The standard is "4".
"Search control> Model reference> Switch display modeThis setting will also be reflected even if you specify.
For example, if you set it as a check box on the registration or update screen but as a check box on the search screen, this setting is used for the number of items to be wrapped for the search screen.
On the detail display screen, a check image is displayed next to the selected data.(FIG. 15)
You can hide this check image.(Figure 16)
Opens the Output Control tab of Model Item Detail Definition.Activate "Do not display images when selecting check boxes" of the model reference prepared in the detail screen.(By default, it is invalid.)
You can set "number of wraps" and "toggle display of check images" on the list display screen.
Figure 18 shows an example of a list display screen with the wrapping number set to "1" and the check image hidden.
Select the "List screen" tab in the output control tab of the model item detail definition dialog.Set "Do not display the selected image of the check box" in the model reference field, "Display number of check box/radio button displayed on one line" respectively.
On the detail screen, only the selected item is displayed.This is the standard behavior.
If you set the item name which was not selected, it will be as follows.
Activate the "Display unselected item names" setting that is provided for options in the model item type detail setting dialog.
We will introduce examples where you can select up to three from multiple choices (choose four or more to select an input error).
In the user definition check column in the input check tab of the model item detail definition dialog,Acceptable (no error) condition.You can also set the error message.
Detail is"User defined checkPlease read.
You can change the input type of the registration/update screen and search screen.
For details of switching method,List box descriptionPlease read.
To manage the value selected in the check box, another table is prepared.
FIG. 25 shows a table prepared as a standardAccount model (juser)Excerpted from the table structure of.The "belonging group (jgroupid)" item refers to the model using the group model (jgroup) as a checkbox.This item does not exist in the juser table.Instead, a table named "juser $ jgroup" is created.
In a state where none of them are selected, there is no data in another table.The value actually held (in the above example, the value of the jgroupid column) is the primary key of the referenced model (jgroup).
If the primary key of the referenced model is a compound key, this function (referred to as a check box) can not be used.