I am calling onSave event when I change a record in DataGrid dropdown column and record is not saved. It works when I click onSave button, but not onChange event. Why is it not saving?
Hi Edward,
Can you please share the screenshot of the onchange event handler (client action) or OML file.
Maybe It is not passing the Id from the drop-down. So, it won't be storing the data in entity because if it is not getting the id while saving it. It would be passing 0 as Id which will not save the data as Id is unique and auto number.
Thank You @Bhanu.ps It worked for me.
Then how come it works when I click on save button?
That time it may be passing the Id check with assign that you have used while clicking in save button pass the same for onchange. If you are clicking on dropdown that particular select id should be passed. You can use debugger and check if the id is passing or not to onchange.
It would be more clear if you can share actions screen shot.