Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

192
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda