1-many linking doubt | Community
Skip to main content
Level 3
June 24, 2025
Solved

1-many linking doubt

  • June 24, 2025
  • 1 reply
  • 304 views

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?

Best answer by ParthaSarathy

Hi @kd1-1 ,

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

1 reply

ParthaSarathy
Community Advisor
ParthaSarathyCommunity AdvisorAccepted solution
Community Advisor
June 24, 2025

Hi @kd1-1 ,

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

~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups