LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Registercards - How to lock specific pages

Solved!
Go to solution

Hello, I've written a program using register cards. On different pages any user can do different things.

For production issues we now need to distinguish which user is allowed to use which features. A very smart solution could be to lock some pages.

e.g.:

- Standard user: is allowed to use page 1 .. 5, but not 6 and 7

- Super user : is allowed to use all pages

Is there a possibility to do that way? I only found the method to lock the whole register card.

Regards.

 

0 Kudos
Message 1 of 3
(121 Views)

Register cards? Do you mean a Tab Control?

 

I don't think you can enable or disable pages during runtime, or at least I haven't been able to find the right Property Node to do it.

 

But what I have done is hide the "Tabs" and use Radio Buttons to select the pages, then I can enable or disable the buttons as necessary.

 

 

-------------------------------------------------------------------
Unfortunately, most readers of this Forum, including some real Experts, have not mastered the skill of being able to read the code that Posters fail to post. If we cannot see "what you did wrong", we are unable to tell you how to fix it. (Bob Schor 28 August 2018)
0 Kudos
Message 2 of 3
(78 Views)
Solution
Accepted by topic author scr_rhe

You can get the array of page references and hide the page you want or change the 'Page Enabled State'.

HidePages

 

 

 

0 Kudos
Message 3 of 3
(74 Views)