I'm adding some fields to the abc:recipients (recipient's extension) schema.
It currently has 01 PK in the base recipient schema. I need to add an attribute from the extension also as PK. So both are not a combined PK, rather individual PKs.
Is this ok?
This is how I have set the codinterno field as PK:
<key internal="true" name="codinterno_pk">
<keyfield xpath="@codinterno"/>
</key>
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
My main goal was to have "codinterno" as a unique field.
@ParthaSarathy suggested doing:
<dbindex name="myIndex" unique="true">
<keyfield xpath="@myField"/>
</dbindex>
Since it was my main goal to have that as a unique field, Paratha suggestion works for my case.
Thank you both.
Views
Replies
Total Likes
Hello @god_prophet My recommendation would be create only one primary key in Recipient schema. @id field is defined as PK by default. So I would suggest creating "codinterno" as another attribute.
My main goal was to have "codinterno" as a unique field.
@ParthaSarathy suggested doing:
<dbindex name="myIndex" unique="true">
<keyfield xpath="@myField"/>
</dbindex>
Since it was my main goal to have that as a unique field, Paratha suggestion works for my case.
Thank you both.
Views
Replies
Total Likes