Problems with accessing expanded data in an OData model
I have an OData model which looks like this:
In a formatter function I try to access "ContractToResidualCapitals". This actually is a table with several entries and three columns. Unfortunately I cannot access that node in the model. If I use
var test1 = oModel.getProperty("/ContractSet('0000010000850')");
"test1" get's the correct object.
var test2 = oModel.getProperty("/ContractSet('0000010000850')/ContractCapital");
also leads to the expected result. But if I try
var test3 = oModel.getProperty("/ContractSet('0000010000850')/ContractToResidualCapitals");
"test3" is always "undefined". Furthermore I cannot see the data in the debugger (only "deferred") though they are visible in the UI (via an XML view). The three "ContractTo..." nodes are loaded via an "expand". Maybe that causes the problems.
Does anybody have an idea how to access the data in those three nodes?
Thanks & kind regards,