Skip to content

Instantly share code, notes, and snippets.

@cschuff
Last active February 6, 2017 14:57
Show Gist options
  • Save cschuff/275f4b66c155e71ab31a6df404dcfc7a to your computer and use it in GitHub Desktop.
Save cschuff/275f4b66c155e71ab31a6df404dcfc7a to your computer and use it in GitHub Desktop.
ODataModel Obstacles
// always use createKey since for getData/getProperty
// "/EntitySet(Prop1='VAL-1',Prop2='VAL-2')" !== "/EntitySet(Prop2='VAL-2',Prop1='VAL-1')"
// Be aware that createKey needs ODataModel metadata
oModel.metadataLoaded().then(function () {
var sKey = oModel.createKey("/EntitySet", {
Prop1: "VAL-1",
Prop2: "VAL-2"
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment