Class Index | File Index

Classes


Namespace chip.writeConfiguration

The namespace for the CHIP API's writeConfiguration contract which allows you to write configuration parameters.
Defined in: configuration.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
chip.writeConfiguration.setParameterValues(mConfigurationUpdates, fnSuccess, fnFailure)
Sets the values of the given configuration parameters and persists the updated chip instance.
Namespace Detail
chip.writeConfiguration
Since:
1.7.0
Method Detail
<static> chip.writeConfiguration.setParameterValues(mConfigurationUpdates, fnSuccess, fnFailure)
Sets the values of the given configuration parameters and persists the updated chip instance. All parameters that actually were defined in the CHIP definition XML are accepted. All others will raise a warning to the log.

The configuration is maintained as JSON string in a single property. This has the following consequences regarding the scopes:

Example:
The CHIP has two properties: a with default value "foo" and b with default value "bar". The administrator changes a to "baz" in scope CUST. Later a user changes b in PERS. Then the administrator decides to change a back to "foo", but our user will never see this again, because the system persisted both a and b in PERS.
Parameters:
{map} mConfigurationUpdates
The configuration updates. The values must be strings. You can however set a value to undefined. This removes it from the list of updated properties and effectively resets it to the default value.
{function ()} fnSuccess Optional
no-args success handler
{function (string|[object])} fnFailure Optional
error handler taking an error message and, since version 1.28.6, an optional object containing the complete error information as delivered by the ODataService. See fnFailure parameter of sap.ui2.srvc.ODataWrapper#onError for more details. The default error handler is provided by the page builder
Since:
1.7.0

©Copyright (c) 2009-2014 SAP SE, All Rights Reserved
Documentation generated by JsDoc Toolkit 2.4.0 on Tue Mar 14 2017 08:48:14 GMT-0000 (UTC)