Hi,
I want it implement a logic on Delete checked records when user click on check boxes records on from.
i written logic but it is not working as i expected. when i click first record on form "Delete Record" button enabled. and i un check first record and try to make check 2nd, 3rd records button not enabling. why it is happening only for first record ?
i have attached OAP for reference.
in States List screen i have implemented logic please check this.
Hi @kishore reddy ,
I have update you oap.
you need to add one action on checkbox change and on this action use List any and add condition like is checked and this value on one local variable base on this local variable enable/disable Delete button.
Hope this will help you.
Hey @kishore reddy,
Your problem is that you're using the 'current' list value to check if the button can be enabled. The enable property was only looking at the first record. Also, the button is out of the scope of the table.
In these cases, you can't use the current value, you need to add logic to the checkboxes to see if the button can be enabled.
Here is an oap with a solution for you. I've added a client action to the onchange of the checkbox. Hope this helps you :)