G Web Development Software

cancel
Showing results for 
Search instead for 
Did you mean: 

Build Cluster renaming elements

Solved!
Go to solution

In LabVIEW, if I bundle together several controls using the Bundle function and then pass on the resulting cluster to the native Flatten to JSON function, the JSON string I get contains the names of the controls I started with. Perfect!

If I perform the equivalent action in G Web Dev using Build Cluster, the names of the controls are replaced in the JSON string with Element 1, Element 2, etc.

This is not in the least helpful.

Is there any way to get the same behaviour in G Web Dev as in LabVIEW?

0 Kudos
Message 1 of 2
(1,192 Views)
Solution
Accepted by topic author Mihai

Hi Mihai,

 

You can use the "Cluster Properties" node which allows you to wire a cluster constant that has field names for the cluster items.

 

I think the example project that I posted here might be of help to you since you are working with JSON: Solved: Re: More new user questions - NI Community

Sujay Narayana
Principal Software Engineer
0 Kudos
Message 2 of 2
(1,156 Views)