Last active
February 6, 2017 14:57
-
-
Save cschuff/275f4b66c155e71ab31a6df404dcfc7a to your computer and use it in GitHub Desktop.
ODataModel Obstacles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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