Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
11 views5 pages

Links

Uploaded by

royalglassgtr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views5 pages

Links

Uploaded by

royalglassgtr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Links

1. Introduction:
 Link is an object type used when we required to show Child Data in
Parent.
 Generally, two types of Links are available : 1:M & M:M link
2. Steps to Create a 1:M Link:
a. Link Creation : Link is to build relationship
Go to Link Object-NR-Name(New)-Project-Parent BC-Child BC-Source
Field (PK, which will be taken automatically- ROW_ID- Column and
Field of PK is Id)-Destination Field (Name of FK Field).
Note: Identification of FK Column: Go to table-Query Child Table-
Click on Columns-Query for Parent Table in FK table property-Name
in the Name Property is the FK Column.
Identification of FK Field: After getting foreign key column we have to
identify the FK Field.
Go to Child BC- Field-Query with FK Column in Column Property-Then
name in the Name Property should be taken as the Name of the FK
Field.
b. Creation of MVL in Parent BC :
Go to BC-Query for Parent BC-Below the BC go to MVL object-NR-
Name(New Name)-Destination Link(Link Name created in abv step)-
Destination BC (Child BC)-Primary Id field.

Primary Id Field : This is the property that Specifies the name of the
field in the parent BC that contains the row IDs that reference primary
records in the child BC.

Finding out of Primary Key: Go to Parent table -Query in Foreign Key


table (Child Table).
If field is not available, we have to create it manually by Implicit Join.

Page 1 of 5
** Creation of New Column (for primary field) : Go to Parent BC-
Fields-NR-Name(Primary SR Id)-Join(Extension Table)-Column(e.g.:
Attribute XYZ)-HTML( Check Box) -HTML Icon map (check )-Runtime

**Destination BC means from where we required to bring the data**


c. Creation of MVF in Parent BC :
Go to MVF object in BC-NR-Name(New Name)-MVL(Name of MVL link
created abv)-Field (Here Fields of child BC will appear).

**If MVL field is empty then only system columns of parent BC will be
available**

d. Mapping / Adding of MVF in Parent List / Form Applet:


Go to Parent Applet-NR-Display Name (New Name)-Field (Name of
MVF created abv)-Edit Web Template-Drag & drop-Save-Compile.

Note: If we want to map in Form Applet, then after creation of Controls


in Edit Web Template we have to drag & drop Label & Text Box both.

After creating 1:M link the fields will be in read only mode to change this
into editable mode, we must create MVG Applet.

e. Creating MVG Applet in Child BC: As data of child BC is to be shown in


MVG applet it should be created in the name of Child BC.
This will be created by Wizard.
File-New Object-MVG-Project-Name (New Name)-Display Title-BC
(Child)-Upgrade Behaviour (Preserve)-Web Template layout (Popup
list MVG)-Select Fields that requires (Along with the other fields , SSA
Primary Field should be added default for every new MVG Applet)-Edit
Web template(This is will come automatically after clicking the Finish
button) (Here Query & Go button to be added).
SSA Primary Field : This is a system field on a BC that can be used to
identify which MVG record is the primary.

Page 2 of 5
f. Mapping MVG Applet in Parent List / Form Applet:
Go to Parent Applet-List Columns / Controls-Go to the name & query
for New fields created-In MVG Applet Property add name of the MVG
applet created-Run time True
If Close button is not created automatically in MVG, then we should
create a button to display the close button at the bottom.
Go to MVG applet-Controls-NR-Caption String Override -Name-HTML
Type (Mini Button or Mini Button Edit)-Method Invoked(Close Applet)-
Edit Web Layout-Drag & drop -Save.
3. Steps to Create a M:M Link:
a. Link Creation :
Go to Link-NR-Name (New)-Project-Parent BC-Child BC6-Intersection
Table-Inter Parent Column(Parent FK)-Inter Child Column(Child FK)
**FK : We get FK in Intersection Table**
b. Creation of MVL in Parent BC :
Go to Parent BC-MVL-NR-Name(New)-Destination Link(Name of the
Link created abv)-Destination BC(Child BC)-Primary Id Field.
For Primary Id Field, refer Page 1 of 3
c. Creation of MVF in Parent BC :
Go to Parent BC-MVF-NR-Name(New)-MVL(Name of the MVL created
abv)-Field **(Fields of Child BC)**

d. Mapping / Adding of MVF in Parent Applet:


As MVF is a type fields, so that these are to be added in List Columns in
Applet by which they will be visible.

Go to Parent Applet-List Column-NR-Display Name String Override


(New)-Field(Name of the MVF created abv)-Edit Web Layout-Drag &
Drop-Save.

Page 3 of 5
e. Creating MVG Applet in Child BC :
Through Wizard- Project-Name(New)-Display Title-BC(Child)-Upgrade
Behaviour-Web template layout(Pop Up list MVG)-Add fields by
selecting (Here SSA Primary Field also be added)-Web Template-Drag
& Drop (Query & Go button to be added by default).
***If SSA primary field is added through the Wizard then HTML Type,
Runtime True, HTML Icon Map (Check Box) will come automatically. If
we add them manually via fields then those properties should be
added.***

f. Creating of Associate Applet : This should be created through Object.


New Applet-NR-Name(New)-Project-BC(Child BC, MVG applet &
associate applet should be in same BC)-Class(Copy from existing
Associate applet)-Type(Associate List)-Upgrade behaviour(Preserve).

As this is an Applet, there should be list & list columns to show the data.

Go to list-NR-Name(List).

Go to list columns-NR-Name(New)-Fields(Same Fields given in MVG


applet where fields will be from child BC).

Edit Web Layout-Popup list applets -Fields (These fields will come
automatically)-Add Buttons-Save.

g. Mapping of Associate Applet to MVG Applet :


Go to Newly created MVG applet-Associate Applet Property(Name of
Associate Applet created)-Type(MVG).

h. Mapping of MVG Applet to Parent Applet :


Go to Parent Applet-List Columns-Query for Fields-MVG applet-Run
time True.

Page 4 of 5
**Applet which is having Primary is MVG applet & other is Associate
Applet.**

Page 5 of 5

You might also like