ABAYTHON

How to dynamically create a sap.m.table in SAP UI5

Required steps: CODE EXAMPLE SAP M TABLE var jsonData = [ {columnOne : “Data row A1”, columnTwo : “Data row 100”, columnThree : “Data row hundred”}, var jsonModel = new sap.ui.model.json.JSONModel(jsonData); var mTable = new sap.m.Table({ ] }).placeAt(“content”); mTable.setModel(jsonModel); mTable.bindAggregation(“items”, { path : “/”, template : new sap.m.ColumnListItem({ cells : [ new sap.m.Text({ text : …

How to dynamically create a sap.m.table in SAP UI5 Read More »

What is a jQuery Object

A collection of Document Object Model(DOM) elements which are generated from a HTML is called as jQuery object. It is represented as $( ). The elements which are selected are stored in this object. It is much similar to an Array. The selected element or the DOM node index in the SAP UI5 App can …

What is a jQuery Object Read More »

numpy.tril() in Python

numpy.tril() returns a copy of the array matrix with an element of the lower part of the triangle with respect to k. It returns a copy of array with lower part of triangle and above the kth diagonal zeroed. Syntax: numpy.tril(m,k=0) Parameters: m- number of rows in the array. k-It is optional. Diagonal below which …

numpy.tril() in Python Read More »

numpy.triu() in Python

numpy.triu() returns a copy of the array matrix with an element of the upper part of the triangle with respect to k. It returns a copy of array with upper part of triangle and below the kth diagonal zeroed. Syntax: numpy.triu(m,k=0) Parameters: m- number of rows in the array. k-It is optional. Diagonal above which …

numpy.triu() in Python Read More »