November 16, 2015

Use one table for creating multiple relation

Hi Folks,
After a long time I’m writing this new post.
Requirement: I need to use the single table to add multiple relation on a table. For eg. I have a parent table Table1 with field ItemId and ProcessItem. Now I need to add relation to InventTable to both fields. Hence I have to create two relation with InventTable.

How to do: Add two new relation in your table as shown below.

image
You might get an error message after this,
'RelatedTableRole' conflicts with another 'RelatedTableRole' on relation InventTable_Item on table ProcessedItemTable.
image
Solution to this error:
Set below two properties to each relation
1. UseDefaultRoleNames- set it to “NO”
2. Role: Give any logical name here, for eg. “Item”

image
image
Now compile your table, error must gone.
Write your any query/feedback in comment box and help us to improve. Thanks..!!!
-Harry

4 comments:

  1. What is the use of this relation properties(RelatedTableCardinality,Cardinality,Relationshiptype,UseDefaultRolenames and all)

    ReplyDelete
  2. It is worthwhile reading this blog. I was searching such kind of blog for a long time but now I think I got a blog of my interest. I am thankful for these all suggestions mentioned under this blog. Owned networks Miami

    ReplyDelete
  3. Your blog helped me a lot. Thanks

    ReplyDelete
    Replies
    1. Thanks Kushal. Good to know its helpful. Keep in touch.

      Delete

Thanks

Note: Only a member of this blog may post a comment.