HOW CAN I SET AND GET OPERATOR ID USING LOGIC?
Posted: April 28th, 2020, 10:31 am
hello CSPro Users community!
I wish to know how I can set up operator ID in my CSPro application and how to get back all IDs after running it.
From my research, the set and get operator id functions looks like these examples bellow;
1. SET OPERATOR ID FUNCTION
2. GET OPERATOR ID FUNCTION
I got the above examples from the CSPro user's guide version 7.2.1 (pages 412 and 388 respectively).
Please can someone tell me where I can set these in my application and make it work correctly?
I will also be happy if I can get some parameters explained in the logic above. Specifically I'm yet to understand what the following means:
i. LF_USER_ID = USER_ID;
ii. LOGINS_DICT,LF_USER_ID
iii. filewrite(pffFile,"OperatorID=%s",getoperatorid());
I look forward to receiving help pretty soon.
Thanks always guys!
I wish to know how I can set up operator ID in my CSPro application and how to get back all IDs after running it.
From my research, the set and get operator id functions looks like these examples bellow;
1. SET OPERATOR ID FUNCTION
Code: Select all
PROC USER_ID
LF_USER_ID = USER_ID;
if not loadcase(LOGINS_DICT,LF_USER_ID) then
errmsg("Invalid login.");
reenter;
endif;
setoperatorid(strip(LF_USER_NAME))
Code: Select all
// write out the operator ID for the PFF that we are going to
// launch so that the interviewer does not have to enter it again
filewrite(pffFile,"OperatorID=%s",getoperatorid());
Please can someone tell me where I can set these in my application and make it work correctly?
I will also be happy if I can get some parameters explained in the logic above. Specifically I'm yet to understand what the following means:
i. LF_USER_ID = USER_ID;
ii. LOGINS_DICT,LF_USER_ID
iii. filewrite(pffFile,"OperatorID=%s",getoperatorid());
I look forward to receiving help pretty soon.
Thanks always guys!