When an item reaches the value set, it makes it possible to enter the corresponding item or disallow input.
When the status is "trouble", we will explain an example where you can enter the "cause" item. Assume that the status master is prepared as shown in Fig. 1.
In the initial state of the report new registration screen, you can not enter the "cause" item.
If you select "Trouble" for status, you can enter "cause" item.
Figure 4 shows a "report" model that realizes the above sample application.
Opens the detailed definition dialog for the "cause" item. Write an expression in the form of "item name = value" in "Enable input/No control> Allow input depending on the value of other items".
Specify multiple values for one itemIn case, specify "," (comma) separator.In the example below the priority is 1 Or It means 2 case.
If a value is entered for an item, you can describe the condition that it is.When the name of another item is status,
will do.Since there is no value specification, the condition is satisfied when there is an input value.
In the above example, "cause" is described at the time of new registrationrear, "Status" as "trouble" Other thanYou change it to.At this time, there are two methods of how to deal with "cause" already entered.
|Overwrite with blank (standard)||When input becomes impossible, erase the input value (overwrite it with blank).
(Item values that have already been entered are kept on the screen but are not sent to the server.Therefore, the input value is erased.)
|Retain value||Even if it becomes impossible to enter, the value already entered will be retained.|
You can select this setting change as shown in Figure 6.When not set it becomes "Overwrite with blank".
You can define control that enables input as combined with mandatory check. It becomes a mandatory input item when it becomes "input possible".
In the above example, the item "Status ID" is inherently unnecessary.ID values are prepared for visual inspection. This item is of numerical type (to store ID), and the following expression is applied.
For details on how to write expressions, see "Calculation formula> Model referencePlease read.
It is also possible to specify that input is disabled when conditions are met. Figure 7 shows an example of disabling input when the status is "1".
Describe the conditional expression (item name = value) in the column of "Enable input/No control> Input disable depending on the value of other items".
You can not specify both "Can be entered depending on the value of other items" or "Can not enter depending on the value of another item" at the same time.
"Input control by value of other items" will work only when the initial screen of the screen is displayed even if "other item" is a read-only item.However, even if the value of the read-only item changes after display (depending on the formula etc.) the input enable/disable status will not change.
You can avoid this constraint by creating a dummy hidden item and posting the value of the read-only item to the hidden item and then controlling it.