'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
returnmistake. This is not the case, because apps-script displays the list of subFunctions in2022 Journiq, but not inForms; - 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?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
