cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Web IDE initial load function

Former Member
0 Kudos

Hello experts,

I am creating a list for displaying 16 items in a view. This is my code in the controller file-

sap.ui.core.mvc.Controller.extend("ABC.view.Master", {

  onInit : function() {

  this.oInitialLoadFinishedDeferred = jQuery.Deferred();

  var oEventBus = this.getEventBus();

  oEventBus.subscribe("Detail", "TabChanged", this.onDetailTabChanged, this);

  var oList = this.getView().byId("list");

     oList.attachEvent("updateFinished", function() {

  this.oInitialLoadFinishedDeferred.resolve();

  oEventBus.publish("Master", "InitialLoadFinished");

  }, this);

My output shows just the 16th record, 16 times in the list.

Is my code wrong?

Any help with changes in my code would be gladly appreciated.

ThankYou

-NK

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

post code with data loading/binding (xml, controller)

Former Member
0 Kudos

Hi Maksim

I have attached my js and xml files below. Just save the 'Master.controller.txt' file as 'Master.controller.js'.

Thanks,

-NK