Recently, while diving deep into the newly introduced virtual PCF component, I faced an issue where the PCF control wasn’t loading the data on the 1st load of the page.
Let’s have a look at the issue first. As seen in the below screenshot, I have added our PCF control on the First Name field. Kindly refer to this blog to have a look at it as well. Here you can see that the contact does have a first name, but isn’t being rendered in our control.
This happens, because as per my observation the PCF controls end up loading first before the full form is loaded which causes an issue while loading the default values. So to overcome this, I will use a property that is passed through context known as isPropertyLoading.
As per my observation, isPropertyLoading will return true until the form is completely loaded and the context can get actual field values instead of null.
So I will add a conditional rendering based on the isPropertyLoading property. Where I will render our component…
Source link
More About This Author
-
Inogic is one of the leading Microsoft Dynamics 365 ISV since 10+ years. Its flagship product Maplytics™ is a market leading certified (CfMD) geo-analytical mapping app. Maplytics empowers Dynamics CRM users across industries with the power of geographical data visualization, route optimization and along the route search with turn-by-turn directions, appointment planner, locational search by radius and shapes with drill-down filters and color-coded pushpins, heat maps, shape layers & territory management.
Inogic is renowned for its high quality and low-cost offshore development services and productivity apps like InoLink: QuickBooks + Dynamics CRM, User Adoption Monitor, Attach2Dynamics, Alerts4Dynamics Click2Export, Click2Clone, Kanban Board, SharePoint Security Sync, Lead Automation & Distribution, Map My Relationships, Auto Tax Calculator, Subscription and Recurring Billing and Marketing4Dynamics.
Array
- Dyn365CE19 April 2024Transforming Business Travel with maps integrated within Dynamics 365 CRM
- Dyn365CE19 April 2024CRM User Adoption Simplified: A Guide to Using Dynamics 365’s User Adoption Monitor
- Dyn365CE18 April 2024Refresh Dynamics 365 CRM Subgrid from Embedded Canvas App
- Dyn365CE17 April 2024The Lumberyard Revolution: How LMC Leverages Maps within Dynamics 365 to Deliver Forest Products Faster!