Answer the question
In order to leave comments, you need to log in
How to run a function in a gs file?
Hello.
We need to run the function in the gs file.
Tried like this
let info = [col_value,profit_ratio,manager_ratio, ad_ratio];
alert(info);
google.script.run.withSuccessHandler().receiveData(info);
Uncaught at receiveData (Code:23)
qe @ 3872875002-mae_html_user_bin_i18n_mae_html_user__ru.js:54
sf @ 3872875002-mae_html_user_bin_i18n_mae_html_user__ru.js:68
(anonymous) @ 3872875002-mae_html_user_bin_i18n_mae_html_user__ru.js:11
eg.K @ 3872875002-mae_html_user_bin_i18n_mae_html_user__ru.js:95
$d @ 3872875002-mae_html_user_bin_i18n_mae_html_user__ru.js:47
Wd @ 3872875002-mae_html_user_bin_i18n_mae_html_user__ru.js:48
Ud.b @ 3872875002-mae_html_user_bin_i18n_mae_html_user__ru.js:44
function receiveData(data){
alert("Привет");
const sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("data");
sheet.appendRow(data);
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question