16 Jan 2016
Link to this post
How can I index into a field on a linked entity in the custom layout? For example in the below code, how to I get the aa_childentityfield onto the List? I've tried using the alias, the logical name and parent.child (both alias and logical).
Fetch xml:
<fetch version="1.0" mapping="logical" output-format="xml-platform">
<entity name="aa_parententity">
<attribute name="aa_parententityid" />
<filter type="and">
<condition attribute="aa_relationshipidfield" operator="eq" value="@CID@" />
</filter>
<link-entity name="aa_childentity" alias="aa_childentity" to="aa_parententity" from="aa_parententityid">
<attribute name="aa_childid" />
<attribute name="aa_childfield" alias="aa_childfield" />
</link-entity>
</entity>
</fetch>
ASP Label
<td>
<asp:Label ID="Label3" runat="server" Text='<%#Eval("[what goes here??]") %>'></asp:Label>
</td>