I followed these tutorials from Youtube and it has different features and almost same approach.
There's an issue where I'm editing another row then when I click another EDIT button which is supposedly disabled,
the row being edited is still changing to the disabled edit button I've clicked.
Other else is working fine.
I feel like there's some properties I'm missing here.
I'm expecting the DisplayMode when switched to Disabled means it's not technically clickable or focusable.
Just for context, in the Action column I have a hidden container that holds the Done and Cancel button
and it is only shown when user clicks the Edit (Pencil) button.
Here's the sample how it looks like:
Now, I want to edit the first row so I click the Pencil icon then I will click the 3rd row pencil Icon while I'm still editing the first row
The picture is bright but there's a Disabled Pencil icon in the circled part.
Here are the properties I used to achieve this.
Properties:
OnVisible (of current screen)
Set(IsNew, false)
DisplayMode inside Gallery each editable fields (Care Manager, Auditor, Decision, Init/Ongoing and Live/Post)
If(ThisItem.IsSelected && IsNew, DisplayMode.Edit, DisplayMode.Disabled)
Edit Icon properties
DisplayMode:
If(IsNew, DisplayMode.Disabled, DisplayMode.Edit)
OnSelect:
Set(IsNew, true);
Visible:
If(ThisItem.IsSelected && IsNew, false, true)
Container that holds Done and Cancel button
Visible:
If(ThisItem.IsSelected && IsNew, true, false)
Done and Cancel button
OnClick:
Set(IsNew, false);