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

402
Visualizações
Google Apps Script, print and don't render my css file?

I've un other problem, with my google apps scpript, now html, css, and js files are ok. But when I call a function

.gs
function func(){
  var message="";
  try {
   
    );
  }
  catch (error) {
     message="Errors "+ 
      "\r\nMessage: " + error.message
      + "\r\nFile: " + error.fileName
      + "\r\nLine: " + error.lineNumber;
  }
  finally {
    if(message=="") {
      message="Completed Successfully";
    }
    Logger.log(message);
  }
}

with

.js
function onFailure(error){
    console.log("onFailure: " + error);
}

function onSuccess(resp) {
    console.log("onSuccess: "+ resp);
}
google.script.run.withFailureHandler(onFailure).withSuccessHandler(onSuccess).func();

the console show this logs, and not my

Net state changed from IDLE to BUSY
Net state changed from BUSY to IDLE
null

I just try to follow much video but I can't see the error. I don't understand where I'm wrong, please help me :’(.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Posting this for documentation purposes.

As mentioned by Tanaike in comments, you need to add return message to your function if you want to actually return the value (ref: return).

Regarding Net state changed from IDLE to BUSY, see this question.

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