Is there any way to fetch the google sheet (gsheet) data in flutter and display realtime updates whenever there is any change in google sheet itself? - flutter

I am developing an application where a list is displayed according to the user input. The list is loading and getting displayed when the application is loaded and whenever the user inputs the data through the text fields(in the app) and the cells (in the google sheet) gets appended too ( which is what I want). But I would like to be able to get realtime list append in the application whenever any new data is inserted in the google sheet itself. So how do I listen for changes in google sheet everytime there is any change and update/append the list (in the application) according to it? Currently, whenever the data is inserted in the google sheet itself, the data only gets loaded when I hot restart the application.

Have you tried Apps Script Triggers? Maybe the function onEdit(e) can help:
https://developers.google.com/apps-script/guides/triggers

Related

How to control the streambuilder when to receive new documents in firebase?

We're working on a social media like application and using firebase as a database. Now every time some user create a post and the system upload it to database the stream builder automatically updating the list view, this cause an unwanted scroll down every time some user posts in the database
Our code looks like this
-Scaffold
-Stream builder (where the post getting fetch individually)
-Stack
-List view (where we show all the posts from all users in the database)
If you do not want to receive live updates, then switch from a StreamBuilder to a FutureBuilder. This one will query the data only once until you re-build.
If you wanted to keep the live updates , but want to avoid the "unwanted" scroll, then perhaps you need to "sort" your documents in a way that will avoid the scroll (e.g. show older documents first)

How to an async function in a child page widget before it gets built when it is navigated to?

I'm new to flutter and working on an application with a dashboard and several pages.
When the app is first opens the dashboard opens up with a bottom navigator to the other pages. On each of the other pages an async http request method is called to retrieve information and populate the page.
However, I want to show a summary of the information collected from these pages on the dashboard when the app first opens up. Is there a way to do this without navigating to any of the other pages or calling all the request methods from the dashboard page?
I've tried callbacks, but these need an active trigger on the child pages and I'm looking to load in all the info before the user even navigates to them.
The only way to have acces to all that data is to either fetch the data in your dashboard file or fetch the date inside the void main function.
You can however put the functions in separate files and import them.
If it's a small application you can pass the data on as prop to the child components.
If it's a bigger application with more data, you can then use Bloc or flutter_redux to globally store the data so you can acces it in other files aswel.
Bloc:
https://pub.dev/packages/flutter_bloc
Redux:
https://pub.dev/packages/flutter_redux

PowerApps- how to create a form where users can edit or delete rows that have been submitted

What I have:
As of now, I have created a Form (editable) where the user can enter their Name, Number, and Birthday, then hit the submit button, and that data is then entered into a Data Table. This information is also stored into Google Sheets for which I have created a flow. (when the user hits "submit", trigger the data to be updated into the google sheet).
What I need:
I would like users to be able to mess with the submitted data in the app itself (add a row, delete a row when you click on it, edit the row's info, etc), so essentially my powerapp is a nice front end for the Google Sheet. Is it possible to mess with the data once it is entered into the data table?
Any help how to do this would be appreciated.
I believe you started building Canvas app from scratch, so the screen has list below and "Add screen" on top. This way you have to introduce the Edit screen/operation & save changes using PATCH command.
There is another way: Create an app automatically from your data in PowerApps. This will give you the Browse Screen, Detail Screen & Edit Screen (aka New record screen) by default with all the Create, Read, Update, Delete (CRUD) operations right away using the Connection - Google sheet in your case.
Video tutorial for assistance

How to update the responses of the google form to the form itself

I am creating a Google Form. I want to insert a count in the end(anywhere,not specific) of the form which will show the number of responses submit till date.This goes like updating the live count. I have tried using script editor for Google Form Add-ons option.But I am unable to view the results automatically or changes. It asks me to accept "Terms of Service" which I don't want to do right now because I am not sure about the way it may result.
There are various options available to view the form results/responses.But here I don't want to view the results later.They should get updated when we click the submit button on form.Please note..simultaneously many users may fill the form.
To implement this,I have thought of logic like whenever submit button gets clicked..the text in the form should get updated.
Please suggest how I can add the count or apply above logic of whenever submit operation is performed. Is it possible?? Any other suggestions are welcomed..Thanks in Advance!!!
I found another possible way of doing this..I received all the responses in Google Spreadsheet..which I later embedded in my site. Solves the purpose..And the embedded data gets updated automatically for the responses !! Cheers

Using jquery mobile listview in form to get addition data from another page and pass back

I have a jquery mobile form with a listview. I want to add contacts to my form using a second page and then returning the selected data back to the original pages form. Just like in the calendar app on the iphone. Is this possible?. For some reason i can not fathem how this task would be completed.