LabVIEW Idea Exchange

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

Case structure: easier selection for structures with a large number of cases

Status: New

 

ctenders_1-1625657350438.png

 

6 Comments
crossrulz
Knight of NI

Right-click on the Case Structure and there is an option to "Show Case".  This will open a pop up similar to QuickDrop allowing you to choose the case you want.  It is there at least in 2019.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
ctenders
Member

Right-click on the Case Structure with option "Show Case" shows a similar view as a direct click on the selector label. If the number of cases is high, you have to scroll.

crossrulz
Knight of NI

Not quite.  It is similar to QuickDrop so you can type in the case you are looking for and it will filter the options for you.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
NickNZ
Member

I would like the case structure to handle items with a dot notation into a menu (and enums for that matter). I don't think this will conflict with the 10..20 range dot notation as this requires two dots. 

 

 

So could have an enum

0 Init.step1

1 Init.step2

2 Init.step3

3 Event.button1

4 Event.button2

5 Run

6 Stop

 

When selecting the enum items it can be configured to "parse items as submenu" rather than a list. 

 

And this can flow through to the case structure to enable handle dot notation as well. 

So enum above wired into the case structure turns into a submenu with 

init     > Step1

             Step2

             Step3

Event > button1

              button2

Run 

Stop

 

In use case above an auto-group function would be useful. 

So would have

808_ > 8080

            8081

             ...

            808F

807F

808_ > 8080

 

Question is how to auto break up the list - could be a bit tricky? 

 

If the enum has 

7 Init.Step4 defined later, it should also be grouped with the other "Init" steps. 

 

Can the code from here be leveraged?  - By grouping controls carefully (& some caveats) with the dot notation on FPGA it allows for a submenu. 

https://forums.ni.com/t5/LabVIEW/Group-FPGA-Controls-With-Dot-Naming/td-p/2767678?profile.language=e...

This post generated this idea which is the same problem in the FPGA space... grouping long lists to make them easier to use.

https://forums.ni.com/t5/LabVIEW-FPGA-Idea-Exchange/Better-FPGA-FP-Control-Selection/idi-p/3074718

 

AristosQueue (NI)
NI Employee (retired)

NickNZ: Can you turn your post into a new Idea entry? It's related-but-independent of this idea since even a dotted list could conceivably have long sections, and such a change would probably affect the enum ring itself.

NickNZ
Member