Hi,
I have an editable grid where I have checkboxes. The moment I unchecked any checkbox I want to store its value.
Thanks!
Discussion posts and replies are publicly visible
You can use below code to achieve this.
load( local!selectedBoxIDs, local!uncheckedBoxId, local!oldSelectedBoxIDs: tointeger( {} ), /*Array to hold all checked ids.*/with(
a!checkboxField(
....... value: local!selectedBoxIDs, saveInto: { local!selectedBoxIDs, a!save( local!uncheckedBoxId, difference( local!oldSelectedBoxIDs, local!selectedBoxIDs ) ), a!save( local!oldSelectedBoxIDs, save!value ) } )
))
What I understood is you are trying to save/store the value of deselected checkbox. The above solution should work in this case.
This is right. But I need to fetch value of particular checkbox which is unchecked.
The above code gives you exactly that. The value of the unchecked checkbox.
If you want a list of all unchecked checkboxes you may also use append() function (depending on what you actually need.)