--"Ce message et toutes les pièces jointes (ci-après le "message") sont établis à l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le détruire et d'en avertir immédiatement l’expéditeur. Toute utilisation de ce message non conforme à sa destination, toute diffusionou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'intégrité de ce message, nous déclinons toute responsabilité au titre de ce message, dans l’hypothèse où il aurait été modifié."
You received this message because you are subscribed to a topic in the Google Groups "Google Apps Script Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-script-community/AeFPgvizP1o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/cb79636c-4dbe-4cb4-8210-d7529b76547an%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/d969e221-d9c4-4074-abff-35d3d503f7c3n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/1eedbe85-87c4-447b-9095-7b1236c62490n%40googlegroups.com.
You will need to show us the server side code of this. That is where the failure is.
The function: getMenuListFromSheet specifically.
Most likely the cause is some data element in that spreadsheet has been deleted.
Sample code:
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAMHuw2vzSBvV%2BZgLYJTKg_B-fVHqOwEGe3pgCvN_wBGwKmmNKQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/007001d946ea%240ab81cb0%2420285610%24%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAMHuw2vWBHdvxXCTSWuCBJHb_3QnQ%2BbMCFE6nRqgYrb7W%2BB%2BVg%40mail.gmail.com.
Eduoard,
First, please note that there are no Google employees on this discussion group. This is merely a discussion group for developers who work on Google AppsScript. If you need to open a ticket with Google, then use this website to create a ticket or search for a ticket if you think one was opened: https://issuetracker.google.com/
Second, the display you are showing is actually correct. Your server function returnValueifTrue_arrayIfFalse
Is returning an object and the html code is showing it is an object.
return “{'a' : 667}”;
If you want to display the text instead, then either change code in your function to return a string or do a stringfy in the HTML side to convert object to string.
function onSuccess2(numUnread) {
numUnread = JSON.stringfy(numUnread);
var div = document.getElementById('output2');
div.innerHTML = 'Result is ' + numUnread;
}
Hope this helps.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/fbda50c2-eece-420e-bfba-b5be360bb8f9n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAFX%2Bz3VpVPcN_18Uuo%2B4DNh79ChPQyMOhEY%3DNmHHft7cP%3DX9%3DQ%40mail.gmail.com.
The showMenu function looks ok. But the error is basically indicating that it can not find it. So you should make sure this function is defined correctly in the same html file and preferably before where it is being called.
Also, not sure why you have nested google.script.run commands. You should segregate them and then see if error goes away.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAMHuw2ska9osPNrDhz4TnMmu2R0mfV%3DkQL7oGVbzJZ_4_Cb5ZQ%40mail.gmail.com.
One issue that may get many in dealing with webapps is the publish step.
Anytime you do a change to the code on the server side or on the client side, you need to publish a new version of the code or else none of the changes take effect.
I am not sure this is your case or not, as you have not shared any code with us here. But certainly one thing to check closely.
From: 'Jeremiah Martinez' via Google Apps Script Community <google-apps-sc...@googlegroups.com>
Sent: Wednesday, March 8, 2023 7:54 AM
To: Google Apps Script Community <google-apps-sc...@googlegroups.com>
Subject: Re: [Apps-Script] Re: google.script.run.withSuccessHandler is not working
Any update on this? I'm following closely as I am also having the same issue (all of a sudden, like within the last couple days).
In one instance withSuccessHandler correctly receives the parameter from the server-side function. In another instance, withSuccessHandler doesn't receive the parameter at all. Both instances run the same server-side function and both instances use the same client-side function to pass the same parameter to the server-side function. Logging the parameter right before returning back to withSuccessHandler shows me that the parameter is correct on the server side in both instances before being passed back to client-side.
This is totally bizarre.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/5a10ebac-7ec9-4940-870a-bc2066797dedn%40googlegroups.com.
Any update on this? I'm following closely as I am also having the same issue (all of a sudden, like within the last couple days).In one instance withSuccessHandler correctly receives the parameter from the server-side function. In another instance, withSuccessHandler doesn't receive the parameter at all. Both instances run the same server-side function and both instances use the same client-side function to pass the same parameter to the server-side function. Logging the parameter right before returning back to withSuccessHandler shows me that the parameter is correct on the server side in both instances before being passed back to client-side.This is totally bizarre.
On Monday, February 27, 2023 at 10:28:54 PM UTC-7 cbmserv...@gmail.com wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/5a10ebac-7ec9-4940-870a-bc2066797dedn%40googlegroups.com.