Laplace Posted February 21, 2007 Report Share Posted February 21, 2007 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. Quote Link to comment
Ton Plomp Posted February 21, 2007 Report Share Posted February 21, 2007 Pleas add your picture with LAVA and not external, see this 'bug' thread Ton Quote Link to comment
Yair Posted February 21, 2007 Report Share Posted February 21, 2007 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. Quote Link to comment
Laplace Posted February 27, 2007 Author Report Share Posted February 27, 2007 Did it, and it worked, thanks yen Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.