web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to reset global va...
Power Apps
Unanswered

How to reset global variable typo of record

(0) ShareShare
ReportReport
Posted on by 8

Strange situation with global variable with one record.

 

I initialize the variable in Gallery:

 

Set(g_01_Quotations, LookUp(Quotations_01, BasicSegmentID_01Q = ThisItem.ID)),

 

On other screen app has two control, one radio button and one text input control. For both I need to update variable when OnChange happend:

 

 

UpdateContext({l_Is01_Quotions_Change: true});
Set(g_01_Quotations, Patch(g_01_Quotations, {
 an01Q_1_1: rdb11_Answers_scrQuestions.Selected.Result,
 no01Q_1_1: txt11_Notes_scrQuestions.Text
 })
)

 

everything works normal except one strange situation.... I use more than 7 this combination of Radio button and text input control for different column (an01Q_1_1 til an01Q_1_7), and when I add one more group of same control and change name ov column, app find milion errors (on all place when I use this global var). After save and open everything is ok, NO ERRORS!!!

 

Could, enyone explain what hepend and how to avoid save, close and open app every time when I change global var?

 

p.s. Errors what app checker find are complete different for all control, but always include: "Incompatible type....". When save, close and open app to edit, errors gone!!!

 

Thank you.

Categories:
I have the same question (0)
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Does a Reset() works?

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

  • Gidrone Profile Picture
    8 on at

    I didn't explain well ... the application works great, problem is when I add or change something in the application code and it concerns the variable, app checker tells me a bunch of errors. The error issue disappears when I save, close, and reopen the modified application. When all the variables are initialized when opening the application for changes, everything works properly. How to initialize an applications variables, not with code, but like opening an application or how to avoid this.

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Not sure if I understood your question (again). But, you have warnings about variables? Not when you use but when you edit, right?

    You can always star the vars on App On Start... 

    I am not understanding your question

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard