Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards
SOLVED

1-many linking doubt

Avatar

Level 4
Level 4

Hi @ParthaSarathy ,

I have created two schemas having a one-to-many relationship with a common key deptid in both schemas.

I have added the following code in the Student table:

 

<element integrity="normal" label="Department" name="department" revIntegrity="normal"

         revLabel="Students in Department" revLink="student" target="kbd:department"

         type="link">

  <join xpath-dst="deptid" xpath-src="deptid"/>

</element>

 

I have the following questions:

1.Is above code correct?

2. Is the above code added in the Student table correct?

3. Do I need to add code in the Department table as well? If yes, what will be the correct code?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @KD1 ,

Yes the above syntax is correct.  The script should be written in Student table and no need to write separate code in department schema.

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @KD1 ,

Yes the above syntax is correct.  The script should be written in Student table and no need to write separate code in department schema.