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

Strange behaviour binding List items in onBeforeRendering method in console

$
0
0

I am binding items to a sap.m.List object inside an onBeforeRendering method.

 

0001.png

 

I then call three console.log calls, as above:

  • one for my List object;
  • one on the property mAggregations.items;
  • one on the method getItems()

 

The first console log shows the elements that I am looking for in mAggregations.items:

0002.png

 

The second and third console logs show however empty arrays:

 

0003.png

 

 

Can anyone explain what is going on here? I am trying to do some enrichment on the StandardListItems that are part of the List after the binding happens. (Attaching onPress methods, etc.) I am not clear why I can't seem to find them in the above example.


Viewing all articles
Browse latest Browse all 3585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>