Show TOC

Accessing the "writeConfiguration" ContractLocate this document in the navigation structure

As a prerequisite, you have to consume the writeConfiguration contract as well as the configuration contract in the CHIP definition XML.

The writeConfiguration property is then available in the CHIP API object. It provides the method chip.writeConfiguration.setParameterValues(), which allows mass updates of parameters that have been declared in the CHIP definition XML.

Note

Only string values are supported.

The default error handler is usually provided by the page builder.

Example:

Code Example
var oChipApi = this.getView().getViewData().chip;

oChipApi.writeConfiguration.setParameterValues({
  columns: "2",
  id: "07UI2_EPM0BUI2_EPMDEMO00",
  showChildren: "false"
}, function () {
  // continue in case of success...
}, function (sErrorMessage) {
  alert("write configuration failed: “ + sErrorMessage); 
});