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

199
Views
ejemplo de sap.ui.table.Table addRow()

¿Alguien puede darme un breve ejemplo de cómo agregar una fila simple a sap.ui.table.Table usando JavaScript en Neptune? Digamos que tengo una tabla con tres columnas. Mi enfoque fue el siguiente:

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

Desafortunadamente, el código no parece funcionar ya que mi mesa permanece vacía. Además, no hay un ejemplo simple para encontrar en cualquier sitio web. Gracias por cualquier consejo.

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

0

addRow espera un sap.ui.table.Row como argumento.

 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

Finalmente encontré la respuesta. Para cualquier otra persona que lo necesite:

 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!