check if dialog form already open

オフライン
Can javascript determine whether an ARAS dialog form is already open? (win.main || win).ArasModules.Dialog.show('iframe',param);
Parents
  • Hello, You can check whether a dialog has already been opened by using code like the sample below.
    // Store an object containing information about the dialog
    var dlg = top.ArasModules.Dialog.show('iframe', param);
    // Check if the dialog has already been opened
    if (dlg.dialogNode.open) {
    // Do something here if the dialog is open
    }
    Chris
    Christopher Gillis Aras Labs Software Engineer
Reply
  • Hello, You can check whether a dialog has already been opened by using code like the sample below.
    // Store an object containing information about the dialog
    var dlg = top.ArasModules.Dialog.show('iframe', param);
    // Check if the dialog has already been opened
    if (dlg.dialogNode.open) {
    // Do something here if the dialog is open
    }
    Chris
    Christopher Gillis Aras Labs Software Engineer
Children
No Data