From Google Sheets to HTML table - importing and displaying data

  Рет қаралды 26,698

CogniVis AI

CogniVis AI

Күн бұрын

Пікірлер: 50
@Mdbootstrap
@Mdbootstrap 3 жыл бұрын
I hope you liked the video. If you are already here in the comment section, I invite you to let me know what other videos would you like to see in the future. Also, share any other feedback that you have on this video! I don't run ads on tutorials - the only value I get is your engagement in the MDB community. So if you would like to show your support: - Encourage more people to Keep Coding ---> Send this video to one person - Stay tuned for new content ---> Subscribe & ring the bell In the description, you will find links to some useful, free resources: 📥 Download Material Design for Bootstrap - FREE open-source UI KIT 🎓 Learn responsive web design with the latest Bootstrap 5 (full 1.5H course) 🎁 Join our mailing list & receive exclusive perks (free stuff that is normally behind a paywall) ⭐Support the creation of open-source packages with a STAR on GitHub 👪 If you have any questions - don't hesitate to ask on our Facebook group Thank you for your support!
@Suchit_Plays_Song
@Suchit_Plays_Song Жыл бұрын
I want add changes without going in Google sheet directly add changes from web how can I do that
@taoanhfree
@taoanhfree 2 жыл бұрын
thank you. But can it be more customized? I'm going to make the image link, it's in
@gercocoetzee4239
@gercocoetzee4239 2 жыл бұрын
Thank you for this very insightful video! One question: I inserted an image in the spreadsheet. It is not showing on the webpage. Can an image be shown in the spreadsheet on the webpage as well?
@howe-simracing
@howe-simracing 2 жыл бұрын
Did you get any answer on your question or did you find out a solution of this? I have the same problem, too. It would be great to hear from you.
@arron7993
@arron7993 Жыл бұрын
@@howe-simracing did any of u guys got a solution for this?
@mochnacki78
@mochnacki78 Жыл бұрын
Hi, is it possible to add id for each cell?
@chrisgrippo371
@chrisgrippo371 2 жыл бұрын
Is it possible to do this but keep any hyperlinks that are in the cells in the spreadsheet?
@Mdbootstrap
@Mdbootstrap 2 жыл бұрын
Not in this solution, you would need a bit of custom code
@petter-berg
@petter-berg 3 ай бұрын
@@Mdbootstrap need this aswell
@josephhicks6424
@josephhicks6424 2 жыл бұрын
No matter what I do, The easyData page does not populate. I confirmed the API and Sheet ID. Any other ideas why this wouldn't work? What are the other big areas of possible user error to review?
@michaelrjrobinson
@michaelrjrobinson 2 жыл бұрын
I to am having the same issue. Followed the video exactly the same and having no luck with it.
@bozicneable
@bozicneable 2 жыл бұрын
Hallo, great tutorial. I'm trying to show two sheets from one google sheet document in two tables on one html page and everything work great on Windows and Android but not on IOS. IOS just showing last table. Any idea?
@dustinkratochwill5531
@dustinkratochwill5531 2 жыл бұрын
Is there a way to skip a column in the table? For example, if I set the range as Sheet2!A:C and I want to skip column D and then do Sheet2!E:G, is there any way I can do that?
@manalfaiz9515
@manalfaiz9515 2 жыл бұрын
Hi, Thank you for the video. Do you know the JS code so that the html table value (user input)can update the data in the google sheets. So sorry, I'm new to coding and i cannot find any example related to this. Thank you.
@dr-mnizam
@dr-mnizam 2 жыл бұрын
kzbin.info/www/bejne/e4XLkqiZeaeMbMk
@sonaliabewardana5771
@sonaliabewardana5771 11 ай бұрын
How to add image from google sheet to html page
@Mdbootstrap
@Mdbootstrap 11 ай бұрын
Publish the Google Sheet: Open your Google Sheet. Go to "File" > "Publish to the web..." In the dialog that appears, select the sheet containing the image or data you want to display in your HTML page. Choose the format as "Web page" and set any other options you prefer. Click the "Publish" button. Copy the generated link (URL) provided in the dialog. Create your HTML page: Create an HTML file using a text editor or an integrated development environment (IDE). Add HTML code: Inside your HTML file, you can use an tag to display the image from your Google Sheet. Insert the following code where you want the image to appear in your HTML: CODE: Replace "URL_OF_PUBLISHED_GOOGLE_SHEET_IMAGE" with the actual URL you copied in step 1. Example: Make sure to provide an appropriate alt attribute with a brief description of the image for accessibility purposes. Save and view your HTML file: Save your HTML file. Open it in a web browser to see the image from your Google Sheet displayed on the page. Keep in mind that the URL from Google Sheets might change or expire, so it's essential to ensure that the published sheet or image remains accessible for your HTML page to display it correctly. If you plan to frequently update the image, you may need to refresh the published link in your HTML code when necessary. Keep Coding :)
@sadiyanoorain9251
@sadiyanoorain9251 2 жыл бұрын
Hi there!!! Your video is really helpful. Is there any simple method to add pagination to the HTML file.
@extensio.inversiones
@extensio.inversiones 2 жыл бұрын
since I use your example it fuckup mi visual studio, now node . doesnt work!!!!!!!
@rheybustos689
@rheybustos689 3 жыл бұрын
HI sir nice tutorial..May I ask if is it possible to edit datatable and sync changes in Gsheet? Thanks
@Mdbootstrap
@Mdbootstrap 3 жыл бұрын
Hello. probably it's possible, but not with the configuration I prepared in this tutorial, so I cannot provide you any solution for that in this moment
@rheybustos689
@rheybustos689 3 жыл бұрын
@@Mdbootstrap hopefully you will do a video tutorial on that. It will big help on us.. thanks sir have a blast day
@c0f7e3
@c0f7e3 3 жыл бұрын
By default, it only reads data from the first sheet. How to read data from different sheets? sheet2, sheet3, ...
@Mdbootstrap
@Mdbootstrap 3 жыл бұрын
You need to add the sheet name to the range parameter, eg Sheet2! A1: B8 It will be most convenient to add e.g. Sheet3! A: Z and read everything from the sheet, but you can also precisely define e.g. Sheet3! A2: H8
@c0f7e3
@c0f7e3 3 жыл бұрын
@@Mdbootstrap extremely helpful!!!
@Mdbootstrap
@Mdbootstrap 3 жыл бұрын
@@c0f7e3 happy to hear that ;)
@twifmarketing
@twifmarketing 2 жыл бұрын
If you have six to seven columns, will the table become response on mobile phone?
@Mdbootstrap
@Mdbootstrap 2 жыл бұрын
In this case, you should wrap your table within .table-responsive wrapper. Have a look at example here mdbootstrap.com/docs/standard/data/tables/#section-responsive-tables
@twifmarketing
@twifmarketing 2 жыл бұрын
@@Mdbootstrap Thanks for quick response. Great tutorial. How would we filter for a column? For example we want to show data where column is Yes and items that are No would not show up on the web page
@Mdbootstrap
@Mdbootstrap 2 жыл бұрын
@@twifmarketing for such a thing you will probably need some more advanced solution. Have a look if you find it here mdbootstrap.com/docs/standard/data/datatables/
@twifmarketing
@twifmarketing 2 жыл бұрын
@@Mdbootstrap Enjoy your videos. Do you have an example where data table importing from google sheets. Looking to display a menu for food truck showing their menu, sides, drinks. These would be come from different sheets.
@Kreations_fr
@Kreations_fr 3 жыл бұрын
Thank you ! Nice tutorial. One question : Is it possible to read only lines with B column filled. For example "If Column B is empty on line X, don't display the X line" ? Thank you :)
@Mdbootstrap
@Mdbootstrap 3 жыл бұрын
The easiest way is to check if the required field is filled in before displaying the data, e.g. if it comes to column B, then we can add a simple condition to the function displaying the data, as in the example below: function displayResult2 (response) { let tableHead = ""; let tableBody = ""; response.result.values.forEach ((row, index) => { if (index === 0) { tableHead + = ""; row.forEach ((val) => (tableHead + = "" + val + "")); tableHead + = ""; } else if (row [1]) { tableBody + = ""; row.forEach ((val) => (tableBody + = "" + val + "")); tableBody + = ""; } });
@Kreations_fr
@Kreations_fr 3 жыл бұрын
@@Mdbootstrap Thank you so much ! Last question if i may ... :) How can i add 2 different tables on the same page, with 2 differents range query ? Thank you again !
@Mdbootstrap
@Mdbootstrap 3 жыл бұрын
@@Kreations_fr If it's a different sheet and other query, then you should add two new functions loadData and displayResult with the data of another sheet, and add one more table in HTML. If it is the same sheet but other data ranges, then you can change the range of displayed data in the previous query of the displayResult function. I hope it will help ;)
@Kreations_fr
@Kreations_fr 3 жыл бұрын
@@Mdbootstrap Thank you 🙏
@luisborges1667
@luisborges1667 Жыл бұрын
Congratulations for the tutorial, it is extremely useful. A doubt I had and could not execute. Is it possible to make it read all the sheets at once? Until then, if I have a spreadsheet with 10 tabs, I can only show one at a time and I believe that making a logic for each one is not ideal.
@hiryuimajin
@hiryuimajin Жыл бұрын
You could use the naming convention as how it's named in Google Sheets e.g. Sheet1!A1, Sheet1!A:A
@luisborges1667
@luisborges1667 Жыл бұрын
Hi, thanks for help. I try t, but a error occoured object
@Mike-vz8de
@Mike-vz8de 2 жыл бұрын
Can I do without using API key?
@MichaSzymanskiBF
@MichaSzymanskiBF 2 жыл бұрын
No, you need an API key
@howe-simracing
@howe-simracing 2 жыл бұрын
Great Video. Thanks a lot for this. 👍🏻 I have only short questions: 1. I have implemented different images in my sheet table. How can i show this in my html? 2. Is it possible to make some colomns in different alignments (for example some left aligned, some centered)? And final - Is it possible to show two different table sheets (Sheet1! AND Sheet2!) on one html site? Do you maybe have another course, where this is shown? I hope for your help. Thank you very much. 😊
@hiryuimajin
@hiryuimajin 2 жыл бұрын
My ideas: 1. It's best you host the images online so that it can be enclosed in the html with the tag and it will pull the link as the source. 2. You can achieve this with CSS. 3. Looking at the code you can probably replicate the js file and put the corresponding links. But another idea is you can combine the 2 sheets within google sheets. Hope this helps.
@howe-simracing
@howe-simracing 2 жыл бұрын
@@hiryuimajin many Thanks for your reply. 😊 1. Could you tell me where in the html i have to pull the Tag? There is no reference because of the import of the sheets table. 2. Also no reference to style the table columns. 3. This i have to try and hope to get this working. Thanks for your effort. 🙈👍🏻
@Leover378
@Leover378 2 жыл бұрын
Activa la TRADUCCION al ESPAÑOL en youtube studio, por favor.
@michelparmentier3063
@michelparmentier3063 3 жыл бұрын
it's more reading data than "importing" into html (maybe I miss something) For that, hard to beat Datatables.
@c0f7e3
@c0f7e3 3 жыл бұрын
which "datatable" you can "importing" into html?
@dimasnytin
@dimasnytin 2 жыл бұрын
Very nice
@dimasnytin
@dimasnytin 2 жыл бұрын
Thank you
Google Sheets - Search DataTable using Bootstrap, DataTables, JavaScript with Sorting & Pagination
51:00
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 40 М.
Use a google sheet as your web app database (Slingcode)
16:33
Непосредственно Каха: сумка
0:53
К-Media
Рет қаралды 12 МЛН
Wednesday VS Enid: Who is The Best Mommy? #shorts
0:14
Troom Oki Toki
Рет қаралды 50 МЛН
I'VE MADE A CUTE FLYING LOLLIPOP FOR MY KID #SHORTS
0:48
A Plus School
Рет қаралды 20 МЛН
From Google Analytics to HTML - create your own dashboard
18:47
CogniVis AI
Рет қаралды 26 М.
Convert Google Sheets into a REST API
14:10
Better Sheets
Рет қаралды 15 М.
Google Sheets and PHP
8:27
Twilio
Рет қаралды 115 М.
How to create a data entry form in Google Sheets [with multiple databases]
14:52
WEB APP Google Sheets | Search Data | Print Result
6:18
JNC Edukasi
Рет қаралды 28 М.
Filter Google Sheet in Web App
21:08
Code With Curt
Рет қаралды 32 М.
How to pull data from Google Sheets to HTML table
2:30
bpwebs
Рет қаралды 92 М.
How to display specific sheet data on webpage?
7:27
plefigos
Рет қаралды 10 М.
HTML Table from Spreadsheet Data - Google Apps Script Web App Tutorial - Part 13
25:46
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 150 М.
Непосредственно Каха: сумка
0:53
К-Media
Рет қаралды 12 МЛН