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

128
Vistas
Stream createWritable Stream

I am trying to create a writable stream to stream data fetch from tableau API call. The issue i am facing is that as soon as i tried to save to a particular location, it will refresh the page making it not able to fetch the data from the api call.

i believe await window.showSaveFilePicker() will refresh the page but i may be wrong on this. How can i not make page refresh as soon as i select a location.

below are the reference script that was used to

const getUnderlyingData = async() => {
            const newHandle = await window.showSaveFilePicker();
            const writableStream = await newHandle.createWritable();
            sheet = viz.getWorkbook().getActiveSheet().getWorksheets().get("TP MF Tickets");
            options = {
                maxRows: 0, // Max rows to return. Use 0 to return all rows
                ignoreAliases: false,
                ignoreSelection: false,
                includeAllColumns: false
            };


        sheet.getSummaryDataAsync().then(async function (t) {
            table = t;
            for (let a = 0; a < table.getColumns().length; a++) {
                await writableStream.write(table.getColumns()[a].getFieldName())
                console.log(table.getColumns()[a].getFieldName())
            }
        });
    }
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