LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

BUG: Project doesn't save Arrange By

I like to sort/Arrange my classes by type. Changing a class to Arrange by Type works, ofc, and i get a star on the Project. I use Save All, ctrl+shift+s, R-click to Save all on both project and class, but to no avail! When reopening the project it's back to Name sorting in the class! My Project is correct, but as you can't set "inherit from parent" to a class that's irrelevant!

LV2025Q3

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 1 of 8
(1,100 Views)

Do a simple "Save > Save" on the library, it should work. Yes, it is silly...

 

Similar issue:

https://forums.ni.com/t5/LabVIEW/Is-it-just-me-or-does-save-all-not-actually-save-all/td-p/4386328

 

Regards,

Raphaël.

0 Kudos
Message 2 of 8
(1,064 Views)

I also wanted to do that at one point, and I stumbled across this and gave up. Don't know why it's this way, but it is a documented design decision.

 

Spoiler
FireFistRedhawk_0-1790597549699.png

 

https://www.ni.com/docs/en-US/bundle/labview/page/sorting-items-in-a-project.html?srsltid=AU7gw4WMj1...

Redhawk

Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.

Message 3 of 8
(1,045 Views)

@raphschru wrote:

Do a simple "Save > Save" on the library, it should work. Yes, it is silly...

 

Similar issue:

https://forums.ni.com/t5/LabVIEW/Is-it-just-me-or-does-save-all-not-actually-save-all/td-p/4386328

 

Regards,

Raphaël.


It's a class, but that's basically a glorified library. Didn't help.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 8
(1,044 Views)

@Yamaeda wrote:

@raphschru wrote:

Do a simple "Save > Save" on the library, it should work. Yes, it is silly...

 

Similar issue:

https://forums.ni.com/t5/LabVIEW/Is-it-just-me-or-does-save-all-not-actually-save-all/td-p/4386328

 

Regards,

Raphaël.


It's a class, but that's basically a glorified library. Didn't help.


Ah my bad, it seems my reproduction test case was too simple.

Message 5 of 8
(1,031 Views)

I have also been annoyed by this. But I had to test if this was still the case, and it still is in LV24Q3 at least.

 

1. Arrange class by Type, save class and project:

thols_0-1790661732939.png

 

2. Reopen. "Arrange by" is reset to "Name":

thols_1-1790661798818.png

 

What you can do is to create a virtual folder for each type, that sort by name:

thols_2-1790662000084.png

 

But I guess there is a better way? Anyone?

 

It's kind of pointless to have an option to rearrange the sorting if the sorting is not retained when reopening.

Hmm, I guess you could build a project provider plugin that sorts based on a property saved to the class-file. Homework for you 🙂

 

Certified LabVIEW Architect
Message 6 of 8
(970 Views)

So, looking in the .lvclass file; changing sorting adds/changes a NI.SortType property at both class and folder level, but it ignores the top level. That is; If i open the .lvclass and save it.

Changing it in the project and saving does nothing. I can force it by r-clicking the class and do save->save. Ofc it still ignores it, but the property is updated atleast.

I tried adding the Sort-property directly under the Item in the .lvproj but it had no effect.

 

Changing the sorting on My Computer level saves in the project file, but it ignores it. It ignores it on class level also.

It changes the exact same key in LV2019, but it reacts to it!

 

Yamaeda_0-1790671562763.png

Yamaeda_1-1790672478089.png

 

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 7 of 8
(948 Views)

@Yamaeda wrote:

So, looking in the .lvclass file; changing sorting adds/changes a NI.SortType property at both class and folder level, but it ignores the top level. That is; If i open the .lvclass and save it.

Changing it in the project and saving does nothing. I can force it by r-clicking the class and do save->save. Ofc it still ignores it, but the property is updated atleast.

I tried adding the Sort-property directly under the Item in the .lvproj but it had no effect.

 

Changing the sorting on My Computer level saves in the project file, but it ignores it.

It changes the exact same key in LV2019, but it reacts to it!

 

Yamaeda_0-1790671562763.png

Yamaeda_1-1790672478089.png

 

 


Then you are right, this is a bug. Prove us wrong 🙂

Certified LabVIEW Architect
Message 8 of 8
(941 Views)