Node for a dynamic list

#1

Hey there,

I'm working on a project which is about the inventory management.
I almost have finished the project but I have one big issue.

I need a dynamic list similar to excel. But I found no package in Node-Red which offers such a list.

Maybe someone has a suggestion for me.

I'm grateful for every reference.

Have a nice week.

0 Likes

#2

Hi @mari12

can you expand a bit more on what you mean?

Do you want a flow that generates a file containing a list of items?

Where do the items come from? Do you need to add items to the list over time?

Nick

0 Likes

#3

sorry for the late answer.

The items of the lists are generated in another flow.
The idea of the list is, to control the items and maybe change the amount of them.
There also should be the possibility und confirm the input with a hook.

Greetings
Marius

0 Likes

#4

Some questions

  1. When you say another flow do you mean another tab in the same node-red instance?
  2. Does the list have to survive a node-red restart/reboot?
    If the answer to 2 is yes, then perhaps what you want is something like an sqlite database.
0 Likes

#5

Yes exactly another tab in the same node-red instance.

No, this is not necessary.
The items are generatered after every reboot. So the list gets the new information.

0 Likes

#6

Are you using the dashboard ? If so does the Dropdown help ?
Or is this on the editor side ?

0 Likes

#7

Can you just use a javascript object?
var inventory = {"widgets": 5, "froglets: 1}
then
inventory["widgets"] = inventory["widgets"] - 1
or
inventory[partName] = inventory[partName] - 1

or maybe an array
var inventory = [{name: "widgets", quantity: 5},{name: "froglets", quantity: 1}]

0 Likes

#8

I am using a dashboard but only to control and show the parts.

and on the editor side I want a dynamic list.
Easily said I want the opportunity to change or confirm the generated items.

0 Likes