[TIPS] Set time out and Refresh form in Dynamics 365

 [TIPS] Set time out and Refresh form in Dynamics 365 

Example:

function refreshForm(executionContext)

{
    var formContext = executionContext.getFormContext();  
    setTimeout(function(){formContext.data.refresh(true); stageChangedHandler(executionContext)}, 2000);
}


Note:

// Save and refresh the form formContext.data.refresh(true);
// Refresh the form (without saving) formContext.data.refresh(false);

No comments:

Post a Comment