Any iFix Gurus out there?

Status
Not open for further replies.

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?
 
This is how you get the security info what you do with it is up to you

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
so you then have the userid, name & group.
& UserID is the id info, & UserName etc. are the strings.
This was from some time ago but I assume things have not changed a great deal.
 
This is how you get the security info what you do with it is up to you

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
so you then have the userid, name & group.
& UserID is the id info, & UserName etc. are the strings.
This was from some time ago but I assume things have not changed a great deal.
Perfect. Thank you.
 
Status
Not open for further replies.

Similar Topics

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
3
Views
1,892
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
113
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
138
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
627
Hi everyone. Ifix scada is new for me. Please help help me to clarify is it possible to open Ifix scada runtime on dual monitor and how to do? Thanks
Replies
1
Views
411
Back
Top Bottom