Several special designation methods are available for setting initial values to check boxes.
If you specify "ALL" as the initial value, it will be in the "selected all" state.(Please leave "Type" field blank.)
This setting has the following restrictions.
If you specify "belonging group" as the initial value type, you can set the group to which the user belongs to the checked state.
Here is an example of preparing the item "group" in the model.
|Type||Reference model||Contents of reference model|
|group||itemgroup||Reference to other store models
The initial value of the same item is set to "belonging group" at the time of new registration and display of the search screen.
Figure 5 shows an example of the display of the search condition part when logging on with an account belonging to the group "General Affairs Department". You can see that the group you belong to is checked.
When applying the function to the initial value, please set "initial value type" to "arithmetic operation".(If you omit the initial value type, you can not use the function.)
When using a functionReturns array valueIt is necessary.(Since the check box holds multiple values, internally it handles data in an array format.)Therefore, even when returning a single value, please use the ARRAY_INT function etc.
Example: Change initial value depending on authority.
IF(HASMODELPERMISSION("sinsei","modelA"), ARRAY_INT(1,2,3,4), ARRAY_INT(1) )
By applying the REQUEST function to the initial value, you can embed the value in the parameters of the URL.
By specifying as follows, you can set all check boxes to be selected.