Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

129
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda