카테고리 없음
PowerApps Component variable sync
Last72
2020. 8. 10. 08:57
1. Show Hide button will change locShowHide (component context variable)
2. Image on the right will visible based on the locShowHide
3. go sc1 and go sc2 changes the screen
Issue: locShowHide in Screen 1 and locShowHide in Screen 2 is independant. It might visible on Screen 1 but not Screen 2.
Solution:
On Hidden property for all screens, set global variable based on the locShowHide variable of that screen's component.
The component will understand that it uses global variable to show/hide image.
The component resets itself and make locShowHide blank using timer component.
Blank handling if statement has been added.
Screen1 OnHidden:
If(!IsBlank(Component1_1.cmpShowHide),Set(glbShowHide, Component1_1.cmpShowHide));
Show Hide button:
If(IsBlank(locShowHide), Set(locShowHide,!Parent.inputShowHide), Set(locShowHide,!locShowHide))
image visible:
If(IsBlank(locShowHide), Parent.inputShowHide, locShowHide)
Gif demo
componentvariablesync_20200809235052.zip
0.02MB