Any iFix Gurus out there?

James42005

Member
Join Date
Dec 2018
Location
Waterloo, IA
Posts
35
I have hit a wall on a request I received for a change to iFix. Operations want security added to a button which resets a counter. The way it works currently is there is an object with script, when clicked on, a confirmation popup is opened. If selected yes the scripts writes a command to the PLC tag to reset the counter. I need to add security over the button based on user group currently logged in. I have the user groups set up and functioning well, I use the security to limit changes to datalinks all the time but I am having trouble figuring out how to lock out the script from running based on security level. I am just learning VB so, any tips?
 
Hmm.. I thought I just posted this but has not shown up oh well...

Dim Result As Integer
Dim UserID As String
Dim UserName As String
Dim GroupName As String
Dim UserInfo As String
System.FixGetUserInfo UserID, UserName, GroupName
Use FixGetUser system function to access to logged on user.
 
So... I am an idiot. Or maybe iFix sucks. Maybe a little bit of both. So I was able to do it with tag based security. I am not sure why I couldn't get it to work yesterday. I was really proud of myself at first because I thought I wrote really fancy script to do what I wanted, but it turned out it was doing nothing. Haha, oh well, a win is a win. Thanks for your help.
 

Similar Topics

  • Locked
I have hit a wall on a request I received for a change to iFix. Operations want security added to a button which resets a counter. The way it...
Replies
2
Views
3,181
Hi I have a ifix 5.5 application where the operator opens a valve by clicking on a screen object. I can trace from object to data base that it is...
Replies
2
Views
44
Dear all, I am beginer in ifix hmi programming. I have 2 ifix 6.0 pc with license FiX and client.. Can some one tell me how to configure sample...
Replies
0
Views
161
Hello, I have to deal with iFix again and am looking at the most efficient way to create alarms to display in iFix, i.e. not creating an...
Replies
0
Views
168
Hi everyone. I'm beginner with Ifix. I'm appreciate if you share me some document to understand how to play with Ifix 6.0. By the way, I have some...
Replies
11
Views
732
Back
Top Bottom