cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Community Champion
Community Champion

BUG: Functions Lost when Grouping / Ungrouping Controls

After a long day of PowerApping and making great progress on a complex app, I ran into a HUGE snag. 

 

I think maybe all Grouped elements receive the same Visibility when Grouped. This is not GOOD. Especially if you have Controls with custom visibility set.

 

  • I use the asterisks on form fields to drive a progress bar
  • The asterisk visibility depends on a variable and the content of the field (IsBlank, etc.)
  • After a bunch of work on other areas of the app, I revisited the form and noticed progress bar was not working
  • Looked at each asterisk and ALL OF THE AND FUNCTIONS I had created to control visiblitly were gone and only the variable name remained. 
  • 2018-06-26_17-35-48.png
  • THE GOOD: 
    • I was able to CTRL+Z my way back to the critical change (about 100 CTRL + Z's !) and copy down all my AND functions into a OneNote
    • 2018-06-26_17-30-37.png
  • THE BAD: 
    • When attempting to CTRL + Y my way back to current state, the app got stuck in a loop and just says "Redoing changes" every 6-7 times I click CTRL + Y. 
    • I lost a lot of diverse work (creating new vars, creating new menus, etc.) that is going to be hard to redo

Be careful when grouping / ungrouping items, you may lose custom Visibility you set on individual controls. 

4 REPLIES 4
Community Champion
Community Champion

Community Champion
Community Champion

Looking closer at this...

 

Originally each Control had something to the effect of: 

And(
    varNewPopup, 
    dropdown.Selected.Value = " ")

The issue occurred after renaming "varNewPopup" to "varNewEvalPopup" and Grouping a bunch of Controls together. Not sure which action was actually responsible. 

Community Support
Community Support

Hi @ericonline,

 

Could you please share a bit more about the issue within your app?

 

I have made a test on my side and don't have the issue that you mentioned. Please take a try to modify your formula as below:

And(
    varNewEvalPopup, 
    dropdown.Selected.Value = " "
)

If you have renamed your variable name, please also modify the variable name within the formula where you reference to the variable.

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-xida-msft. Thank you for the response. 

 

The bug is: 

  • The control WAS originally set to: 
    • And(
          varNewEvalPopup, 
          dropdown.Selected.Value = " "
      )
  • With all controls NOT visible, I changed the variable name from varNewEvalPopup to varNewEval AND ungrouped/regrouped the applicable Controls
  • THEN later when working with the Controls again, ALL original code was overwritten by the new variable name ONLY
  • All original code shown above was GONE and only varNewEval was set.

 

I've been able to duplicate this on my end. 

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (3,994)