Custom Exporting Techniques - Example #9032
AlejandroFNadal
started this conversation in
Show and tell
Replies: 4 comments 2 replies
-
This is great, thanks for sharing! |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is really useful, thank you so much! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Bloody marvellous. This is useful in getting around the limitations of the Export Data action. thanks @AlejandroFNadal |
Beta Was this translation helpful? Give feedback.
0 replies
-
Sadly, I am getting a "ReferenceError: Blob is not defined" |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone!
EDIT: I wanted to leave this here as a reference for anyone trying to do an export from a query (the normal budibase export feature will not work in this scenario).
EDIT 2: Adding how to use base64 files. Also works only in chrome/chromium.
Note: This only works in Chrome and Chromium. I have no idea why, if someone could modify this to make it work in firefox.
EDIT: It also doesn't work depending on how deep you place the button in your component tree. I had one scenario where my button worked if it was under one DP and two containers, but it didn't work under three nested DP and three containers. So keep in mind placing the button somewhere else if you see that it doesn't work for you. My guess is that some of the operations end up affecting some autogenerated div instead of the actual browser, but it is only a guess.
Steps:
I hope this is useful to someone :-D
EDIT 2:
Now, if you need binary files and you are getting them through an API as base64 :
In that scenario, we were downloading a word file, so the "contentType" thing is different. The Action 1 was a API request.
My original post below
Beta Was this translation helpful? Give feedback.
All reactions