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

Re: BUG: Functions Lost when Grouping / Ungrouping Controls

Highlighted
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. 

Highlighted
Community Support
Community Support

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.
Highlighted
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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,871)