Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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.

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at
    Re: How to reset global variable typo of record

    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

     

     

  • Gidrone Profile Picture
    8 on at
    Re: How to reset global variable typo of record

    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
    Re: How to reset global variable typo of record

    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard