I have tried Context variable and Global variable. Nothing works.
To give more details to the forum, please see below
I have only 1 screen in my power app.
On the OnVisible event I am setting my variable UpdateBtnDisplayVar as below:
OnVisible: UpdateContext({UpdateBtnDisplayVar: DisplayMode.Disabled})
I have an update button on the screen to write record to my database tables for the selected record in the table visual. Upon selecting row from the table visual, the update button should always be disabled and can get only enabled by passing through the validations.
Due to the validations present in the app, this variable will be set as
UpdateContext({UpdateBtnDisplayVar: DisplayMode.Enabled})
I then navigate to next record in the table and expect that variable should be reinitialized to its original state of UpdateBtnDisplayVar: DisplayMode.Disabled which never happens until the validation assigns it a different value
Once I set the variable value, it does not change upon selecting a new row in the table visual of power bi