Skip to Content

OData model getProperty not working

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 27, 2016 at 03:52 AM

    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.

    Add comment
    10|10000 characters needed 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?