close();
The close method closes connection to repository.
Executing the example requires a created connection to repository named mb and service for working with dimensions named dimSrv (see Example of the DimCombo Component Layout).
Add a button clicking which closes the repository connection:
var button = new PP.Ui.Button({
Content: "Close connection",
Click: function () {
mb.close();
},
ParentNode: document.getElementById('button'),
});
mb.Closed.add(function () {
alert("Repository connection is closed")
});
After executing the example clicking the button closes the repository connection. The following message is displayed: Repository connection is closed.
See also: