Hello all,
I have a very strange problem: I have a gallery, in which I have na icon control. The OnSelect of this icon is:
"Set(Edit_Record,!Edit_Record);Reset(DatePicker2)" - where Edit_Record is a boolean variable (Datepicker2 is not important).
The display mode of this icon is :
"If(ThisItem.IsSelected Or !Edit_Record,DisplayMode.Edit,DisplayMode.View)".
Basically, what I am trying to achieve is:
you click the incon on a selected row in the gallery and the icon becomes disabled for all other rows except the selected one.
The icon gets disabled but if I click on it, it still executes the OnSelect 😮
I've added a tooltip for the icon to actually check what is the status at every given line - status is showing disabled... but still if I press it, it executes OnSelect.
I've used the monitoring tool just to check what is going on - it shows that I am pressing the icon and PA successfully executes the OnSelect property.
I've tried everything that I can think if, but nothing helps...
Can someone suggest what the issue might be?
Thanks in advance.