Forum Discussion

Shankar's avatar
Shankar
Ideator II
9 years ago

Opening SearchDialog.html from code behing not working

Hi All, we have below code for opening searchdialog.html before aras 11 sp 8 now we have sp 8 , it is not working. any sujjetions??? var params = {aras: top.aras, itemtypeName: 'Identity', itemContext: undefined,itemSelectedID: undefined, var params = {aras: top.aras, itemtypeName: 'Identity', itemContext: undefined,itemSelectedID: undefined, sourceItemTypeName: 'Identity', sourcePropertyName : undefined}; var options = { dialogWidth: 700, dialogHeight: 450 }, dlgRes = aras.modalDialogHelper.show("DefaultModal", window, params, options, "searchDialog.html");    

2 Replies

  • Hello, Modal Dialogs are no longer supported in modern browsers like Chrome and Edge. Because of this, the 'DefaultModal' option of the modalDialogHelper is no longer available. As a simple workaround, you can update your code to use the 'SearchDialog' option like the sample below.
    
    var params = {aras: top.aras, itemtypeName: ‘Identity’, itemContext: undefined,itemSelectedID: undefined,
    
    var params = {aras: top.aras, itemtypeName: ‘Identity’, itemContext: undefined,itemSelectedID: undefined, sourceItemTypeName: ‘Identity’, sourcePropertyName : undefined};
    
    var options = { dialogWidth: 700, dialogHeight: 450 },
    
    dlgRes = aras.modalDialogHelper.show(“SearchDialog”, window, params, options);
    
    Chris __________________________ Christopher Gillis Aras Labs Software Engineer
  • Thanks Christopher Gillis, It works for me.