Forum Discussion

Mark_S_'s avatar
Mark_S_
Ideator I
8 years ago

How to close a modal dialog form

Hi, Is there a method available to close a modal dialog form that was launched with e.g. through top.aras.modalDialogHelper.show(...)? Also is there a reference that describes the different methods that are available in the Aras class? In the sample codes there are a lot of methods used that aren't included in the available documentation, e.g:
  • top.aras.modalDialogHelper.show
  • topWnd.ArasModules.Dialog.show
  • aras.getMostTopWindowWithAras
  • etc.
Thank you for your help!

3 Replies

  • Hi Mark, You can close a dialog opened by the modalDialogHelper using the following of code. parent.args.dialog.close(); We are currently working on a blog post going over more details of using dialogs within Innovator, but in the meantime, you can look at the Custom Modal Dialog community project which contains an example of opening a dialog and returning data from it. github.com/.../custom-modal-dialog Chris ________________________________________ Christopher Gillis Aras Labs Software Engineer
  • Thanks Chris, the code works fine! Actually, I had already installed the github.com/.../custom-modal-dialog project and the the latter part of my question regarding the documentation of the different methods stems from there. Mark