DataSaveDialog Constructor

Syntax

PP.Prx.Ui.DataSaveDialog(settings);

Parameters

settings. JSON object that contains component settings.

Description

The DataSaveDialogsettings constructor creates a dialog box for saving modified data.

Example

To execute this example, in the HEAD tag add links to the following JS and CSS files:

In the BODY tag add the DIV element with the btn1 identifier.

Add the following JavaScript code:

    //set the current culture
    PP.setCurrentCulture(PP.Cultures.ru);
    //create a repository connection
    metabase = new PP.Mb.Metabase({
        Id: "Warehouse",
        UserCreds: { UserName: "user", Password: "password" }
    });
    //open repository
    metabase.open();
    //create a service for working with regular reports
    prxMbService = new PP.Prx.PrxMdService({ Metabase: metabase });
    //open regular report by key
    prxReport = prxMbService.open(699099);
    var saveDataDialog = new PP.Prx.Ui.DataSaveDialog();
    function ShowDialog() {
        saveDataDialog.show(10, 30)
    }
    var btn = new PP.Ui.Button({
        ParentNode: document.getElementById("btn1"),
        Click: ShowDialog,
        Content: "Open"
    })

After executing the example the Open button is placed on the page; clicking this button opens the following dialog box:

See also:

DataSaveDialog