Can we use more than one "join" tag in the inside a single "element" tag under any schema | Community
Skip to main content
Level 2
March 13, 2020
Solved

Can we use more than one "join" tag in the inside a single "element" tag under any schema

  • March 13, 2020
  • 1 reply
  • 2567 views

Hi all,


I want to add two links to the same target table, below is the existing structure in the schema.

 

<element integrity="neutral" label="LabelOne" name="companySignaturesLink"
revCardinality="single" revIntegrity="neutral" revLabel="SchemaOne"
target="cus:labelOne" type="link">
<join xpath-dst="@destinationOne" xpath-src="@internalDestOne"/>
</element>
<element integrity="neutral" label="LabelOne" name="companySignaturesLink"
revCardinality="single" revIntegrity="neutral" revLabel="SchemaOne"
target="cus:labelOne" type="link">
<join xpath-dst="@destinationTwo" xpath-src="@internalDestTwo"/>
</element>


Can we add the join in the same <element> tag?


Like the below structure:

<element integrity="neutral" label="LabelOne" name="companySignaturesLink"
revCardinality="single" revIntegrity="neutral" revLabel="SchemaOne"
target="cus:labelOne" type="link">
<join xpath-dst="@destinationOne" xpath-src="@internalDestOne"/>
<join xpath-dst="@destinationTwo" xpath-src="@internalDestTwo"/>
</element>


Can you please let me know which is the good practice?


Many thanks in advance,

Anoop

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Milan_Vucetic

Hi @anoopa24021992 ,

 

yes, you can use two joins in the element tag.

 

<element desc="State/Province" externalJoin="true" label="State" name="stateLink"
revLink="recipient" target="nms:state" type="link">
<join xpath-dst="@code" xpath-src="location/@stateCode"/>
<join xpath-dst="@countryCode" xpath-src="location/@countryCode"/>
</element>

 

Regards,

Milan

1 reply

Milan_Vucetic
Milan_VuceticAccepted solution
Level 9
March 13, 2020

Hi @anoopa24021992 ,

 

yes, you can use two joins in the element tag.

 

<element desc="State/Province" externalJoin="true" label="State" name="stateLink"
revLink="recipient" target="nms:state" type="link">
<join xpath-dst="@code" xpath-src="location/@stateCode"/>
<join xpath-dst="@countryCode" xpath-src="location/@countryCode"/>
</element>

 

Regards,

Milan