Announcements
I have a a subgrid that shows different product options. There is a field called "Selected Option" that basically indicates which option the client has selected. There can only be one option so I have a Javascript that will iterate through the subgrid and set all the other options to False when an option is selected to ensure we only have one option.
The script is working, However, it does not seem to save the other rows. only the one that was changed. It makes the change but after refreshing it does not save the other rows in the table. Is there a way to save all values in the Subgrid?
When I try put Xrm.Page.data.entity.save(); after my code I get an error "save in progress".
Any ideas how I can achieve this?
Can you provide some guidance on the code for this? I am familiar with the CRM builder but not sure what the code would look like.
Hi,
Better you update all other sub-grid records using Web API instead of row context. After updating all the records, refresh the sub-grid to show the updated field values.
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156