# Developing Nodes

**URL:** https://discourse.nodered.org/c/developing-nodes/15.md?page=3

[Latest](https://discourse.nodered.org/latest.md) · [Categories](https://discourse.nodered.org/categories.md) · [Tags](https://discourse.nodered.org/tags.md)

**Page:** 4

---

## [Cascading Dropdowns from json fetches](https://discourse.nodered.org/t/cascading-dropdowns-from-json-fetches/94639)

<div class="topic-metadata">

**Author:** [@znetsixe](https://discourse.nodered.org/u/znetsixe)\
**Replies:** 6\
**Last updated:** [15 January 2025 15:06 UTC](https://discourse.nodered.org/t/cascading-dropdowns-from-json-fetches/94639 "2025-01-15T15:06:34Z")

</div>

Hey everyone, Im trying to build a cascading dropdown fetch for my custom created nodes. However after spending a day of failures Im lost. Fetching something independent from something else works just fine. So here ar…

---

## [Access context from custom node editor code (.html file)](https://discourse.nodered.org/t/access-context-from-custom-node-editor-code-html-file/94508)

<div class="topic-metadata">

**Author:** [@mayswekkie](https://discourse.nodered.org/u/mayswekkie)\
**Replies:** 7\
**Last updated:** [13 January 2025 11:42 UTC](https://discourse.nodered.org/t/access-context-from-custom-node-editor-code-html-file/94508 "2025-01-13T11:42:50Z")

</div>

I want to access the global context from a custom node I'm creating. I want to do this from the editor code (html file) in the onprepare function. I read in (javascript - Send data on configuration - Stack Overflow) that…

---

## [How to handle internationalized content after copying the native node](https://discourse.nodered.org/t/how-to-handle-internationalized-content-after-copying-the-native-node/94564)

<div class="topic-metadata">

**Author:** [@lyliang1216](https://discourse.nodered.org/u/lyliang1216)\
**Replies:** 5\
**Last updated:** [13 January 2025 09:45 UTC](https://discourse.nodered.org/t/how-to-handle-internationalized-content-after-copying-the-native-node/94564 "2025-01-13T09:45:41Z")

</div>

I copied the original node and I need to modify it, but it contains internationalized content. How should I deal with it? I also copied the folder for international content This is my current directory structure

---

## [Time to Payback/Contribute - Euromap63 support](https://discourse.nodered.org/t/time-to-payback-contribute-euromap63-support/94502)

<div class="topic-metadata">

**Author:** [@jakonnode](https://discourse.nodered.org/u/jakonnode)\
**Replies:** 1\
**Last updated:** [10 January 2025 11:13 UTC](https://discourse.nodered.org/t/time-to-payback-contribute-euromap63-support/94502 "2025-01-10T11:13:25Z")

</div>

Looking for Euromap63 - File based Industrial Protocol - support for talking to machines. I could not find any from the node library. Have been using node-red for sometime now, looks like it's time to payback/contribut…

---

## [Can we install a module and a storage module in node-red user directory](https://discourse.nodered.org/t/can-we-install-a-module-and-a-storage-module-in-node-red-user-directory/93873)

<div class="topic-metadata">

**Author:** [@RomainPoltronieri](https://discourse.nodered.org/u/RomainPoltronieri)\
**Replies:** 10\
**Last updated:** [7 January 2025 12:28 UTC](https://discourse.nodered.org/t/can-we-install-a-module-and-a-storage-module-in-node-red-user-directory/93873 "2025-01-07T12:28:28Z")

</div>

Hello, I have an issue with storage plugin and node module local installation. I have written: a node-red-contrib-postgres-storage module meant to be used as a storageModule a node-red-contrib-flow-metadata module th…

---

## [After deploy two instances of the same node](https://discourse.nodered.org/t/after-deploy-two-instances-of-the-same-node/94343)

<div class="topic-metadata">

**Author:** [@wangenkuesse](https://discourse.nodered.org/u/wangenkuesse)\
**Replies:** 2\
**Last updated:** [5 January 2025 16:08 UTC](https://discourse.nodered.org/t/after-deploy-two-instances-of-the-same-node/94343 "2025-01-05T16:08:24Z")

</div>

I am developing an 4-state switch node with integrated dashboard 2 widget. After deploy it seems to me that I find 2 instances of the same node, with the same nodeId communicating with the widget. There is a function u…

---

## [Pdf file into database like postgres](https://discourse.nodered.org/t/pdf-file-into-database-like-postgres/94308)

<div class="topic-metadata">

**Author:** [@hemanthv1](https://discourse.nodered.org/u/hemanthv1)\
**Replies:** 1\
**Last updated:** [2 January 2025 06:24 UTC](https://discourse.nodered.org/t/pdf-file-into-database-like-postgres/94308 "2025-01-02T06:24:33Z")

</div>

Hi, I am trying to convert pdf files into base64 and log them in database. When using read file - "file-in" node and set output to output to base64 and include debug output. Base64 output is generated for the pdf file …

---

## [Button send msg not working](https://discourse.nodered.org/t/button-send-msg-not-working/94251)

<div class="topic-metadata">

**Author:** [@sunnoy](https://discourse.nodered.org/u/sunnoy)\
**Replies:** 6\
**Last updated:** [31 December 2024 13:37 UTC](https://discourse.nodered.org/t/button-send-msg-not-working/94251 "2024-12-31T13:37:49Z")

</div>

k8s-docker-ops.html button: { onclick: function() { $.ajax({ url: "inject/" + this.id, method: "POST", da…

---

## [Text/javascript vs module in html](https://discourse.nodered.org/t/text-javascript-vs-module-in-html/94215)

<div class="topic-metadata">

**Author:** [@znetsixe](https://discourse.nodered.org/u/znetsixe)\
**Replies:** 3\
**Last updated:** [30 December 2024 13:39 UTC](https://discourse.nodered.org/t/text-javascript-vs-module-in-html/94215 "2024-12-30T13:39:05Z")

</div>

I changed the text/javascript to module in my html file. Here is a snippet: \<script type="module" src="../nodeRedFunctions/menuUtils.js"\>\</script\> \<script type="module"\> import { fetchData } from "../nodeRedFunction…

---

## [Dropdown Not Displayed in UI Dashboard, Only in Node-RED Editor](https://discourse.nodered.org/t/dropdown-not-displayed-in-ui-dashboard-only-in-node-red-editor/94118)

<div class="topic-metadata">

**Author:** [@Nandhini-Subramaniya](https://discourse.nodered.org/u/Nandhini-Subramaniya)\
**Replies:** 10\
**Last updated:** [26 December 2024 14:52 UTC](https://discourse.nodered.org/t/dropdown-not-displayed-in-ui-dashboard-only-in-node-red-editor/94118 "2024-12-26T14:52:04Z")

</div>

I’m creating a custom Node-RED node that includes a Vue.js-based dropdown using v-autocomplete. The goal is to display this dropdown in the Node-RED UI Dashboard. However, the dropdown appears only in the Node-RED editor…

---

## [How to internationalize the header of editableList](https://discourse.nodered.org/t/how-to-internationalize-the-header-of-editablelist/94116)

<div class="topic-metadata">

**Author:** [@Lau-Yx](https://discourse.nodered.org/u/Lau-Yx)\
**Replies:** 4\
**Last updated:** [24 December 2024 05:31 UTC](https://discourse.nodered.org/t/how-to-internationalize-the-header-of-editablelist/94116 "2024-12-24T05:31:44Z")

</div>

I am using the editableList plugin to create an editable list and I want to internationalize the "Name" field. However, I have tried several methods but none of them seem to work. Current Code $("ol.list").editableList(…

---

## [Dashboard-2 v1.21.0 release breaks existing Datastore behavior](https://discourse.nodered.org/t/dashboard-2-v1-21-0-release-breaks-existing-datastore-behavior/94096)

<div class="topic-metadata">

**Author:** [@omrid](https://discourse.nodered.org/u/omrid)\
**Replies:** 2\
**Last updated:** [23 December 2024 10:50 UTC](https://discourse.nodered.org/t/dashboard-2-v1-21-0-release-breaks-existing-datastore-behavior/94096 "2024-12-23T10:50:19Z")

</div>

I have just upgraded to Dashboard-2 v1.21.0, and it seems to have changed the datastore behavior (from replace to merge, as described in #1465). Also, when saving a string, the datastore now returns it as a buffer. Whil…

---

## [Git main branch contains accidental commits](https://discourse.nodered.org/t/git-main-branch-contains-accidental-commits/94100)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 14\
**Last updated:** [22 December 2024 13:56 UTC](https://discourse.nodered.org/t/git-main-branch-contains-accidental-commits/94100 "2024-12-22T13:56:21Z")

</div>

Hi folks, I have been doing quite a lot of work in the last week for the dashboard repo, but it seems I have (by accident) pushed some stuff to my main branch. Now the main branch is two commits ahead of the dashboard …

---

## [How to Run Unit Tests for My Node-RED Custom Node?](https://discourse.nodered.org/t/how-to-run-unit-tests-for-my-node-red-custom-node/93993)

<div class="topic-metadata">

**Author:** [@Nandhini-Subramaniya](https://discourse.nodered.org/u/Nandhini-Subramaniya)\
**Replies:** 0\
**Last updated:** [18 December 2024 11:58 UTC](https://discourse.nodered.org/t/how-to-run-unit-tests-for-my-node-red-custom-node/93993 "2024-12-18T11:58:54Z")

</div>

I’m working on creating a custom Node-RED node following the Creating Your First Node guide from the official documentation. I have successfully created the required files: lower-case.js (the node definition) lower-ca…

---

## [Access flow ID in node HTML file](https://discourse.nodered.org/t/access-flow-id-in-node-html-file/93959)

<div class="topic-metadata">

**Author:** [@RomainPoltronieri](https://discourse.nodered.org/u/RomainPoltronieri)\
**Replies:** 2\
**Last updated:** [17 December 2024 14:07 UTC](https://discourse.nodered.org/t/access-flow-id-in-node-html-file/93959 "2024-12-17T14:07:55Z")

</div>

When the oneditsave function of my custom node is called, I need some code to be executed, and within that code I need the ID of the flow the node belongs to. Is this something that is possible ?

---

## [Typed input of type 're' (i.e. regular expresssion)](https://discourse.nodered.org/t/typed-input-of-type-re-i-e-regular-expresssion/93891)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 7\
**Last updated:** [14 December 2024 09:51 UTC](https://discourse.nodered.org/t/typed-input-of-type-re-i-e-regular-expresssion/93891 "2024-12-14T09:51:33Z")

</div>

Hi folks, I want to enter a text into a typedinput, but there should be a visible indication when the text does not match a specified regular expression. I see that the typedinput allows to use regular expressions: …

---

## [How to stop writing bad nodes using the nrg cli and Vitest](https://discourse.nodered.org/t/how-to-stop-writing-bad-nodes-using-the-nrg-cli-and-vitest/93786)

<div class="topic-metadata">

**Author:** [@AllanOricil](https://discourse.nodered.org/u/AllanOricil)\
**Replies:** 1\
**Last updated:** [10 December 2024 22:32 UTC](https://discourse.nodered.org/t/how-to-stop-writing-bad-nodes-using-the-nrg-cli-and-vitest/93786 "2024-12-10T22:32:31Z")

</div>

I would like to share with you an example where I demonstrate how you can write tests for your nodes using Vitest obs: node-red-node-test-helper is still locked to this commit because my changes to enable vitest were …

---

## [Ui-template changes page dropdown](https://discourse.nodered.org/t/ui-template-changes-page-dropdown/93735)

<div class="topic-metadata">

**Author:** [@chuckf201](https://discourse.nodered.org/u/chuckf201)\
**Replies:** 1\
**Last updated:** [6 December 2024 19:49 UTC](https://discourse.nodered.org/t/ui-template-changes-page-dropdown/93735 "2024-12-06T19:49:54Z")

</div>

I consider the template node crucial to further my development efforts. Using google font examples https://developers.google.com/fonts/docs/getting\_started \<!--- https://developers.google.com/fonts/docs/getting\_starte…

---

## [Further development of 32-bit software (Nodes)?](https://discourse.nodered.org/t/further-development-of-32-bit-software-nodes/93704)

<div class="topic-metadata">

**Author:** [@iiot2k](https://discourse.nodered.org/u/iiot2k)\
**Replies:** 8\
**Last updated:** [5 December 2024 14:47 UTC](https://discourse.nodered.org/t/further-development-of-32-bit-software-nodes/93704 "2024-12-05T14:47:25Z")

</div>

I develop hardware nodes for the Raspberry Pi. The hardware driver is written in C++. I am currently developing for 32bit and 64bit. To test the nodes I have to work with many SD cards for 32bit and 64bit and the diff…

---

## [Node boolean property converted to string](https://discourse.nodered.org/t/node-boolean-property-converted-to-string/93133)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 13\
**Last updated:** [4 December 2024 21:49 UTC](https://discourse.nodered.org/t/node-boolean-property-converted-to-string/93133 "2024-12-04T21:49:25Z")

</div>

Hi folks, I was trying to solve this dashboard issue, but I am a bit confused. The ui-slider node has a boolean property: RED.nodes.registerType('ui-slider', { defaults: { ... …

---

## [Update of Nodes](https://discourse.nodered.org/t/update-of-nodes/93680)

<div class="topic-metadata">

**Author:** [@iiot2k](https://discourse.nodered.org/u/iiot2k)\
**Replies:** 13\
**Last updated:** [4 December 2024 15:54 UTC](https://discourse.nodered.org/t/update-of-nodes/93680 "2024-12-04T15:54:24Z")

</div>

When a Node-Red node is updated, are the node.js libraries used also updated? I updated my library @iiot2k/gpiox - npm and used in Node-Red node @iiot2k/node-red-gpiox - npm. In the package.json of Node-Red node is ent…

---

## [How to add new tabs in Node Editor Window](https://discourse.nodered.org/t/how-to-add-new-tabs-in-node-editor-window/93655)

<div class="topic-metadata">

**Author:** [@kamronkhakimov](https://discourse.nodered.org/u/kamronkhakimov)\
**Replies:** 3\
**Last updated:** [4 December 2024 10:58 UTC](https://discourse.nodered.org/t/how-to-add-new-tabs-in-node-editor-window/93655 "2024-12-04T10:58:49Z")

</div>

There are many tabs under properties tab. Where can I find documentation to it?

---

## [When is registerType used/called/accessed?](https://discourse.nodered.org/t/when-is-registertype-used-called-accessed/93642)

<div class="topic-metadata">

**Author:** [@gregorius](https://discourse.nodered.org/u/gregorius)\
**Replies:** 3\
**Last updated:** [2 December 2024 22:18 UTC](https://discourse.nodered.org/t/when-is-registertype-used-called-accessed/93642 "2024-12-02T22:18:41Z")

</div>

Hi There, I was looking through the code base of knxEasy node - which hasn't been touched in five years, so I don't know whether it's being maintained. I was looking at the server-side code for the knxEasy-in node: mo…

---

## [Messages to dashboard nodes when there are no connected clients](https://discourse.nodered.org/t/messages-to-dashboard-nodes-when-there-are-no-connected-clients/93556)

<div class="topic-metadata">

**Author:** [@omrid](https://discourse.nodered.org/u/omrid)\
**Replies:** 4\
**Last updated:** [29 November 2024 11:32 UTC](https://discourse.nodered.org/t/messages-to-dashboard-nodes-when-there-are-no-connected-clients/93556 "2024-11-29T11:32:55Z")

</div>

When a flow sends a message to a dashboard node, the node (on the server side) broadcasts the message to the node's widgets on all connected clients. If there ae no connected clients, then unless the node saves the mess…

---

## [Governance on node red](https://discourse.nodered.org/t/governance-on-node-red/93322)

<div class="topic-metadata">

**Author:** [@jrdash](https://discourse.nodered.org/u/jrdash)\
**Replies:** 3\
**Last updated:** [26 November 2024 04:06 UTC](https://discourse.nodered.org/t/governance-on-node-red/93322 "2024-11-26T04:06:40Z")

</div>

Hi, I am new to node-red. we would like to implement governance on node red platform. It kind of restricting anyone to develop app without getting proper approval and validation from governance team. Some kind of restri…

---

## [Module\_not\_found error for local node, but not for released node](https://discourse.nodered.org/t/module-not-found-error-for-local-node-but-not-for-released-node/93238)

<div class="topic-metadata">

**Author:** [@Joe-AB1DO](https://discourse.nodered.org/u/Joe-AB1DO)\
**Replies:** 8\
**Last updated:** [19 November 2024 17:07 UTC](https://discourse.nodered.org/t/module-not-found-error-for-local-node-but-not-for-released-node/93238 "2024-11-19T17:07:55Z")

</div>

Hi all, I have written a node and released updates several times without issue. Now I want to update the module some more, but it has been a while. Anyway, long story short, when I use palette manager to install my node…

---

## [Get NodeID from inside OnEditPrepare](https://discourse.nodered.org/t/get-nodeid-from-inside-oneditprepare/93227)

<div class="topic-metadata">

**Author:** [@Mike7833](https://discourse.nodered.org/u/Mike7833)\
**Replies:** 8\
**Last updated:** [18 November 2024 15:59 UTC](https://discourse.nodered.org/t/get-nodeid-from-inside-oneditprepare/93227 "2024-11-18T15:59:48Z")

</div>

I have a use-case where I need to get a Node's ID from inside OnEditPrepare in the Node's HTML frontend code. I figured out a way to do it but it seems clunky and am wondering if there is something built-in I can access…

---

## [When are VueJs methods binded?](https://discourse.nodered.org/t/when-are-vuejs-methods-binded/93142)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 11\
**Last updated:** [14 November 2024 21:58 UTC](https://discourse.nodered.org/t/when-are-vuejs-methods-binded/93142 "2024-11-14T21:58:43Z")

</div>

Hi folks, Would like to support Joe a bit solving one of the 300+ dashboard issues, but lacking some VueJs knowledge unfortunately: I have added some methods to the ui-template node, and want to use those in the create…

---

## [Debugging help wanted](https://discourse.nodered.org/t/debugging-help-wanted/93104)

<div class="topic-metadata">

**Author:** [@MatthiasU](https://discourse.nodered.org/u/MatthiasU)\
**Replies:** 12\
**Last updated:** [13 November 2024 16:22 UTC](https://discourse.nodered.org/t/debugging-help-wanted/93104 "2024-11-13T16:22:01Z")

</div>

Hello, so I am copying the existing base64 node (to add base85). My problem is that the tests I hacked together fail and I have no idea about the how to use NodeJS tooling, specifically how do I ask grunt to run a si…

---

## [Use Environment Variables from .env in custom node client html file](https://discourse.nodered.org/t/use-environment-variables-from-env-in-custom-node-client-html-file/93111)

<div class="topic-metadata">

**Author:** [@pritpalsinghds](https://discourse.nodered.org/u/pritpalsinghds)\
**Replies:** 8\
**Last updated:** [13 November 2024 13:17 UTC](https://discourse.nodered.org/t/use-environment-variables-from-env-in-custom-node-client-html-file/93111 "2024-11-13T13:17:13Z")

</div>

I am developing a custom Node in Node-RED. This node will allow users to interact with different environments (like development, QA, and sandbox) by making HTTP requests to a backend API. I want to make the default envi…

[Previous page](https://discourse.nodered.org/c/developing-nodes/15.md?page=2)

[Next page](https://discourse.nodered.org/c/developing-nodes/15.md?page=4)
