티스토리 뷰
Example case: The submit button only enables when the pen input (Signature) is filled.
Old way
|
App.OnStart |
Set(initialTeamLeaderSig, penManagerERS.Image); |
|
Pen.OnSelect |
Set(TeamLeaderSig, penTeamLeaderERS.Image) |
|
Button.DisplayMode |
If(TeamLeaderSig <> initialTeamLeaderSig, DisplayMode.Edit, DisplayMode.Disabled) |
Issue: when user clicks and not draw anything, the button still enabled.
New way
|
Screen.OnVisible |
UpdateContext({locTeamLeaderSigBlank: JSON(PenInput1.Image, JSONFormat.IncludeBinaryData)}) |
|
Pen.OnSelect |
UpdateContext({locTeamLeaderSigCurrent: JSON(Self.Image, JSONFormat.IncludeBinaryData)}); |
|
ResetBtn.OnSelect |
Reset(PenInput1); UpdateContext({locTeamLeaderSigTimerStart: false}); UpdateContext({locTeamLeaderSigTimerStart: true}); |
|
Timer.Start |
locTeamLeaderSigTimerStart |
|
Timer.Visible |
false |
|
Timer.OnTimerEnd |
UpdateContext({locTeamLeaderSigCurrent: JSON(PenInput1.Image, JSONFormat.IncludeBinaryData)}); |
|
Timer.Duration |
50 |
|
SubmitBtn.DisplayMode |
locTeamLeaderSigBlank<>locTeamLeaderSigCurrent |
'IT > PowerApps' 카테고리의 다른 글
| Finding hidden AdvancedFind for Dataverse (0) | 2024.07.17 |
|---|---|
| Export Case with attachments (0) | 2021.08.15 |
| PowerApps Get the height of Gallery (0) | 2020.09.25 |
| PowerApps Direct interface to Document Library (0) | 2020.09.25 |
| Grid in PowerApps (0) | 2020.09.09 |