Unable to open entity type record for subgrid using XrmApp.Entity.SubGrid.OpenSubgridRecord() when first column within subgrid view is of lookup type. #1304
When attempting to open a related record via a subgrid for a given index and the first column within the subgrid view is of type lookup; the entity type associated to the lookup is opened and not the entity type for the subgrid.
For example, the following image shows a list of related Addresses. When we attempt to open the row via OpenSubGridRecord() a double-click action occurs on the second cell containing a hyperlink to a related Contact record as highlighted in the image. This results in the Contact record being displayed and not the Address.
When attempting to open a related record via a subgrid for a given index and the first column within the subgrid view is of type lookup; the entity type associated to the lookup is opened and not the entity type for the subgrid.
For example, the following image shows a list of related Addresses. When we attempt to open the row via OpenSubGridRecord() a double-click action occurs on the second cell containing a hyperlink to a related Contact record as highlighted in the image. This results in the Contact record being displayed and not the Address.