If the application is already unlocked, then nothing will be done.
If the application has passcode disabled, then passcode prompt will not be necessary. In all cases if an error does not occur, the success callback is invoked with the current logon context as the parameter.
<static> unlock( onsuccess, onerror )
Name | Type | Description |
onsuccess | sap.Logon~successCallback | The callback to call if the screen flow succeeds. onsuccess will be called with the current logon context as a single parameter. |
onerror | sap.Logon~errorCallback | The callback to call if the screen flow fails. |
var errorCallback = function(errorInfo){ alert("Error: " + JSON.stringify(errorInfo)); } var successCallback = function(context){ alert("Registered and unlocked. Context: " + JSON.stringify(context)); } sap.Logon.unlock(successCallback,errorCallback);