Skip to Content

Passing multiple keys in getProperty method of ODataModel


Been researching a lot but could not find anywhere.. How do I pass more than one key in the getProperty method of my ODataModel object?

My codes below result to undefined



I thought maybe because the Entity has 2 keys per its metadata.

I'd like to get the data using 2 properties as the selection criteria.



order-details.png (27.9 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Oct 10, 2018 at 10:09 AM

    I found the issue.. I had to read the EntitySet first using this code below.
                           method: "GET",
    	               success: function(oData2, oResponse) {
    			//Create JSON Model
    		       error: function(oError) { console.log("Error!"); }

    Then this code below started to work.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.