Skip to content

Instantly share code, notes, and snippets.

@rnng
Created Jan 14, 2016
Embed
What would you like to do?
Angepasste index.html für den Abruf von Daten mit dem Salesforce Mobile SDK
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World App</title>
<script src="bower_components/underscore/underscore-min.js"></script>
<script src="bower_components/backbone/backbone-min.js"></script>
<!-- Local Testing Libs-->
<script src="bower_components/SalesforceMobileSDK-Shared/test/MockCordova.js"></script>
<script src="bower_components/SalesforceMobileSDK-Shared/test/MockSmartStore.js"></script>
<!-- Salesforce SDK Libs-->
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/SalesforceMobileSDK-Shared/libs/cordova.force.js"></script>
<script src="bower_components/SalesforceMobileSDK-Shared/libs/forcetk.ui.js"></script>
<script src="bower_components/SalesforceMobileSDK-Shared/libs/forcetk.mobilesdk.js"></script>
<script src="bower_components/SalesforceMobileSDK-Shared/libs/smartsync.js"></script>
<script src="js/auth.js"></script>
</head>
<body>
<script type="text/javascript">
document.addEventListener("loggedIn", function(){
var soql = "SELECT Id, Name FROM Account";
Force.forcetkClient.query(soql, function(success){
console.log(success);
}, function(error){
console.log(error);
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment