Skip to Content
0

OData model getProperty not working

Oct 26, 2016 at 02:57 PM

44

avatar image

Can someone help me with getting a property from an ODatamodel? I defined get_entity in the SAP GATEWAY-client and I can retrieve the value correctly.

Any help is much appreciated.

Greetings Matthijs

undefined.png (8.8 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Krishna Kishor Kammaje
Oct 27, 2016 at 03:52 AM
0

Check if the data is already loaded in the OData model. Only then getProperty would work.

If not loaded already, do a Read first (which will call get_entity of dpc_ext). Then do getProperty.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Can you tell me how to instiantize a model? In the sources tab in chrome, the model says it has 0 arrays. The model has a non-optional import parameter ticket id. So I think thats why the model won't load with ("/TextLogInfoSet"). Any ideas?

0