LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
McQuillan

Make sets and maps heterogeneous using just sibling classes

Status: Declined

Moved to CAR database: CAR 738357

When working with Maps and Sets with objects you have to specify the parent object or otherwise, you end up with broken wires - unlike arrays. Arrays will coerce the child objects to the parent, it would be helpful if maps and sets did likewise.

 Sets and Maps Objects.png

I have attached the project that you can use as a workbench.

9 Comments
AristosQueue (NI)
NI Employee (retired)

Known bug. Fix already in work, hope to have it out soonish (I don't make the call about patches vs waiting for the SP1, but it'll be in one of those). In the meantime, you can add a To More Generic node to manually add the cast. To More Generic is a no-op at runtime, so it doesn't add any overhead.

 

Sorry for the inconvenience.

McQuillan
Active Participant

Good to know, Cheers AQ.

Just FYI, I have submitted another bug report to AE in the UK (SR: 7773973). The image below summarises the bug:Maps Bug.png

 

McQuillan
Active Participant

Workaround to the bug mentioned in the previous post.Workaround to the bug mentioned in the previous post.

 

AristosQueue (NI)
NI Employee (retired)

Thanks for the flag. We'll get that fixed.

Darren
Proven Zealot
Status changed to: Declined

Moved to CAR database: CAR 738357

TomOrr0W
Member

NI appears to have fixed this in the LV2019 f1 patch.  See https://www.ni.com/en/support/documentation/supplemental/19/labview-2019-patch-details.html

It looks like there is no (obvious) offline way to get the f1 and f2 patches, but they are available through NIPM.

wiebe@CARYA
Knight of NI

>NI appears to have fixed this in the LV2019 f1 patch. 

 

CAR 7773973, CAR 738357 or both? (just for the record)

TomOrr0W
Member

CAR 738357 is in the list.  There is also a CAR 738428 that likely applies to SR 7773973.

In any case, I copied the code that demonstrated the SR7773973 issue into LabVIEW 2019 f2, and it appears to work now.  See the screenshot below (I don't have the code capture tool installed, and the NI forums seem to strip snippets down to simple pictures anyways).

Maps with Array of Values LV2019 f2.png

wiebe@CARYA
Knight of NI

@TomOrr0W:

I'd kudo your post, but that's disabled since the idea is closed.