Skip to Content
0

Similar to Growing Property in List, How to apply similar functionality in SAP.UI.table.Table

Jun 21, 2017 at 05:54 PM

59

avatar image

Hi All,

How can we achieve functionality like growing in Sap.ui.table.Table when I scroll down it should fetch next 10 records similar to grow in List.

Kindly assist

Best Regards,

Viswanath

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Sharath M G Jun 22, 2017 at 02:11 AM
0

You can retrive 20% of the rows at first load.

On Scroll event, trigger the call to retrieve the rest of the rows.

The Table API, does not have option of growing similar to earlier one.

Regards,

Sharath

Show 5 Share
10 |10000 characters needed characters left characters exceeded

Hi Sharath,

Thanks for your response.

Could you please help me how to trigger scroll event . Kindly share me any sample code if you have.

Best Regards,

Viswanath

0

Attach the scroll function to your table variable.

this.getView().byId("table id").scroll(function() { 
                 console.log("Table is scrolled")
              <Insert your logic here get more data and update the table model>   });

Regards,

Sharath

0

Hi Sharath,

I tried both below codes

oTable.attachScroll(function(){

alert("table scrolling")

});

oTable.Scroll(function(){

alert(" table scrolling")

});

It was throwing an error "oTable.attachScroll is not a function"

Best Regards,

Viswanath

0

use scroll, S in smaller case "s". scroll should work.

Let me know, if it still dosen't work.

Regards,

Sharath

0

I tried with small s, but still it's not triggering event on Scroll.

Best Regards,

Viswanath

0