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.
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
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.
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
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional