I want to Save and refresh editable subgrid. anyone have any idea about it how can i do this using JavaScript
Thanks in Advanced
*This post is locked for comments
I want to Save and refresh editable subgrid. anyone have any idea about it how can i do this using JavaScript
Thanks in Advanced
*This post is locked for comments
Hi, can you please give an example of how to do it?
Hi You can use API call to save subgrid on OnChange event of Subgrid.
and refresh by gridcontrol.refresh(); command at the end
onload
Where i have to applied it, i mean which events
function refreshFormAfterInitialSave() {
if (Xrm.Page.ui.getFormType() == 1) {
top.callN = 1;
}
if (Xrm.Page.ui.getFormType() == 2 && top.callN == 1) {
setTimeout(function () {
top.callN = null;
Xrm.Utility.openEntityForm(Xrm.Page.data.entity.getEntityName(), Xrm.Page.data.entity.getId());
}, 2000);
}
//////////////////////////////////////////
OnLoad: function (context) {
//set id for first call after save
refreshFormAfterInitialSave();
},
André Arnaud de Cal...
292,494
Super User 2025 Season 1
Martin Dráb
231,307
Most Valuable Professional
nmaenpaa
101,156