on 04-23-2020 1:04 PM
Hi
I'm trying to create SAP SuceesFactors application by using webIDE.
I set odata model in my view, the Entity name is "FormCompetency", but no data returned when I called oModel.read()
method.
I could read other entities such as "User", "FormHeader" and so on, so destination settings in SAP CP is appropriate.
var formcompetency = this.getOwnerComponent().getModel("FormCompetency");
var tmp;
var Filter3 = new sap.ui.model.Filter({
filters: [
new sap.ui.model.Filter("formContentId", "EQ", 11111), //primarykey 1
new sap.ui.model.Filter("formDataId", "EQ", 22222), //primarykey 2
new sap.ui.model.Filter("itemId", "EQ", 33333), //primarykey 3
new sap.ui.model.Filter("sectionIndex", "EQ", 1) //primarykey 4
],
and: true
});
//select single record and store tmp
formcompetency.read("/FormCompetency", {
filters: [Filter3],
success: function (oData) {
tmp = oData;
},
error: function (oData) {
}
});
I got error message like below image despite I set all primary keys in filters[].
Is query in my controller.js wrong?
Or Should I need to do some settings in my SF environment?
Please give me advise.
Regards,
*Apr 27 Updated*
I've tried '/FormCompetency(formContentId=11111,formDataId=22222,itemId=33333,sectionIndex=1)' , but error wasn't resolved.
I added network trace evidence below.
Hello,
I see there is a difference between in your code "sectionIndex" and in error "sectIndex". Correct it and confirm if it works?
Best regards,
Anna.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
9 | |
9 | |
8 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.