2
애드온으로 Google 스프레드 시트 용 맞춤 기능을 만들려고합니다.Google 스프레드 시트 애드온의 맞춤 기능
모든 것이 내 스프레드 시트에서 잘 작동하며 웹 크롬 저장소 을 통해 Google에서 제공하는 링크를 통해 다운로드 할 수 있습니다.
내가 가지고있는 유일한 문제는 Google 스프레드 시트 부가 기능 스토어를 통해 맞춤 함수를 작동시킬 수 없다는 것입니다.
manifest.json
파일에 추가 정보를 넣어야할지 모르거나 다른 작업을해야합니다.
내 앱이 등록되었으며 외부 서비스에 연결되어 있지 않으며 일반적인 자바 스크립트 기능을 사용하여 문자열 개체를 분할합니다.
function onOpen(e) {
SpreadsheetApp.getUi().createAddonMenu()
.addItem('Start', 'use')
.addToUi();
}
/**
* Enables the add-on on for the current spreadsheet (simply by running) and
* shows a popup informing the user of the new functions that are available.
*/
function use() {
var title = "Example";
var message = "The Function GETID is now available in this spreadsheet";
var ui = SpreadsheetApp.getUi();
ui.alert(title, message, ui.ButtonSet.OK);
}
function onInstall(e) {
onOpen(e);
}
/**
* example
* @param {string} input the example URL.
* @return The example URL.
* @customfunction
*/
function GETID(URL) {
return 'example '+URL;
}