Hello everyone!
We recently followed this article and successfully enabled the subgrid. However, we have a couple of issues and was hoping someone familiar with JavaScript could help out;
- The subgrid is pulling Active and Inactive contacts. What would I add to the JS code to filter the results and only display Active contacts only? I have tried changing the subgrid view in the Form Customization, but it looks like the JS code overwrites this upon loading.
- Not sure if this can be fixed (and it's not a huge issue), but we're receiving a generic error message when we use the "plus" sign of the subgrid to add a new contact. I have pasted the error below, error code 2147220989. This error doesn't prevent the contact from being created.
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Expected non-empty string.Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ErrorCode>-2147220989</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>Expected non-empty string.</Message>
<Timestamp>2017-05-03T16:02:49.648248Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>
*This post is locked for comments