getOpenDialog ();
The getOpenDialog method returns dialog box for opening an object from repository.
The method returns an instance of the PP.Ui.MetabaseOpenDialogclass.
To execute the example, the page must contain a dashboard constructor named kapBox. The BODY tag must contain a DIV element with the "but" identifier. Add buttons clicking which will open dialog boxes used to save and open a repository object:
var openDialogButton = new PP.Ui.Button({ ParentNode: "but", Content: "Open", Click: function () { kapBox.getOpenDialog().show(); } }); var saveDialogButton = new PP.Ui.Button({ ParentNode: "but", Content: "Save", Click: function () { kapBox.getSaveDialog().show(); } });
After executing the example the Open and Save buttons are placed in the page. Clicking these buttons opens dialog boxes for opening and saving repository object.
See also: