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

243
Visualizações
Apps Script: SubFunctions of my library not showing

community.

I have a stand-alone apps-script file called 2022 Journiq that reads, format and set values to/from many sheets. It works fine. But stand-alone files can't work with onEdit(e), so:

  • I created a file bounded to the sheet I want events to be triggered, called Forms;
  • I created a library of 2022 Journiq ('cause many videos and forums told me so) and it worked fine, as well;

The problem is that when I do myLibrary.whateverFunc().whateverSubFunc(), I don't receive the completions, so I have to remember all function names by heart??

  • I've had this problem before, but it was a simple return mistake. This is not the case, because apps-script displays the list of subFunctions in 2022 Journiq, but not in Forms;
  • All my functions are public, which means there are no privFunc_;
  • All subFunctions are not showing;

Here follow my attempt:

const {getMySpreadsheets} = JourniqAutomation // << my library

function doSomething(e){
  const eClass    = getMySpreadsheets() // << when I type '.' no functions appear
}

This is inside 2022 Journiq

function getMySpreadsheets(){
  this.access            = (id) => SpreadsheetApp.openById(id)
  this.getSpreadSheet01  = (  ) => this.access ('*****');
  this.getSpreadsSheet02 = (  ) => this.access ('*****');
  return this
}  

I was about to deploy it as a private add-on to check if it solves the problem, but it seems like a complicated process for me, so the question still remains: why does the Subclasses of my library won't show?

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