Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Updates the item count within the line item table's header
- * @param {object} oEvent an event containing the total number of items in the list
- * @private
- */
- onListUpdateFinished : function (oEvent) {
- var sTitle,
- iTotalItems = oEvent.getParameter("total"),
- oViewModel = this.getModel("detailView");
- // only update the counter if the length is final
- if (this.byId("lineItemsList").getBinding("items").isLengthFinal()) {
- if (iTotalItems) {
- sTitle = this.getResourceBundle().getText("detailLineItemTableHeadingCount", [iTotalItems]);
- } else {
- //Display 'Line Items' instead of 'Line items (0)'
- sTitle = this.getResourceBundle().getText("detailLineItemTableHeading");
- }
- oViewModel.setProperty("/lineItemListTitle", sTitle);
- }
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement