Jump to content

Password protect editing


Laplace

Recommended Posts

Hei

I`m making a surveilance system for a gas pipe. In adition to reading and presenting data, I also want to set alarm values in the program. The thing is that I only want administrators to be able to edit this, but non-administrators should be able to read it. 

I therefore need a login function which only effects the edit rights for the VI page with the alarms

.

In short:I need to seperate read only from editing, using a login function, anyone that can help me?

The page where I want to have the login option for editing the alarm limits. The rest of the pages only presents data in the form of graphs.

post-7620-1171983173.jpg?width=400

Link to comment

Since you want to change all the control in the page, the easiest thing to do is to create a property node for the tab control, get its Pages[] property, index out the reference to your page, get its Controls[] property and set the Disabled property of all the controls in a for loop to 0, 1 or 2 depending on what you want. For the indicators, it should not matter whether this property is set or not.

Another option is to set the Page Enabled State property of the state, but if it's disabled you won't be able to access it at all through the tabs.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.