Library GAS SCRIPT [Energy]¶
Function RefreshBsurvey [Energy > Library.gs]¶
Function calls refreshBsurvey function [Survey Component]
1 2 3 | function refreshBsurvey() {
LM.refreshBsurvey(key);
}
|
Function clearTaskHistory [Energy > Library.gs]¶
Function calls clearTaskHistory function [GENERAL Component]
1 2 3 | function clearTaskHistory() {
LM.clearTaskHistory();
}
|
Energy > GENERAL Component > CLEARHISTORY function()
Function CLEARLOGHISTORY [Energy > Library.gs]¶
Function calls CLEARLOGHISTORY function [GENERAL Component]
1 2 3 | function clearLogHistory() {
LM.clearLogHistory();
}
|
Function updateEmailAddress [Energy > Library.gs]¶
Function calls updateEmailAddress function [FOLLOWUP Component]
1 2 3 | function updateEmailAddress() {
Keys.setProperties(LM.updateEmailAddress(key));
}
|
Function getListEmail [Energy > Library.gs]¶
Function calls getListEmail function [FOLLOWUP Component]
1 2 3 | function getListEmail() {
Keys.setProperties(LM.getListEmail(key));
}
|
Function sendReminder [Energy > Library.gs]¶
Function calls sendReminder function [FOLLOWUP Component]
1 2 3 | function sendReminder() {
Keys.setProperties(LM.sendReminder(key));
}
|
Function deleteDataDupDetectorSheet [Energy > Library.gs]¶
Function calls deleteDataDupDetectorSheet function [KOBOUP Component]
1 2 3 | function deleteDataDupDetectorSheet() {
LM.deleteDataDupDetectorSheet(key);
}
|
Function findDuplication [Energy > Library.gs]¶
Function calls findDuplication function [KOBOUP Component]
1 2 3 | function findDuplication() {
LM.findDuplication();
}
|
Function queryDataDupSheet [Energy > Library.gs]¶
Function calls queryDataDupSheet function [KOBOUP Component]
1 2 3 | function queryDataDupSheet() {
LM.queryDataDupSheet(key);
}
|
Function clearDupDetectorSheet [Energy > Library.gs]¶
Function calls clearDupDetectorSheet function [KOBOUP Component]
1 2 3 | function clearDupDetectorSheet() {
LM.clearDupDetectorSheet();
}
|
Function deleteDataKoboupSheet [Energy > Library.gs]¶
Function calls deleteDataKoboupSheet function [KOBOUP Component]
1 2 3 | function deleteDataKoboupSheet() {
LM.deleteDataKoboupSheet(key);
}
|
Function createXML [Energy > Library.gs]¶
Function calls createXML function [KOBOUP Component]
1 2 3 | function createXML() {
LM.createXML(key);
}
|
Function queryDataKoboupSheet [Energy > Library.gs]¶
Function calls queryDataKoboupSheet function [KOBOUP Component]
1 2 3 | function queryDataKoboupSheet() {
LM.queryDataKoboupSheet(key);
}
|
Function clearKoboupSheet [Energy > Library.gs]¶
Function calls clearKoboupSheet function [KOBOUP Component]
1 2 3 | }
function clearKoboSheet() {
|
Energy > KOBOUP Component > clearKoboupSheet function()
Function DELETEALLKEY [Energy > Library.gs]¶
Function deletes all the properties
1 2 3 | function DELETEALLKEY() {
Keys.deleteAllProperties();
}
|
Function setApiSettings [Energy > Library.gs]¶
Function calls setApiSettings function [PARAMETORS Component]
1 2 3 | function setApiSettings() {
Keys.setProperties(LM.setApiSettings(key));
}
|
Function displayKeyListing [Energy > Library.gs]¶
Function calls displayKeyListing function [PARAMETORS Component]
1 2 3 4 | function displayKeyListing() {
var k = Keys.getKeys();
Keys.setProperties(LM.displayKeyListing(key, k));
}
|
Function setKey [Energy > Library.gs]¶
Function calls setKey function [PARAMETORS Component]
1 2 3 | function setKey() {
Keys.setProperties(LM.setKey(key));
}
|
Function deleteKey [Energy > Library.gs]¶
Function calls deleteKey function [PARAMETORS Component]
1 2 3 4 5 6 7 8 | function deleteKey() {
var data = LM.deleteKey();
for (i = 0; i < data.length; i++) {
if (data[i][0] != "") {
Keys.deleteProperty([data[i][0]]);
}
}
}
|
Function displayEmailQuota [Energy > Library.gs]¶
Function calls displayEmailQuota function [PARAMETORS Component]
1 2 3 | function displayEmailQuota() {
LM.displayEmailQuota();
}
|
Function DELETETRIGGER [Energy > Library.gs]¶
Function calls DELETETRIGGER function [TRIGGERS Component]
1 2 3 | function DELETETRIGGER() {
Keys.setProperties(LM.DELETETRIGGER(key));
}
|
DELETETRIGGER function()
Function changeEmailConfig [Energy > Library.gs]¶
Function calls changeEmailConfig function [GENERAL Component]
1 2 3 | function changeEmailConfig() {
Keys.setProperties(LM.changeEmailConfig(key));
}
|
Function triggerAction4Hours [Energy > Library.gs]¶
Function calls triggerAction4Hours function [TRIGGERS Component]
1 2 3 4 5 6 7 8 9 10 | function triggerAction4Hours() {
var verify = LM.getData("TASKS");
if (verify[verify.length - 1][0] == "") {
Browser.msgBox("To refresh, currently pending tasks must be completed first. Try again later.");
return;
}
Keys.setProperties(LM.synchronizeAllForms(key));
Keys.setProperties(LM.updateOnCustomisation(null, key));
}
|
Function triggerExecuteTask5Minutes [Energy > Library.gs]¶
Function calls triggerExecuteTask5Minutes function [TRIGGERS Component]
1 2 3 4 5 6 7 8 9 10 | function triggerExecuteTask5Minutes() {
var sheet = ss.getSheetByName("CONTROL");
var tasknumber = sheet.getRange(5, 1).getValue();
if (tasknumber > 0) {
var keyinputs2 = LM.excuteAllTask(key);
if (keyinputs2 != "NA") {
Keys.setProperties(keyinputs2);
}
}
}
|
Function triggerActionDaily [Energy > Library.gs]¶
Function calls triggerActionDaily function [TRIGGERS Component]
1 2 3 4 | function triggerActionDaily() {
Keys.setProperties(LM.updateDataHarmonizeDatabridge(key));
Keys.setProperties(LM.createPdfTemplateAll(key));
}
|
Function scheduleReminder [Energy > Library.gs]¶
Function calls scheduleReminder function [GENERAL Component]
1 2 3 | function scheduleReminder() {
LM.scheduleTask("REMINDER");
}
|
scheduleReminder function()
Function Resetemail [Energy > Library.gs]¶
Function calls Resetemail function [TRIGGERS Component]
1 2 3 4 5 6 | function showSidebar() {
var html = HtmlService.createHtmlOutputFromFile('PAGE')
.setTitle('MANUAL TASK MENU');
SpreadsheetApp.getUi() // Or DocumentApp or FormApp.
.showSidebar(html);
}
|
Function showSidebar [Energy > Library.gs]¶
Function opens the sidebar
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | }
function scheduleReminder() {
LM.scheduleTask("REMINDER");
}
function Resetemail() {
LM.Resetemail();
}
function showSidebar() {
var html = HtmlService.createHtmlOutputFromFile('PAGE')
.setTitle('MANUAL TASK MENU');
SpreadsheetApp.getUi() // Or DocumentApp or FormApp.
.showSidebar(html);
}
|
Function updateScriptChild [Energy > Library.gs]¶
Function updats the background script
1 2 3 4 5 6 7 8 | function updateScriptChild() {
var r = Browser.msgBox("This will make the background script up to date. Please make sure that this spreadsheet is shared for editing while taking this action. You want to proceed?", Browser.Buttons.YES_NO);
if (r == "no") { return; }
var id = ScriptApp.getScriptId();
Logger.log(id); return;
var result = LM.updateScriptChild(id);
if (result == 1) { Browser.msgBox("Update completed. Please reload the spreadsheet."); } else { Browser.msgBox("It failed the update. Please check the access permission and contact the administrator."); }
}
|