Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Wait till Modal form is Saved

$
0
0

Hi All,

I have used the follwing function to Open model form by sekecting record from subgrid. The issue is I need the details of the field of this popup form to execute the next line but it is not stopping till Save and the next line of code is getting executed once we just open the form.

Below is the fuction to open modal form

functionopenRecordFormInPopup(selectedRecordId)
{
       
        varprodId== selectedRecordId.slice(1, -1);
       
        varpageInput = {
        pageType:"entityrecord",
        entityName:"sd_enityprod",
        entityId:prodId
        };
        varnavigationOptions = {
        target:2,
        height: { value:100, unit:"%" },
        width: { value:100, unit:"%" },
        position:1
        }
        parent.window.Xrm.Navigation.navigateTo(pageInput, navigationOptions).then(
          functionsuccess() {},
          functionerror() {}
             );
       
}
How Can I execute the next function call after this form is not saved..Can anyone please modify it???

Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images