Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3316

Re: Binding problem/conflicts with equal names in JSONModel

$
0
0

I thought about "MyModel>title" is like a "temporary" variable in which the loop sets the data of "MyModel>/subData/0/title" and "MyModel>/subData/1/title".

But that's not correct. Maybe that's the thinking when coming from ABAP

 

But after reading a bit more (thanks for the document!!) and thinking about it, it makes more sense if you ignore the (a bit confusing) "MyModel>" for a moment. Then its clear that the binding loops over the "/subData" array and sets the current element as binding. And then what's left are the attributes of the current object like "title" (without the "/") because "/" is for absolute binding.

 

Following lines of the document made this clear:

 

Unbenannt.jpg

So now it's clear for me!

 

Thank you and kind regards,

Dominik


Viewing all articles
Browse latest Browse all 3316

Trending Articles