google.script.run Web App - withSuccessHandler & withFailureHandler Callbacks

Поделиться
HTML-код
  • Опубликовано: 2 ноя 2024

Комментарии • 27

  • @SaintHanappi
    @SaintHanappi 2 года назад +1

    Weeeeee very nice.
    Can't wait your next Video on that topic.
    Thank you and happy new Year 🥂🍀

  • @medooegy5263
    @medooegy5263 2 года назад +1

    Quite awesome, I was searching about this during the day. Thank you so much.

  • @agrofamily1986
    @agrofamily1986 2 года назад

    I wait with impatience for a new video )))

  • @vikingo_chile2024
    @vikingo_chile2024 2 года назад

    Buen dia Saludos desde Chile, gracias por tu aporte !!!

  • @lordAlpargata
    @lordAlpargata 2 года назад

    Excellent!! You've always helped me!!

  • @ridersinside
    @ridersinside Год назад

    Hi ,
    Thanks for sharing this excellent one.
    I have a quick question, In this example we are getting data from A1 Cell, suppose if we do get from A1, and B1 Cells. In that case Can we use this data with single successhandler statement or do we have to create the two seperate function in gs code, and need multiple google.run.xxx statement.
    Please help me out

  • @carmencastro5512
    @carmencastro5512 2 года назад

    Happy new year teacher, thanks for all the knowledge you share with us...

  • @高吉米-p1b
    @高吉米-p1b 3 месяца назад

    When to share new video???

  • @engrite
    @engrite 2 года назад

    Hi there, i am newbie to Google app script. Quick question, what is the difference between the functionality of doPost and withSucessHandler? I mean they both can pass data from front-end to back-end. is there any nuance between these two?

    • @getitdonetube
      @getitdonetube  2 года назад +2

      withSucessHandler is asynchronous request with java-script while your browser stays on the same page that was rendered by doGet function. Essentially these requests happen on the same server.
      doPost is needed when you need to pass data from a different server. A good example would be a webhook from a different application that requires a URL to send the post request. As a rule of thumb you should use doPost when you have some sort of integration going on with another third party service sending data to your application.

    • @engrite
      @engrite 2 года назад

      @@getitdonetube Got it ! Millions thanks for the explaination

  • @educationvilla
    @educationvilla 2 года назад

    Sir please help me
    I have made google spreadsheet with two sheets in it, one is unprotected and anther is protected as data is entered in that sheet after running a script but when I share it with another user I can't be able to protect it for editor tooo

  • @lpanebr
    @lpanebr 2 года назад

    Excellent.

  • @ThorstenStaerk
    @ThorstenStaerk 2 года назад

    helps a lot, thanks!

  • @thomasprevarin5840
    @thomasprevarin5840 2 года назад

    from a bound file is it possible to invoke a function living in a standalone file?

    • @getitdonetube
      @getitdonetube  2 года назад

      developers.google.com/apps-script/api/how-tos/execute

  • @jeorane
    @jeorane 2 года назад

    "This application was created by another user, not by Google".
    Is there an way to remove this message?

    • @getitdonetube
      @getitdonetube  2 года назад +1

      Paid account or embed as .

    • @KuldeepSingh-pl7rv
      @KuldeepSingh-pl7rv 2 года назад

      this msg shown when someone is not logged in via google account

  • @nicholaspisca4214
    @nicholaspisca4214 2 года назад

    Does google.script.run.withSuccessHandler not work with showModelessDialog? I've tried your script down to the character, but can't get withSuccessHandler() to return any data from the gs function.

    • @getitdonetube
      @getitdonetube  2 года назад

      It should work just fine.
      If you have multiple accounts I suggest logging out of all of them and try again after logging in to the right account.

    • @nicholaspisca4214
      @nicholaspisca4214 2 года назад

      @@getitdonetube I'll give that a try. I tried to connect for hours over and over and over with a modelessdialog. I wondered it it's only doable from a dedicated html file.

    • @nicholaspisca4214
      @nicholaspisca4214 2 года назад

      @@getitdonetube I tried it with just my google account, and I made a single html resource (instead of programming it in gs in line), and I still can't get (iii => {callback("string")}) to return any data. It won't send data back from the gs code.

    • @nicholaspisca4214
      @nicholaspisca4214 2 года назад

      I mean (iii => {callback(iii)})

    • @getitdonetube
      @getitdonetube  2 года назад

      What error do you get in console.logs?