LabVIEW Idea Exchange

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

Add property to array controls in order to define a max / min size the user can edit

The situation:

There is a user interface that provides the user with an array control.

The array control provides the user only one or a limited number of elements.

The user must use the scroll bars or the index control to select the correct element that he wants to modify.

 

The problem:

The user can scroll to a position beyond the last available array element and enter data. This increases the size of the array as expected, but not as desired in the given situation.

After the user finishes entering, the program must check the size of the array and reduce it again.

The proposed solution:

There should be a "max. array index" property of the array control. It should prevent the user from scrolling to a position beyond this maximum element index and/or editing such a position. It should also prevent adding elements via the right-click menu when the maximum number of elements has already been reached.

 

Extensions:

There could also be a minimum property that prevents the user from deleting array elements so that the total number falls below the minimum.

 

Notes:
The proposed solution should only affect the user's input capabilities. It should not change the size of the array if it was specified programmatically.

4 Comments
Andi_S
Member

Andi_S_0-1723194445560.png

 

Christina_R
Active Participant
Status changed to: Duplicate

Duplicate of https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Fixed-Size-For-Array-Control/idi-p/1221936


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

@Christina

 

There's a difference between a fixed size and a given min and max number of elements. It's only the same if min and max are the same value.

 

This idea allows adding\deleting elements (if min and max size allow it), the fixed size disables that completely.

 

IMO, The ideas are closely related, but not duplicate.

Andi_S
Member

The knob image posted accidentally to this idea.
@Christina - if you can, please erase the comment with the knob.