Starts the settings exchange.
<static> start( connectionData, successCallback, errorCallback )
Name | Type | Description |
connectionData | String | This example below shows the structure of the connection data. |
successCallback | function | Function to invoke if the exchange is successful. |
errorCallback | function | Function to invoke if the exchange failed. |
connectionData = { "keyMAFLogonOperationContextConnectionData": { "keyMAFLogonConnectionDataApplicationSettings": { "DeviceType":device.platform, "DeviceModel":device.model, "ApplicationConnectionId":"yourappconnectionid" }, "keyMAFLogonConnectionDataBaseURL":"servername:port" }, "keyMAFLogonOperationContextApplicationId":"yourapplicationid", "keyMAFLogonOperationContextBackendUserName":"yourusername", "keyMAFLogonOperationContextBackendPassword":"password", "keyMAFLogonOperationContextSecurityConfig":"securityConfigName", "keySSLEnabled":keySSLEnabled }; sap.Settings.start(connectionData, function(mesg) { sap.Logger.debug("Setting Exchange is successful "+mesg,"SMP_SETTINGS_JS",function(m){},function(m){}); }, function(mesg){ sap.Logger.debug("Setting Exchange failed" + mesg,"SMP_SETTINGS_JS",function(m){},function(m){}); });