Customizer's Guide > Working with XUI (XML-based User Interface) Dialog Boxes > Displaying the Dialog Box using the AOM
  
Displaying the Dialog Box using the AOM
The AOM Application.createDialogFromFile() method creates XUI dynamic dialog boxes.
To display a XUI dialog box (in this example, the dialog box is defined in the XML file C:\Project\find.xml), you can run the following JavaScript statements:
var dialog = Application.createDialogFromFile("c:\Project\find.xml");
dialog.show();
Another method, Application.createDialogFromDocument(), creates a XUI dynamic dialog box from an existing DOM Document.
As when defining the XUI dialog box, value and setting changes in the XML document will be reflected immediately in the dialog box. Likewise, modifying controls in the dialog box will cause immediate updates to the XML document.
To suspend immediate updates, set the value of View.suspendupdates to TRUE.