Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SAP Web IDE initial load function

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

Former Member
Not what you were looking for? View more on this topic or Ask a question