Notifications
Announcements
So I have a dataset control on one tab and when I navigate away from it after initially loading I've noticed that the save event still fires updateView. Is there a way to prevent this?
Right so I can use trackContainerResize(true) and check the allocateWidth, but this doesn't seem like a good solution and introduces other problems. Is there no way for a control to see if its tab is active or the control's container's display status?
Hi @skoofy5 ,
I've checked, and it's true that the updateView is called once when the user leaves the tab.
Maybe as a workaround you could check the combination of... ?
context.updatedProperties === "layout" and context.mode.allocatedWidth === 0
@HemantG : The context.mode.isVisible property of a dataset PCF is always true, also when the user clicked on the other tab. Is this by design?
Hope this helps!
For me it's called every time the user saves the form subsequent to loading the control initially and I don't get the point of isVisible because, as you've noted, it always just seems to return as true.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 711 Most Valuable Professional
Michael E. Gernaey 319 Super User 2025 Season 2
Power Platform 1919 268