Apps Script Web app Data transfer from ClientSide to ServerSide WebApp Sheet data and more

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 มิ.ย. 2024
  • Learn more about Google Apps Script
    Complete course for beginners to Professional 26.5hrs of HD video
    www.udemy.com/course/course-a...
    Google Apps Script Complete Course New IDE 100+ Examples
    Google Apps Script New Version Create custom functions within G Suite Docs Sheets GMail Drive Calendar and more
    Apps Script Web app Data transfer from ClientSide to ServerSide WebApp Sheet data and more
    ClientSide to ServerSide WebApp
    Google web apps can run client side code that can easily be used to connect to server side Apps Script functionality. To execute server-side functions from client-side code, use google.script.run. google.script.run is an asynchronous client-side JavaScript API available in web app HTML-service pages that can call server-side Apps Script functions.
    In this example we will demonstrate how to send data objects from the Apps Script server side into the client side and use the data object within JavaScript. Also how we can send data from the client side input field values to the server side script to then be used to update and append content into a selected spreadsheet.
    Loaded with coding examples and source code to create 100s of apps script coding projects. Course content web development and web design courses with coding examples and source code for the lesson content. Source Code is available within my Github account. Lessons posted are designed to help students learn more about a specific topic related to modern web development and applying code.
    Laurence Svekis is a professional top selling course author having instructed over 1 Million students both online and in person. Laurence Svekis is a Google Developer Expert specializing in Google Workspace automation using Google Apps Script Code.
    Check out my Website for more details at basescripts.com/
    Subscribe / @laurencesvekiscourses
    Tags and Keywords
    #DiscountPrice #GoogleAppsScript #CustomFunction #SpreadsheetFormula #DollarFormat #USCurrency #ColumnHeaders #OriginalCost #DiscountValue #NewTotal #Formatting #CalculatePrice #CalculateDiscount #CalculateTotal #PriceReduction #PercentageDiscount #ApplyDiscount #SpreadsheetCalculations #AutomateCalculations #IncreaseEfficiency #ProductPricing #SalesDiscount #SalesPrices #OnlineSelling #Ecommerce #SmallBusiness #Entrepreneur #Finance #Accounting #ProductManagement #CostManagement #PricingStrategy #Marketing #BusinessTools #GoogleDrive #CloudComputing #OnlineProductivity #Collaboration #DocumentManagement #OfficeTools #CustomizableFunctions #EfficientCalculations #TimeSaving #Budgeting #CostReduction #SalesAnalysis #DataAnalysis #FinancialPlanning #BusinessOperations #CostBenefitAnalysis #SalesReport #SalesMetrics #Revenue #Profit #ReturnOnInvestment #ROI #SmallBusinessTools #OnlineBusiness #VirtualBusiness #DigitalBusiness #OnlineSales #WebStore #DiscountedPrices #BulkDiscount #Promotion #SaleEvent #LimitedTimeOffer #ClearanceSale #FlashSale #DiscountCodes #CouponCodes #SocialMediaPromotions #MarketingCampaigns #ProductPromotions

ความคิดเห็น • 17

  • @developmentTeam-hs4zi
    @developmentTeam-hs4zi ปีที่แล้ว +1

    waooo... i really searching for this.. thank u for this video

  • @jazautomobile2459
    @jazautomobile2459 2 ปีที่แล้ว +1

    I have a question: I try to write a Google App script web app that takes data from a spreadsheet. I want to set the worksheet active depending on the user select in a dropdown list with all the worksheet names. I does not succeed, can you help or advice. By the way I bought all your udemy courses and kindle books. Awesome!!!

    • @LaurenceSvekisCourses
      @LaurenceSvekisCourses  2 ปีที่แล้ว +1

      Yes you can use the script to set the active range. By default its the selection in the sheets, but with code you can change using the
      Sets the specified range as the active range in the active sheet, with the top left cell in the range as the current cell.
      var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
      var range = sheet.getRange('A1:D4');
      sheet.setActiveRange(range);
      var selection = sheet.getSelection();
      // Current cell: A1
      var currentCell = selection.getCurrentCell();
      // Active Range: A1:D4
      var activeRange = selection.getActiveRange();

  • @mussatawerghi9269
    @mussatawerghi9269 ปีที่แล้ว +1

    Hi .. I wander why the result on spread sheet is twice .. it is doubling every time I press the button !! thanks a lot for the time you giving .

    • @LaurenceSvekisCourses
      @LaurenceSvekisCourses  11 หลายเดือนก่อน

      It must be running the function twice for some reason

  • @stewartdavis5172
    @stewartdavis5172 ปีที่แล้ว +1

    Excellent resource. May I make a humble request? That you stop using the word data over and over for every variable. It is so needlessly confusing when you could easily go dataA, dataB etc. For example, at time 6:45 you have 4 references to the word data. I am constantly having to scroll back and try to figure out what you area talking about and muttering does it really need to be this hard... Thanks for all your work.

    • @LaurenceSvekisCourses
      @LaurenceSvekisCourses  ปีที่แล้ว

      Thank you for the suggestion, I will try and do what I can to improve.

  • @mayursawant7992
    @mayursawant7992 2 ปีที่แล้ว +2

    How to make contact form by redirect after submit and dadabase google sheet but form inserted google site how to create sir

    • @LaurenceSvekisCourses
      @LaurenceSvekisCourses  2 ปีที่แล้ว +1

      You can do that with a trigger when the form is submitted invoke a function with apps script

    • @mayursawant7992
      @mayursawant7992 2 ปีที่แล้ว +1

      But how sir please sir create to step by step video sir ....please 🙏

  • @ningombamangoutonmemorialt7395
    @ningombamangoutonmemorialt7395 2 ปีที่แล้ว +1

    How to transfer values from multiselect to server-side for storing to sheet?

    • @LaurenceSvekisCourses
      @LaurenceSvekisCourses  2 ปีที่แล้ว +1

      You can setup an api with the server data and then use fetchURL within google to get data and spreadsheetapp to insert into a spreadsheet

    • @sanjibmeitei
      @sanjibmeitei 2 ปีที่แล้ว

      @@LaurenceSvekisCourses Inserting to spreadsheet is not a challenge. I am facing problem when I am using a complex form with over 400 parameters being passed from the client html to server. For limited parameters on the client, I can use form and get all the event parameters using doPost(e). Somehow, I am unable to get it working for this form wherein multiple multiselect options are passed on.

    • @sanjibmeitei
      @sanjibmeitei 2 ปีที่แล้ว

      @@LaurenceSvekisCourses And, var varName = document.getElementById("elementID").value; only returns a single value instead of an array

  • @mussatawerghi9269
    @mussatawerghi9269 ปีที่แล้ว +1

    i see.. i found the fault of repeating ...... thank you .