Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Variable value correct, but Action behavior Not working

Posted on 21 Nov 2024 21:10:48 by 23
I am having lots of difficulty with my app maintaining its functionality & data.  
 
For instance, at times, usually when I have not accessed the app in a day or so, I may open up the app, and the Edit Form that I designed, with snap to columns engaged, suddenly has shifted and some fields are in different areas, some have changed their shape & size and it looks like a jumbled mess.  
 
Other times, there may be a variable that is set to false, and that variable is used to make a text label visible.  The variable is in the Visible field of the component, set to false, yet the label is visible.  If I delete the variable out of the Visible field, and just paste it right back in there - suddenly it works again.  
 
So many random issues like that - and it's to the point that I don't want to push this app out to my team for use because it may at any given time just do random things like this.  
 
I did read where sometimes if sources are updated it will cause this but it happens even when nothing was updated.  Anyone else experience? and/or solved it? 
  • ronaldwalcott Profile Picture
    ronaldwalcott 704 on 22 Nov 2024 at 01:01:33
    Variable value correct, but Action behavior Not working
    Do you leave the app open and resume or close it and restart? 
  • jyounce Profile Picture
    jyounce 23 on 21 Nov 2024 at 22:24:49
    Variable value correct, but Action behavior Not working
    @ronaldwalcott - I use both global & context variables.  The particular variables in the example above with the visible property, is a context variable.  It is defined with UpdateContext in the OnVisible screen to true   --  UpdateContext({variablename:true}).  And when I hover over the variable or look in the Variable side bar, it says the value is true.  And I click into the field in the Visible part of the component, and hover over the variable, it says its value is true.  
     
    Everything points to true, yet the component is not visible.
  • ronaldwalcott Profile Picture
    ronaldwalcott 704 on 21 Nov 2024 at 21:25:45
    Variable value correct, but Action behavior Not working
    Are you generally using global variables or context variables?
    If global are they initialized in the OnStart?
    Do you leave the app open and resume or close it and restart? 

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

October 2024 Newsletter…

October 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #4 How to Conntact Support…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,061

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,795

Leaderboard