Hi!
I'm trying to configure an entity form to display specific views for different relationships on the same entity.
So here is the scenario:
The "phonecall" entity has to relationships to the "contact" enity:
- t4_contact_phonecall_relation1
- t4_contact_phonecall_relation2
So in the contact FormXML I get:
(Notice the "ViewId" attributes I already added with the IDs of the two custom views I want to use)
...
<NavBarByRelationshipItem RelationshipName="t4_contact_phonecall_relation1" Sequence="10000" Area="Info" Id="nav_t4_contact_phonecall_relation1" ViewId="AD80FD2D-D142-E211-8ADF-000C29A995B4">
<Titles>
<Title LCID="1031" Text="Relation 1" />
</Titles>
</NavBarByRelationshipItem>
<NavBarByRelationshipItem RelationshipName="t4_contact_phonecall_relation2" Sequence="10000" Area="Info" Id="nav_t4_contact_phonecall_relation2" ViewId="52D0D322-D142-E211-8ADF-000C29A995B4">
<Titles>
<Title LCID="1031" Text="Relation 2" />
</Titles>
</NavBarByRelationshipItem>
...
When I import the solution like this, all seems fine (no errors or warnings).
But when I open a contact form and click on the navigation items, they still use the generic "Associated Phonecalls" view.
Here is the offical documentation of the NavBarByRelationshipItem:
NavBarByRelationshipItem
Any help/ideas on this?
Thanks!
Daniel