Support > Repository > Parent-child relationship > Allow creation of child models without parent model
ja | en

It is operation not specifying the parent parent model when new child model is registered. You can select parent later if necessary .

We will take on two models of "customer" and "support".

Create a support (child) from the customer details screen (parent)

In this case, you can pass the parent's primary key to the new screen of the child.(FIGS. 1 and 2)

Figure 1 Customer details screen
Figure 2 Support new registration screen

However, in the support new registration screen, you can change the parent's primary key.

Create a support (child) directly

On the support search screen, press the "Register screen" button.

Figure 3 Support Search Screen

On the support new registration screen, you can register parent's primary key as unset.

Figure 4 Support new registration screen
Figure 5 Support detail screen (parent not set)

On the support maintenance screen, you can set the parent's primary key.I will associate with my parent for the first time here.

Figure 6 Support Update Screen

Foreign key type

Change the type of the foreign key included in the child model (support model) to "item reference of other models".

Figure 7 Using Item Reference of Other Model

The input type is "search screen".Here, the primary key of the parent model is specified in the referenced model item.

Figure 8 Reference model item was used as the primary key of the parent model

Example of execution

Items other than the primary key of the parent model can also be used when displaying the screen.Here we will display the "Name" item.

Figure 9 Example displaying name items of parent model

Definition method

In Fig. 8, the referenced model item is an arbitrary item of the parent model.Here the name item is specified.

Figure 10 Reference model item was taken as the name item of the parent model

Example of execution

You can also select the primary key of the parent model and display other items using reference linkage.Here we will display the "Name" item.

An example of displaying the name items of the parent model with reference to Figure 11

Definition method

Add items for reference interlocking.

See Figure 12 Add items with interlocking
See Fig. 13 Add item of interlocking (2)