Steveorevo / node-maker

A set of subflows that can be used to quickly create a new Node-RED node, its property panels, and initial behavior.
GNU Lesser General Public License v2.1
21 stars 4 forks source link

more than 99 fields on rgroup #10

Open sserranoverbio opened 6 months ago

sserranoverbio commented 6 months ago

First at all, I want to thanks you this repo, because I want to use for creating my own nodes, but I have a problem when I created a group and add more than 99 rows on realtime.

image

always only save the first 99 data values and nothing more beyond 99. After that, the json created is empty beyond 99 element. A normal json entry for any row can be like this:

{ "metadatoA": "DEV", "metadatoAType": "str", "metadatoB": "HOUSE", "metadatoBType": "str", "metadatoC": "", "metadatoCType": "str", "destino": "output21", "destinoType": "str" },

but after 99 element, the rest of the elements are like this:

{ "metadatoA": "", "metadatoAType": "str", "metadatoB": "", "metadatoBType": "str", "metadatoC": "", "metadatoCType": "str", "destino": "", "destinoType": "str" },

is empty.

It's a bug of the node-maker or can be related with navigator memory. I'm lost with this issue and if you can help me with this, I will be graceful with you.

Regards,

Sergio

Steveorevo commented 5 months ago

Can you submit a flow that reproduces this issue?

sserranoverbio commented 5 months ago

Hi Steve, I solved the issue changing some lines in your code:

In the oneditprepare function I changed when you set fni and dniType

String(i).padStart(2, '0');

by String(i).padStart(3, '0');

In the onsave Function, I changed when you set id variable:

id = id.slice(0, -2);

by id = id.slice(0, -3);

With these changes, I can create until 999 filed inside of a group.

I hope you can review this and help to you for you code.

It's an amazing tool for people like me, newbie in this solution.

regards,

Sergio