cancel
Showing results for 
Search instead for 
Did you mean: 

FioriClient -> Problem with js/index.js

dennis_terhoeven
Explorer
0 Kudos

Hi,

I tried to build a customized Fiori Client.

To do this is used the this Link

My Problem is, that after i've build the App, it won't start.


/*jslint browser:true*/

/*global sap*/

(function () {

    "use strict";

    //add an event listener for the Cordova deviceReady event.

    document.addEventListener('deviceready', function () {

        if (cordova.require("cordova/platform").id === "ios")

        {

            StatusBar.backgroundColorByName("white");

            StatusBar.styleDefault();

            StatusBar.overlaysWebView(false);

        }      

        sap.FioriClient.loadByIndexPage = true;

    });

}());

I found out, that the sap.FioriClient (line 13, js/index.js) is undefined.

Has anybody had the same problem?

I didn't change anything and have followed the structures in the Tutorial.

Thanks for your help!

Regards,

Dennis

Accepted Solutions (0)

Answers (3)

Answers (3)

rajendrengovend
Participant
0 Kudos

Hi Dennis,

My guess is your plugins did not load correctly or maybe it's not there in the project. Go to the Staging folder/www/plugins/, you should see list of plugins then look for kapsel-plugin-fioriclient. Otherwise look at rebuilding and try sudo cordova -d prepare instead. I've built it a number of times and did work without fuss. Check your logs as well in the client.

Regards,

Raj

sreehari_vpillai
Active Contributor
0 Kudos

Thanks Raj-  cordova -d prepare statement , created the plugins the issue is no more. Thanks

SH

rajendrengovend
Participant
0 Kudos

Glad it worked out Sreehari. There's a few tricks to get it going in some places.

sreehari_vpillai
Active Contributor
0 Kudos

Dennis ,

I am facing the same problem . Did you resolve this ?

Sreehari

gill367
Active Contributor
0 Kudos

You can look for more errors. In xcode debug screen are you getting any other error also.

Regards,

Sarbjeet Singh