Support > Repository > Layout > Tab display control

We will prepare a control flag and show how to show/hide the tab according to that value.

An example

Here is an example of tab display control using radio buttons.In Fig. 1, "Update record tab display" is selected.In conjunction with this, the "Record Update" tab is displayed.

Figure 1 Update record tab is displayed

Figure 2 shows an example of selecting "Hide update record tab".At this time, the "update record" tab is not displayed.

Fig. 2 Update record tab is not displayed

Definition method

Prepare a new "tab control flag" item.(Figure 3)

Figure 3 Defining tab control flag items

Prepare a "Tab Display Control Flag" model as an option model and set the initial value shown in Fig. 1.We refer to this model with radio buttons.(Figure 4)

Fig. 4 Model coordination setting

Write the condition expression "item ID = value" in "tab display condition" in the "update record" tab layout setting.

Figure 5 Tab display condition description

The expression in Figure 5 is "ctrl_flag = 1". This displays tabs when the ID value of the alternative model is "1" (in the above example, the option of "update recording tab display").


  • It is said that it is equal to the value.You can not write expressions using inequality signs such as "ctrl_flag> 1".
  • When used in conjunction with the wizard, you can not specify items placed on a separate screen.Items used for display conditions must exist on the same screen.
  • Functions provided by Wagby can not be used.

An example

We prepared five choices corresponding to tabs.(Fig. 6) Since neither is checked at the beginning, tabs are not displayed.

Figure 6 Hide all tabs

When one is checked, the corresponding tab is displayed.

Figure 7 Basic Information tab displayed

If you check everything, all the tabs will be displayed.

Figure 8 All tabs displayed

Tabs that are invalid are stuffed and displayed.

Figure 9 Invalid tab in the middle

Definition method

Prepare five initial values ​​of tab control flags.(FIG. 10)

Fig. 10 Initial value of tab control flag

Tab control flag is set as a check box.

Fig. 11 Switch tab control flag to check box

Set display conditions on each tab.

Figure 12 Setting tab display conditions


"Control by radio button"Please read.

An example

Although it is displayed at the time of registration, it sets up the "basic information" tab so that it hides on the detail screen unless certain conditions are satisfied. Here, when the value of "shipper code" is not entered, it will not be displayed on the details screen.(FIG. 13, FIG. 14)

Figure 13 Make "Shipper Code" Not Made in the Registration Screen
Figure 14 Basic information tab is not displayed on detailed screen

Definition method

Prepare two tab control flags.Code 1 is "display" and code 2 is "hidden", respectively.(In choice models, codes are assigned in order from 1.)

Figure 15 Setting tab control flag

In the delivery document model, tab control flag items are hidden items.(Hidden setting is set for each of input control and output control.The setting diagram is omitted.

In order not to have only one value, we will use it as a radio button here.

Fig. 16 Set tab control flag as hidden item

This control flag automatically sets the value by expression, not input.


The above expression sets "2" (not shown) if the shipper code (owerid) item is blank in the detail screen and "1" (display) otherwise.

Fig. 17 Expression of control flag

Sets the display condition of the basic information tab.It is displayed when it is "1".

Figure 18 Setting Display Conditions on Tab
  • Tabs including containers do not support display/non-display switching.In particular"Combine multiple repeating containers in one tabCan not be used in combination with the setting.
  • It is not possible to chain display/non-display of multiple tabs.Here, "chain" refers to the movement of controlling display of tab B by item X in tab A and controlling display of tab C by item Y in tab B.However, this restriction can be avoided by using the "Redraw screen when item value is changed" setting for item X or item Y, which triggers control.(The screen on which the tab display control was performed under the new condition is redrawn.)
  • Multiple different control sources can not be specified for the tab display condition.Specifically, neither the value of item X nor the value of item Y can control display of common tab A, etc.It is possible to control different tabs A and B with the value of item X respectively.(Example: Tab A displays X = 1, X = 2, and tab B shows X = 1)
  • The value of the item in the hidden tab is not cleared.Although it is hidden apparently, the item value in the tab is maintained.When the tab becomes displayable again, it will be displayed in the previous state.
  • This function does not work when the item which controls the display of the tab layout on the registration/update screen is read-only (or updatable with updating authority).(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.)