Parent Child Utility on ONEWEB is used to link two entities together via linking the module keys from the main module of the two entities. So if your business requirement needs complex smart form structures where you are required to create multiple entities and associate them together to capture any business needs, this could easily be achieved by using "Parent Child Entity" feature on ONEWEB.


User can access "Parent Child Utility" via simply routing to DEV ZONE -> App Designer-> -> Parent Child Entities as shown in steps (1-4) below:



By using this utility, an application user can easily specify the main Entity under "Parent Entity" and the other entity that is required to be linked under "Child Entity" on Parent Child Configuration screen. All other necessary settings required to use this utility are described below:



Click on icon to open up new Parent Child configuration window on screen.



Parent child configuration window provides a list of settings which helps to configure parent child link effectively. All settings inside "Parent Child Entity" window are listed below:


Item

Default value

Mandatory

Description

Parent Entity

N/A

Y

Select the Parent Entity in this field.

Parent tab

N/A  -

Y

Select the Tab from where the child entity is to be linked in this field.

Parent Module

N/A

Y

Select the Module from where the child entity is to be linked in this field.

Child Entity

N/A

Y

Select Child Entity in this Field

Child Tab

N/A

Y

Select the main Tab of Child entity in this Field

Parameter Passing

      -

-

-

Parent's Fields*

N/A

Y

Key of the Parent Entity passed to the Child Entity

Interface Parameters*

N/A

Y

Parameters key pass to the Child Entity.

Child's Fields*

N/A

Y

Key of the Child Entity to be invoked from Child Entity screen.

Image btn

N/A

N

Allow Developers to use image button.

Display Value

N/A

Y

Button Name to be displayed on Parent Entity.

Sequence

N/A

N

Sequence of button. Sequence 0 will appear before sequence 1 and so on.

Style Class

N/A

N

Use for any CSS customization, If required.

Source Tag

N/A

N

Use for Javascript Customization, If required.


User can configure any required button on Parent entity to redirect end user to another linked child entity. It makes creating complex smart forms more easy and more user friendly. Note: To create a relationship between Parent and child entity, database design needs to be in a way that both Parent and Child entities linked with Parent table Primary keys and other necessary keys, if required.