LabVIEW Idea Exchange

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

Add a "sort" menu item for property nodes

Status: Declined
Would pose upgrade issues for existing code because it would change execution order of nodes.

I often use the "hunt and peck" strategy for picking out properties for a property node.  When I'm doing a lot of these, they can end up in a random order, and organizing them is a giant pain.  It would be much nicer to have a "sort" menu option as shown below that would sort the properties by the order they show up when choosing them.  (so mostly alphabetical, but properties for more specific types would be at the bottom)

 

idea exchange sort property node.png

Greg Stoll
LabVIEW R&D
8 Comments
dthor
Active Participant

Correct me if I'm wrong, but I believe that the order matters: the properties are executed in decending order (top first, bottom last). Thus this Idea would alter the execution order and possibly break your code.

gregstoll
NI Employee (retired)

Ah - you're absolutely right!  Yeah, this would be a bad idea, then.  Can a moderator reject it, please?

Greg Stoll
LabVIEW R&D
Mr.Mike
NI Employee (retired)

I actually think it's a good idea, but maybe it should come with a (disableable) warning that it can break your code.  Look at the other things on the menu.  Add Element / Remove Element can break your code.  Ignore Errors inside Node can break your code.  This is a much more subtle way of breaking your code, which is why I think it should come with a warning.

-- Mike
tst
Knight of NI Knight of NI
Knight of NI

I don't think that this should be done automatically, but there's no reason why there shouldn't be something in the GUI which allows us to sort this, even something as simple as "move up" and "move down".

 

This suggestion is similar enough to this one (and in fact, expanding that suggestion to the property node has been mentioned in the comments there) that I think it can be considered a duplicate.


___________________
Try to take over the world!
G-Money
NI Employee (retired)
Status changed to: Declined
Would pose upgrade issues for existing code because it would change execution order of nodes.
DJed
NI Employee (retired)

G-Money, I think you misunderstood the idea. He's not saying force all property nodes to be in sorted order. He said, provide edit-time ability for a user to sort if he/she wants to. Just like a case-structure cases have a nice fancy editor that let you rearrange cases, it would be nice if property nodes had a way for a Labview programmer to organize his get/set property nodes. Typically property node get/sets can be in any order so this is a common desire.

 

Adding edit-time configuration options pose no upgrade issues

dthor
Active Participant

It's true, a sort at edit time would not pose any upgrade issues. Sorting alphabetically, as the original Idea posed, would probalby not be a good idea, but being able to easily change the display order, and thus the execution order, would be a godsend.

 

As tst said, the core behind this idea is already suggested in Jack's Idea, and the applying it to propery nodes was mentioend in the comments.

eaguero
NI Employee (retired)

This is a great idea and the order matters so it is more than helpful, I think it is necessary