Showing posts from July, 2019

[Bug] setDefaultView is not working in the Unified Interface

Recently, there is an issue in Unified Interface where setDefaultView Client API in JavaScript is not working even though the same script is working for the same form in the legacy web client.

formContext.getControl("parentaccountid").setDefaultView("{00000000-0000-0000-00AA-000010001031}"); // GUID of Inactive Accounts view

After raising a ticket with Microsoft, the issue had been concluded as a product bug by the “Product Team” and the following workaround solution is provided.

A possible workaround is to reset the Lookup's state by removing it from the form then re-adding it to the form. Note that clicking the "OK" button on the Field Properties popup will put Lookup back into the "bad" state.

There is no expected ETA on this bug, so if you ever encounter the same issue on the unified interface, remove the lookup control and re-add it back to solve. You won't be able to change the Field Properties or else, it would add the highlighted …