Show TOC

lock( onsuccess, onerror ) methodLocate this document in the navigation structure

Locks the Logon plugin's secure data vault.

Syntax

<static> lock( onsuccess, onerror )

Parameters
Name Type Description
<onsuccess> sap.Logon~successCallbackNoParameters The function to invoke upon success.
<onerror> sap.Logon~errorCallback The function to invoke in case of error.
Example
var errorCallback = function(errorInfo){
    alert("Error: " + JSON.stringify(errorInfo));
}
var successCallback = function(){
    alert("Locked!");
}
sap.Logon.lock(successCallback,errorCallback);