Support > Repository > Layout > Foreign key combines the child model and repeating container into the tab of the parent model

The foreign key child model is usually displayed at the bottom of the parent model display. This can be included in the tab of the parent model.

We will explain with an example where parent model is "customer" and child model "support" is prepared.Figure 1 is the standard screen layout.The parent model (customer) uses tabs to group multiple items.The child model (support) is displayed at the bottom of the parent model.

Figure 1 Standard layout of parent-child model simultaneous update screen

If you set the "tab summarize" setting introduced here, you can display it collectively on the tab on the parent model side as shown below.

Figure 2 Collect tabs of child models into parent model (1)
Figure 3 Collect tabs of child model into parent model (2)

How to define - parent

Define the layout name in the item group of the parent model (customer).

Figure 4 Setting the layout name

Lay out this layout as "tab".Furthermore, "tab number" should be as follows.

タブ番号:表示位置
  • Tab numberStart with "1".
  • When combining external key child models and repeated container described later into tabs,Target tab number is "1" only.
  • The tab number and display position should start from 1 and be continuous values.Flight numbers etc are not allowed.
Fig. 5 Tab number setting

Definition method - child

In the child model (support), select "tab layout" in the setting field of "Foreign key cooperation" in the "Screen> Search and list display" tab and specify the following value in "Tab display position".

親モデルID:タブ番号("1"で固定):位置

In this example, it is described as customer: 1: 3.This places it in the third tab position of the parent model ID customer.

Please specify "1" for parent tab number.Even if there are multiple tag loops, only the first tab group is targeted.
In this example, since there are only two parent tabs, it is the third = last tab.
Figure 6 Specifying the tab display position in the child model

When linking with multiple parents

Link multiple parents to one childWhen settings are made, you can specify them by separating them with a comma as follows.

親モデルID:1:位置,親モデルID:1:位置,...

Changing the display position of the tab

In the above example, if customer: 1, the child model is placed at the beginning of the tab.

Fig. 7 Tab position first

The screen image is as follows.

Figure 8 Example with tab position at the top

I will prepare a repeating container "hobby" in the "customer" model.Here is an example of tab display of this container.

Fig. 9 Repeat container example "Hobby" tab summarized (1)
Fig. 10 Repeat container example hobby tab example (2)

Definition method

Repeat container layout name,Same as repeating container nameI will.

Figure 11 Let the layout name be the repeating container name

Lay out each layout as "tab" and set the tab number to 1.After the colon, specify the display position.

Figure 12 Setting tab numbers

Let's summarize the previous examples into one definition.You can combine the iteration container "hobby" of the "customer" model and the child model "support" all in tabs.

Fig. 13 Foreign key Child model and iteration container as one tab (1)
Figure 14 Foreign Key Child Model and Repetition Container as a Tab (2)
Figure 15 Foreign Key Child Model and Repetition Container as a Tab (3)
Figure 16 Foreign Key Child Model and Repetition Container as a Tab (4)

Definition method

The layout of the parent model (customer) is the same as in Figure 12.

Figure 17 Setting the parent model - Tab number

The child model (support) is the same as in Figure 6.(The display position is set to 4 here.)

Fig. 18 Child model setting - tab display position