cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Super User
Super User

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
Super User
Super User

Re: BUG: Functions Lost when Grouping / Ungrouping Controls

Super User
Super User

Re: BUG: Functions Lost when Grouping / Ungrouping Controls

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 Team
Community Support Team

Re: BUG: Functions Lost when Grouping / Ungrouping Controls

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.
Super User
Super User

Re: BUG: Functions Lost when Grouping / Ungrouping Controls

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,359)