node-red-dashboard icon indicating copy to clipboard operation
node-red-dashboard copied to clipboard

Export from db to CSV and download

Open RyIot3329 opened this issue 1 year ago • 3 comments

Description

I am not sure if this id possible already but I need to prepare a file for export to the browser using the browser download API. This would be a great feature or if it is already possible would love to see an example on how this could be done.

Have you provided an initial effort estimate for this issue?

This may already exist

RyIot3329 avatar Jun 26 '24 15:06 RyIot3329

So, just to check here, you're creating a file in Node-RED, you want to send that to Dashboard for download by a user?

joepavitt avatar Jun 28 '24 11:06 joepavitt

Yeah, exactly.

Ryan

On Fri, Jun 28, 2024, 6:31 AM Joe Pavitt @.***> wrote:

So, just to check here, you're creating a file in Node-RED, you want to send that to Dashboard for download by a user?

— Reply to this email directly, view it on GitHub https://github.com/FlowFuse/node-red-dashboard/issues/1029#issuecomment-2196694107, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6PVU7HVY4PJTEZBV3YKBTLZJVCSLAVCNFSM6AAAAABJ6D5A4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJWGY4TIMJQG4 . You are receiving this because you authored the thread.Message ID: @.***>

RyIot3329 avatar Jun 28 '24 13:06 RyIot3329

Hi @RyIot3329

This is something you can already do yourself.

Here is a demo of serving files from your Node-RED to a user on a dashboard:

https://flows.nodered.org/flow/db68bd4934cf46f39e6e453a348bc419

IMPORTANT: This is a Dashboard 1.0 example (not Dashboard 2.0) so the ui-template will need re-jigging but the important parts and the concept should set you off in the right direction.

Steve-Mcl avatar Jun 28 '24 13:06 Steve-Mcl