Hello colleagues,
I could successfully create an mobile application with the latest AppBuilder (version 1.0.1252) that calls an NetWeaver Gateway service via the SMP Server 3.0 SP04 PL01. I was also able to create a Cordova project (with the Kapsel logon plugin) from the AppBuild project. However, when I deploy the Cordova application on the Android Emulator using Eclipse (with the SMP SDK SP05 PL01) I receive the following error in LogCat:
Uncaught TypeError: Cannot read property 'IabUi' of undefined at file:///android_asset/www/main.html:52
I was able to locate the error down to the following code snippet:
alert("Before Logon screen.");
var logonView = sap.logon.IabUi;
alert("After Logon screen.");
sap.Logon.init(logonSuccessCallback, errorCallback, appId, context, logonView);
alert("After Init method.");
The first alert is displayed, but when I try to access the sap.logon.lapUi object, it seems to run into problems. According to the "cordova -d plugin list" command, the Logon plugin was already added to the Cordova application.
Can it be that SAPUI5 was not properly loaded? Do you have any ideas what this could be?
Kind regards,
Peter.
Message was edited by: jitendra kansal