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

Sap.m.table growing property and change model questions

$
0
0

I have an application with an editable sap.m.table where the

user can edit existing datasets or add new ones.

The data is provided via WS as in json format and consists of 800+ datasets.

After the the WS fetches the data from the server the rendering of the entire table

is terrible slow. Therefore was the idea that i change the table to grow on scroll

 

 

var otable = new sap.m.Table(

  {

 

 

    id : Type,

    growing : true,

    growingThreshold :  40, 

    growingScrollToLoad : true,

    growingTriggerText : "",

  

  mode : "SingleSelectMaster",

  columns : [

 

 

The table is displayed in a scrollcontainer on a sap.m.page.

If i do that i get only 10 datasets displayed and a More button telling me

10 /800.

If i press it nothing changes it doesnt provide more data on the display.

ScrollToLoad doesnt function either.

So is there anything to do besides declaring the scroll values in a sap.m.table so that the

growing property works?

 

 

Next problem, it tried to enter an new dataset into the table while declaring the growing

property.

Doing so leads to the following error

 

 

GrowingEnablement.js:6 Uncaught TypeError: Cannot read property 'setBindingContext' of undefined(…)

 

 

while executing

 

 

sap.ui.getCore().getModel("Installed_Solutions").setProperty("/GetLvmSolutionInstallationMapping/", newEntry)

 

 

This codes works fine without the growing property.

So do i cant change the model of a table with growing property afterwards?

 

 

The use of set Property is very slow in this case. Is there any other way to change the property

in a model faster?

Is there anything one can do to execute "setProperty" faster?

 

 

Regards.

 

 

DirK


Viewing all articles
Browse latest Browse all 2806

Trending Articles



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