Тёмный

WebApp to search and display a Sheets table 

Practical Sheets
Подписаться 12 тыс.
Просмотров 2,9 тыс.
50% 1

Опубликовано:

 

8 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 11   
@autoevosupermax448
@autoevosupermax448 День назад
Thank you very much .
@stubarbs5172
@stubarbs5172 14 дней назад
Excellent and very useful. I had the following problem / solution let filterData=data.filter(row=>row[0].toUpperCase().match(searchText.value.toUpperCase())) had to become let filterData=data.filter(row=>String(row[0]).toUpperCase().match(searchText.value.toUpperCase())) As row[0] was not considered a string and threw the following: row[0].match is not a function
@practicalsheets
@practicalsheets 13 дней назад
Very interesting! Thanks for sharing the solution Kind Regards
@johnleecordova8486
@johnleecordova8486 4 месяца назад
it works thank you! I will subscribe to your channel
@practicalsheets
@practicalsheets 4 месяца назад
Thanks for commenting!
@user-bo2ox2dz4c
@user-bo2ox2dz4c 11 месяцев назад
Thanks for these video and may I ask how to make the table show zero result before typing a a value in search box?
@practicalsheets
@practicalsheets 10 месяцев назад
Thank you! There should be many ways of handling it One way is this: Creat e adiv above the table, like this "There are no results" Then in your javascript you are going to hide it initially, and then if there are no rows in the data, it will show it again, like this google.script.run.withSuccessHandler(function(data){ let tableBody=document.getElementById("table-body") document.getElementById("no-results").classList.add("d-none") //INCLUDE THIS NEW LINE if(data.length==0) document.getElementById("no-results").classList.remove("d-none") //INCLUDE THIS NEW LINE Finally, in your search function you may do the same, but with the filtered data function search(){ google.script.run.withSuccessHandler(function(data){ document.getElementById("no-results").classList.add("d-none") //INCLUDE THIS NEW LINE let searchText=document.getElementById("search-box") console.log(searchText.value) let tableBody=document.getElementById("table-body") tableBody.innerHTML="" let filterData=data.filter(row=>row[0].toUpperCase().match(searchText.value.toUpperCase()) || row[1].toUpperCase().match(searchText.value.toUpperCase()) || row[2].toUpperCase().match(searchText.value.toUpperCase())) if(filterData.length==0) document.getElementById("no-results").classList.remove("d-none") //INCLUDE THIS NEW LINE I hope it is useful Regards!
@user-zn9wq6uw5b
@user-zn9wq6uw5b Год назад
@user-zn9wq6uw5b
@user-zn9wq6uw5b Год назад
HOW TO DO THIS??? Login Multi User Category to Displaying Multiple Sheets ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-2mf9LREdEnU.html&ab_channel=ConsulthinkProgrammer
@vigneswaran8358
@vigneswaran8358 Год назад
Am not able to rectify the error only headder file i can see in the web app
@vigneswaran8358
@vigneswaran8358 Год назад
Hi man i am getting errors could you please help me with this?
Далее
🛑 ты за кого?
00:11
Просмотров 92 тыс.
Пришёл к другу на ночёвку 😂
01:00
Web App - Google Sheets - Form Example
1:24:10
Просмотров 47 тыс.
How to display google sheet data on webpage?
10:57
Просмотров 60 тыс.
Display Google Sheet in Web App
9:14
Просмотров 43 тыс.
Don't Use ChatGPT Until You Watch This Video
13:40
Просмотров 1,6 млн