Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

194
Views
sap.ui.table.Table addRow() example

Can anyone give me a short example of how to add a simple row to a sap.ui.table.Table using JavaScript in Neptune? Let's say I have a table with three columns. My approach was the following:

MyTable.addRow({"COLUMN1":"Text1", "COLUMN2":"Text2", "COLUMN3":"Text3"});

Unfortunately the code doesn't seem to work as my table is staying empty. Also there is no simple example to find on any website. Thank's for any advice.

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

addRow expects a sap.ui.table.Row as argument.

MyTable.addRow(
    new sap.ui.table.Row(sID, oParams)
        .addCell(new sap.m.text("foo")
        .addCell(new sap.m.text("bar")
);
about 4 years ago · Juan Pablo Isaza Report

0

Finally found the answer. For anyone else, who needs it:

let data;
let model = new sap.ui.model.json.JSONModel();

data = [{
    Column1: "Text1",
    Column2: "Text2",
    Column3: "Text3",
        },
    ];
        
model.setData({modelData: data});
MyTable.setModel(model).bindRows("/modelData");

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!