on 2015 Mar 22 10:01 PM
HI
I want to use jQuery sap require so I use declare like following
jQuery.sap.declare("sap.a.b.c");
define(function() {
var a = function testFn(){
return "test";
};
now I use in different file jQuery.sap.require("sap.a.b.c");
but in the debugger I see just sap.a.b and I cannot use sap.a.b.c.testFn()
what can be the problem?Example will be very helpful
jQuery.sap.declare("sap.a.b.c");
sap.a.b.c = {
testFn : function testFn()
{
return "test";
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stephane,
do code like this,
jQuery.sap.declare("sap.a.b.c");
sap.a.b.c = {
testFn: function(){
return "test";
},
};
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stephane,
I think you need to check the file path where you are calling sap.a.b.c.
If there are different file path then you need to load that path in index.html using sap.ui.localResources
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.