PP.App.setMbObject

Syntax

setMbObject(mbObject: PP.Mb.Object, settings: Object);

Parameters

mbObject. Repository object.

settings. Additional settings as a JSON object. This object may contain the SkipStorage field, which means that browser storage is ignored.

Description

The setMbObject method determines new settings for the current repository object.

Example

Executing the example requires an express report to be opened. The scenario specified below must be started in the browser console.

Set new key and name for the current express report:

var mbObject = new PP.Mb.Object({
    Key: 4960, // Key of opened express report
    Name: "My express report"
});
// Set new repository object
PP.App.setMbObject(mbObject);

After executing the example a new key and name are determined for the current express report:

See also:

PP.App