Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Unanswered

updateView of a dataset control firing on inactive tab

(0) ShareShare
ReportReport
Posted on by 480

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?

  • skoofy5 Profile Picture
    480 on at
    Re: updateView of a dataset control firing on inactive tab

    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.

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at
    Re: updateView of a dataset control firing on inactive tab

    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!

  • skoofy5 Profile Picture
    480 on at
    Re: updateView of a dataset control firing on inactive tab

    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?

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.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 109 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 82 Super User 2025 Season 1

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 72

Overall leaderboard