setAutoSyncNewDso(autoSyncNewDso);
autoSyncNewDso. It determines whether automatic synchronization is enabled:
True. Automatic dimension synchronization is enabled.
False. Automatic dimension synchronization is disabled.
The setAutoSyncNewDso method controls automatic synchronization of dimensions of added blocks.
To execute the example, make sure that the repository contains a dashboard with the 88665 key.
Create an HTML page with example of placing the KapBox component and execute the following operations:
Open the dashboard with the 88665 key:
Select the Document > Open main menu item
Execute the following in the console:
kapBox.open({
Key: 88665
});
Execute the following in the console:
var autoSincCheckBox = new PP.Ui.CheckBox({
ParentNode: "checkBox",
Content: "Automatic synchronization",
CheckedChanged: function () {
kapBox.setAutoSyncNewDso(autoSincCheckBox.getChecked());
if (kapBox.getAutoSyncNewDso() == true) {
console.log ("Automatic synchronization is enabled")
}
}
});
After executing the example, the Automatic Synchronization checkbox is added, which, if selected or deselected, enables or disables automatic synchronization of dimensions of added blocks. When automatic synchronization is enabled, the console displays the appropriate message.
See also: