# Import and Export click event

**URL:** <https://discourse.nodered.org/t/import-and-export-click-event/26697>\
**Category:** General\
**Created:** [15 May 2020 10:47 UTC](https://discourse.nodered.org/t/import-and-export-click-event/26697 "2020-05-15T10:47:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhpatel177](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dhpatel177/32/39248_2.png) [@dhpatel177](https://discourse.nodered.org/u/dhpatel177)\
**Post date:** [15 May 2020 10:47 UTC](https://discourse.nodered.org/t/import-and-export-click-event/26697/1 "2020-05-15T10:47:03Z")

</div>

![Capture](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/6/a644fecbc86562d0df63298fa29d8bf0d2cd891e.png)

Hello,  
I wanted to know from where this import and export event called and in which js they are to be called?

Thanks

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [15 May 2020 10:58 UTC](https://discourse.nodered.org/t/import-and-export-click-event/26697/2 "2020-05-15T10:58:13Z")

</div>

Are you looking to change the backend of node-red to do something different?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [15 May 2020 11:21 UTC](https://discourse.nodered.org/t/import-and-export-click-event/26697/3 "2020-05-15T11:21:29Z")

</div>

We've been around this circle before with @dhpatel177 and I'm sure I've had this conversation with him on slack.

He is trying to create a multi-user version of Node-RED where each users flows are saved separately.

@dhpatel177 am I right in that description?

The menu items you have highlighted are defined here: [https://github.com/node-red/node-red/blob/89a048e5faab5834d9b44741e8715eb0ca6f5900/packages/node\_modules/%40node-red/editor-client/src/js/red.js#L457-L460](https://github.com/node-red/node-red/blob/89a048e5faab5834d9b44741e8715eb0ca6f5900/packages/node_modules/%40node-red/editor-client/src/js/red.js#L457-L460)

When clicked, they trigger the `core:show-import-dialog` and `core:show-export-dialog` actions respectively.

Those actions are registered here: [https://github.com/node-red/node-red/blob/89a048e5faab5834d9b44741e8715eb0ca6f5900/packages/node\_modules/%40node-red/editor-client/src/js/ui/clipboard.js#L735-L736](https://github.com/node-red/node-red/blob/89a048e5faab5834d9b44741e8715eb0ca6f5900/packages/node_modules/%40node-red/editor-client/src/js/ui/clipboard.js#L735-L736)

They call the `importNodes` and `exportNodes` functions defined in the same file. These functions display the corresponding dialog.

---

<div class="post-metadata">

**Author:** ![dhpatel177](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dhpatel177/32/39248_2.png) [@dhpatel177](https://discourse.nodered.org/u/dhpatel177)\
**Post date:** [15 May 2020 11:27 UTC](https://discourse.nodered.org/t/import-and-export-click-event/26697/4 "2020-05-15T11:27:03Z")

</div>

Thanks @knolleary...

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [14 July 2020 11:27 UTC](https://discourse.nodered.org/t/import-and-export-click-event/26697/5 "2020-07-14T11:27:13Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
