LabVIEW Idea Exchange

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

The 'key' input of the IPE's Map Get / Replace Value node should be required

Status: Declined

Filed as bug 1105765.

The key input of the Map Get / Replace Value node of an In Place Element structure is not a required input. This can lead to bugs, where a developer may have forgotten to wire the key. All other Map primitives require the key input.

map_node_key_input.PNG

The idea is to simply make the key a required input.

 

(The map isn't a required input either, but has a documented default. It should probably be required too though.)

3 Comments
AristosQueue (NI)
NI Employee (retired)

Filed as bug 1105765.

Christina_R
Active Participant
Status changed to: Declined

Filed as bug 1105765.


Christina Rogers
Principal Product Owner, LabVIEW R&D
wiebe@CARYA
Knight of NI

How about the default value?

 

https://forums.ni.com/t5/LabVIEW/In-place-Map-Access-returns-previous-Class-data-not-Class/m-p/40823...

 

Not sure if it should be required, but as it seems to be undefined, this should be documented somewhere.

 

Or is the returned undefined value a bug, and should it return a LabVIEW default (e.g. 0's and empty, like a default tunnel)?