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

340
Vistas
Representación de JavaScript [objeto Objeto] en la página en lugar de datos

Hola a todos, estoy usando el siguiente código para representar un documento de Excel en un AG Grid

 function populateGrid(workbook) { // our data is in the first sheet var firstSheetName = workbook.SheetNames[0]; var worksheet = workbook.Sheets[firstSheetName]; // we expect the following columns to be present var columns = { A: 'BQ Id', B: 'Ref:-', C: '', D: 'Description', E: 'Qty', F: 'Unit', G: 'Rate', H: 'Amount', }; var rowData = []; // start at the 2nd row - the first row are the headers var rowIndex = 2; // iterate over the worksheet pulling out the columns we're expecting while (worksheet['A' + rowIndex]) { var row = {}; Object.keys(columns).forEach(function (column) { row[columns[column]] = worksheet[column + rowIndex].w; }); rowData.push(row); rowIndex++; } // finally, set the imported rowData into the grid gridOptions.api.setRowData(rowData); }

Esto está tomado de los documentos de AG Grid https://www.ag-grid.com/javascript-data-grid/excel-import/ sin embargo, cuando ejecuto este código obtengo lo siguiente: Salida aquí ¿Cómo puedo obtener el código para renderizar los datos reales?

about 4 years ago · Juan Pablo Isaza
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