You need to sign in to do that
Don't have an account?
Prakhar K
Getting error in Android (Hybrid) sample app -Contact Explorer in UserSearch.Html & forcetk.mobilesdk.js ?
I am running Salesforce SDK sample apps available on GIT HUB and after compiling getting error in Android (Hybrid) sample app -Contact Explorer in UserSearch.Html and forcetk.mobilesdk.js ?
BELOW IS THE CODE snippet from UserSearch.html
i get error saying :
Uncaught ReferenceError: Force is not defined at UserSearch.html
Similarly in forcetk.mobilesdk.js
Uncaught ReferenceError: jquery is not defined at forcetk.mobilesdk.js
<script>
// -------------------------------------------------- The Models ---------------------------------------------------- //
// The User Model
User = Force.SObject.extend({
sobjectType: "User",
fieldlist: ["Id", "FirstName", "LastName", "SmallPhotoUrl", "Title", "Email", "MobilePhone","City"]
});+
// The UserCollection Model
app.models.UserCollection = Force.SObjectCollection.extend({
model:app.models.User,
fieldlist: ["Id" , "FirstName" , "LastName", "SmallPhotoUrl", "Title"],
getCriteria: function() {
return this.key;
},
and
below is the code from forcetk.mobilesdk.js
Uncaught ReferenceError: jquery is not defined at forcetk.mobilesdk.js
forcetk.Client.prototype.deleteFileShare = function(sharedId, callback, error) {
return this.del("ContentDocumentLink", sharedId, callback, error);
}
}})
.call(this, jQuery);
kindly Help me out!!!
BELOW IS THE CODE snippet from UserSearch.html
i get error saying :
Uncaught ReferenceError: Force is not defined at UserSearch.html
Similarly in forcetk.mobilesdk.js
Uncaught ReferenceError: jquery is not defined at forcetk.mobilesdk.js
<script>
// -------------------------------------------------- The Models ---------------------------------------------------- //
// The User Model
User = Force.SObject.extend({
sobjectType: "User",
fieldlist: ["Id", "FirstName", "LastName", "SmallPhotoUrl", "Title", "Email", "MobilePhone","City"]
});+
// The UserCollection Model
app.models.UserCollection = Force.SObjectCollection.extend({
model:app.models.User,
fieldlist: ["Id" , "FirstName" , "LastName", "SmallPhotoUrl", "Title"],
getCriteria: function() {
return this.key;
},
and
below is the code from forcetk.mobilesdk.js
Uncaught ReferenceError: jquery is not defined at forcetk.mobilesdk.js
forcetk.Client.prototype.deleteFileShare = function(sharedId, callback, error) {
return this.del("ContentDocumentLink", sharedId, callback, error);
}
}})
.call(this, jQuery);
kindly Help me out!!!