Thank you from Brazil, you gained another subscriber... It worked well after the changes described... my fields took a while to be recognized by the system... Then it was perfect.
Hi Dimitar, the file is getting downloaded but the data inside the file is quite jumbled. So many fields in the wrong column. Any idea why this is happening? I even modified the code to use the ~ character instead of comma as separator (since no text has ~ in the data so there is no confusion). But the problem is still there.Any suggestions? Thanks.
Maybe you have blank spaces which are causing this issue? Test your csv file in this website to see if it is not because of your file structure - tableconvert.com/csv-to-html
@@flutterflowexpert Hi Dimitar, thanks for replying. The CSV file is being badly formed. It appears the major problem is all the fields are not populated in all the documents. That is, some fields are blank (null). So for example lets say the table has a field called "priority status" -- this is blank of the product has no priority. Maybe that's what is causing the problem?
Dimitar, thank you very much for this informative video. I have one question: How can I pull the details from the document reference in this code? I am exporting a CSV file of all orders placed by customers, and I want to include the product data (name and price) for each order. The product data is stored as a document reference in the orders table. Please note that the product reference is an array, so one order can have multiple products. Any help would be greatly appreciated. Thank you in advance.
That is actually a very good question and I have an example code in my github. Here is the link github.com/bulgariamitko/flutterflowtutorials/blob/main/Examples/firebase/database/fb-export-multi-collections-to-csv.dart if you need more help please join my Discord server.
@@flutterflowexpert is there a video for supabase? I did find the relevant code in the github, but would like to see some resources/guidance on the process.
You mention Supabase in the title of your video but I do not see anything about Supabase. Is there a way to export a CSV using Flutterflow and Supabase?
You can go to the code and just copy and paste the code that I have wrote for Supabase, also you can watch this video as well ruclips.net/video/0_TIH7xT5_Y/видео.html
Hey, when I built the app and tested APK on my phone, it isn't working. It works fine in test mode in flutterflow but nothing is happening on my phone. Do you know why??
In Flutterflow in your custom action on the right I see that you have no "return value" set and you have no errors, yet your custom action returns. How is this possible??
🌟 Welcome to my video! 🌟 To ensure you have the best experience and access to all the resources mentioned, we've placed all active links in the video description below. This helps me keep everything up-to-date and easy for you to find! 👾 Join my Discord community! It's a great place to connect, share, and get the latest updates. The link is in the description as well. 💖 If you enjoy our content, consider supporting the channel. Every bit of support helps me create more of what you love. Details on how you can support are also in the description. Thank you for watching and being a part of the community! 🚀
Thank you for this wonderful tutorial, in my case I want to call the send email action and attach the csv file, how do I return the csv file from this custom action?
@@flutterflowexpert That will be really nice, however I was able to use "share" package to export the data which gives me the option to share via email.
Thank you so much for the video. Everything works great on the web but on iOS nothing happens. Is there any additional step to get it working on iOS. Really helpful video.
hello sir. Beautiful tutorial. Please I am a novice in flutter. Please is it possible to export a document only if the a field in the document is equal to a particular user? eg. export order only if the orders are created by user a.
Good tutorial. I am struggling to get a csv download but in my use case I am using a loop making api calls and adding jsons to a json list in app state. How do I get this app state json list to CSV and then download it??
Does anyone know why I get an error when importing Downloads? I have it exactly the same and I add the dependencies and I get the error that it cannot be imported and there is no way to do it
Hello, how could I export a collection to an Excel document since it has two variables that are of type list doc refente and it only shows me the reference and not the data that that reference has
You need to query that data and put the actual data in the custom action as arguments. So you will have two queries and put the values in the custom action as arguments.
Is there any way to format the DateTime to Date or just to time before exporting to CSV? If not the return value is 57:37.2 in Excel, and I have to click on the value to show 4/18/2023 6:57:37 AM. I just need the Date or maybe the Time and not both values together.
Hi there, thanks for this, it's perfect. But I'd like to know if have you tried something like this but with subcollections? or did you consider it's better to work only with collections?
thank you for this tutorial, but I have some problems that I encountered can you help me? I do this tutorial and it really works but it only works in the flutterflow, because when I downloaded the apk from the flutterflow and installed it on my phone, the download doesn't work. I can press the button but it do nothing. I will appreciate it if you could help me on this one
To be honest I haven't tested it on mobile. I only deploy it on a web app, but it says the package should work on any platform - pub.dev/packages/download I will test this on mobile and let you know.
@@newone-xy3tt "On mobile it saves the file in absolute or relative path, but we should ask/ensure if the app has the required permissions." perhaps this is the reason why it does not work on a mobile device
@@flutterflowexpert thanks for your help, converting the cvs file to xlsx everything is organized, adding a filter to the collection, could you extract the files by their date?
Thank you from Brazil, you gained another subscriber... It worked well after the changes described... my fields took a while to be recognized by the system... Then it was perfect.
Hi Dimitar, the file is getting downloaded but the data inside the file is quite jumbled. So many fields in the wrong column. Any idea why this is happening? I even modified the code to use the ~ character instead of comma as separator (since no text has ~ in the data so there is no confusion). But the problem is still there.Any suggestions? Thanks.
Maybe you have blank spaces which are causing this issue? Test your csv file in this website to see if it is not because of your file structure - tableconvert.com/csv-to-html
@@flutterflowexpert Hi Dimitar, thanks for replying. The CSV file is being badly formed. It appears the major problem is all the fields are not populated in all the documents. That is, some fields are blank (null). So for example lets say the table has a field called "priority status" -- this is blank of the product has no priority. Maybe that's what is causing the problem?
@@RajeevSharma-ii7fx yes, that is what it is causing it.
Dimitar, thank you very much for this informative video. I have one question: How can I pull the details from the document reference in this code?
I am exporting a CSV file of all orders placed by customers, and I want to include the product data (name and price) for each order. The product data is stored as a document reference in the orders table. Please note that the product reference is an array, so one order can have multiple products.
Any help would be greatly appreciated. Thank you in advance.
Hi @AniBanerji, I have the exact same problem, did you figure out?
That is actually a very good question and I have an example code in my github. Here is the link
github.com/bulgariamitko/flutterflowtutorials/blob/main/Examples/firebase/database/fb-export-multi-collections-to-csv.dart
if you need more help please join my Discord server.
Would love to see this for Supabase.
This video is coming. :)
Just circling back here to see if you were able to figure out downloading from Supabase! :)@@flutterflowexpert
@@flutterflowexpert is there a video for supabase? I did find the relevant code in the github, but would like to see some resources/guidance on the process.
You mention Supabase in the title of your video but I do not see anything about Supabase. Is there a way to export a CSV using Flutterflow and Supabase?
You can go to the code and just copy and paste the code that I have wrote for Supabase, also you can watch this video as well
ruclips.net/video/0_TIH7xT5_Y/видео.html
Hey, when I built the app and tested APK on my phone, it isn't working. It works fine in test mode in flutterflow but nothing is happening on my phone.
Do you know why??
You need to implement this code for mobile - ruclips.net/video/JSgDuKIxNg0/видео.html
In Flutterflow in your custom action on the right I see that you have no "return value" set and you have no errors, yet your custom action returns. How is this possible??
Good point actually I am not using the return word so I think you can just delete it from the code and it should still work.
Export CSV works in FF test mode but not in android real device. Why?
You need to follow the instructions of this video in order to download files on any device
ruclips.net/video/JSgDuKIxNg0/видео.html
Hello, for supabase I cant make it work :/
Please join my Discord server to share your code to debug why it is not working.
How can my user import an xls/excel file to create documents in Firebase?
Well using this video your users can import csv files which will create FB docs for each row. you can convert xls file to csv file very easy.
🌟 Welcome to my video! 🌟 To ensure you have the best experience and access to all the resources mentioned, we've placed all active links in the video description below. This helps me keep everything up-to-date and easy for you to find!
👾 Join my Discord community! It's a great place to connect, share, and get the latest updates. The link is in the description as well.
💖 If you enjoy our content, consider supporting the channel. Every bit of support helps me create more of what you love. Details on how you can support are also in the description.
Thank you for watching and being a part of the community! 🚀
Thank you for this wonderful tutorial, in my case I want to call the send email action and attach the csv file, how do I return the csv file from this custom action?
Soon I will make a video how you can send emails directly using custom action only for free.
@@flutterflowexpert That will be really nice, however I was able to use "share" package to export the data which gives me the option to share via email.
@@musaabdulrahamanomale92 nice!
You save my ass
Great Tutorial , however i do get the "Target of URI doesn't exist" error, how do i resolve it. Im using the current "download: ^1.0.0" Thanks
What is the exact error that you are geting?
Anyone know how I can do this for React Native? :)
HI too good.
Thank you very much for your video.
Let me implement it and give you feedback.
Awesome, thank you. I've implemented it in my own project faster because of your tutorial.
Thank you so much for the video. Everything works great on the web but on iOS nothing happens. Is there any additional step to get it working on iOS. Really helpful video.
Please follow this video in order to setup the code to be able to download files in iOS
ruclips.net/video/JSgDuKIxNg0/видео.html
hello sir. Beautiful tutorial. Please I am a novice in flutter. Please is it possible to export a document only if the a field in the document is equal to a particular user? eg. export order only if the orders are created by user a.
Yes, of course it is possible.
I followed the steps exactly but I'm getting an error that says "action declaration not found" and it won't save my custom action
Check the name of the custom action if it machines with the one in your code.
Good tutorial. I am struggling to get a csv download but in my use case I am using a loop making api calls and adding jsons to a json list in app state. How do I get this app state json list to CSV and then download it??
I will do a tutorial for that in the future or you can join my Discord to request that video in the future.
Excelent video. Work 100%!!
Does anyone know why I get an error when importing Downloads? I have it exactly the same and I add the dependencies and I get the error that it cannot be imported and there is no way to do it
What is the exact error that you get? Please join the Discord server to share your error there.
Hello! good video. Can it be implemented with Supabase? That changes? Thank you!
Yes. It can :)
Hello, how could I export a collection to an Excel document since it has two variables that are of type list doc refente and it only shows me the reference and not the data that that reference has
You need to query that data and put the actual data in the custom action as arguments. So you will have two queries and put the values in the custom action as arguments.
Hi @dimitar, how do i modify this code to download a single file .wav .mp3 etc. pdf. If it's not too much to ask.
Please find me on my Discord server as I have to ask you a lot of questions in order to give you the right answer.
God bless youuu, thanks for the sharing
Can you make a video for the same thing but in supabase?
Yes this video is coming in the near future.
Thank you so much, you're the best!
I've been looking for this everywhere!
great info, thank you very much
Is there any way to format the DateTime to Date or just to time before exporting to CSV? If not the return value is 57:37.2 in Excel, and I have to click on the value to show 4/18/2023 6:57:37 AM. I just need the Date or maybe the Time and not both values together.
Yes everything can be fixed and done. 👍 You need to format the time using FF before exporting the data.
Tengo el mismo problema, ¿como lo resolviste?
Thanks dude!
you you the best!!! txk!
Hi there, thanks for this, it's perfect. But I'd like to know if have you tried something like this but with subcollections? or did you consider it's better to work only with collections?
In my own experiences I have never used sub-collection in my FF projects. So my advice is to not use sub-collections if it is possible.
@@flutterflowexpert Thanks!
thank you for this tutorial, but I have some problems that I encountered can you help me? I do this tutorial and it really works but it only works in the flutterflow, because when I downloaded the apk from the flutterflow and installed it on my phone, the download doesn't work. I can press the button but it do nothing. I will appreciate it if you could help me on this one
To be honest I haven't tested it on mobile. I only deploy it on a web app, but it says the package should work on any platform - pub.dev/packages/download I will test this on mobile and let you know.
@@flutterflowexpert Thank you very much. I will appreciate it if you could help me on this.
@@newone-xy3tt and will test ti and let you know
@@flutterflowexpert thank you
@@newone-xy3tt "On mobile it saves the file in absolute or relative path, but we should ask/ensure if the app has the required permissions." perhaps this is the reason why it does not work on a mobile device
download xlsx???
Xlsx file is much difficult to implement. You need to use a package for that, but you can convert the CSV file to Xlsx file.
@@flutterflowexpert thanks for your help, converting the cvs file to xlsx everything is organized, adding a filter to the collection, could you extract the files by their date?
@@marcosricardogarrafamartig1619 Yes you should be able to
algun codigo para archivos xlsx? help meeeee!
You can export the file to csv and then you cna open it in Microsoft Excel as xlsx file