Skip to Content
Dec 17, 2018 at 07:42 PM

How to put Objects from Table into an Array

70 Views Last edit May 21, 2020 at 06:26 PM 2 rev

Hi Guys,

We have objects/Items in our main view (screenshot nr.1). How Can I put these into an array?

var remainingItems = [];

remainingItems = remainingItems.this.byId("table").getItems();

if (remainingItems.length > 0){

var odialog1 = new sap.m.Dialog({ title: 'Achtung', type: 'Message', content: [ new sap.m.Label({ text: 'Noch X Tickets sind nicht erfasst! Fehler: XXX' }) ],

this is just a part of the code

It doesnt work!

I want to count, if there are objects in the view, then it should appear a Popup.

I hope you can help me.


screenshot-11.png (50.4 kB)