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.
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.
Define the layout name in the item group of the parent model (customer).
Lay out this layout as "tab".Furthermore, "tab number" should be as follows.
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".
In this example, it is described as customer: 1: 3.This places it in the third tab position of the parent model ID customer.
Link multiple parents to one childWhen settings are made, you can specify them by separating them with a comma as follows.
In the above example, if customer: 1, the child model is placed at the beginning of the tab.
The screen image is as follows.
I will prepare a repeating container "hobby" in the "customer" model.Here is an example of tab display of this container.
Repeat container layout name,Same as repeating container nameI will.
Lay out each layout as "tab" and set the tab number to 1.After the colon, specify the display position.
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.
The layout of the parent model (customer) is the same as in Figure 12.
The child model (support) is the same as in Figure 6.(The display position is set to 4 here.)