Hi anyone had done this before, after i type 6 and when user leave the cell i wish to trigger a save action.
I am not able to find a suitable event from below
Appreciate someone can share how you do it.
Thank you in advance.
Hi @Jerah ,
Have you considered using the "OnCellClick" event to trigger the save action? You could also use GetChangedLines to check if a modification has occurred and execute the Save action accordingly. This ensures that data is only saved when necessary, preventing unnecessary operations and improving efficiency. Click here to see data grid documentation
Otherwise, if automatic saving is a challenge, it may be safer to allow the user to review their changes and click a button before submitting the data to the backend.
Regards,
Tamirys Barina
Do you mean, when user after finish editing and click on another cells the i add the GetChangelines in that event and if there is a change then i proceed to do the save ?
Hi @Jerah
Need to call save action in the OnBlur event of the input. You can able to figure out this in the Events section in Properties Tab. There select OnBlur and in the handle, create or call your save action.
Please refer the attached OML & Demo Screen.
Hope this works.
Thanks,
Senthil
Thank you so much for taking time to do up the demo , unfortunately i am using data grid and not aggregate.
In my data grid my column name is also not fixed and they are dynamic. So i do not have a structure where i can tie the onblur to the cell inside the GridColumnsPlaceholder.
Thank you once again
You can handle your save logic in OnCellValueChange event. Bind this event to a client action.