I used the codes below to pass the interviewer codes from a Menu program to main application. It works alright but my issue is when the data
is send to the Supervisor via Bluetooth and the Supervisor logins using the Menu Program to review the data, the Interviewer code changes from the original interviewer to the Supervisor code in the main data. I did used demode()=add then.... it still not working. Please how do I fix this so the original interviewer code is kept.
Is it also a way to let Supervisor not able to change data collected from the interviewer ... simply review and send. I tried "Lock=modify" in my pff file and it won't allow the Supervisor to step through the data. Thanks always Cspro
Code: Select all
preproc
//if demode() = add then....
if sysparm("INTERVIEWER_CODE") <> " " then
ENUM_CODE = tonumber(sysparm("INTERVIEWER_CODE"));
// protect field so the interviewer cannot modify it
set attributes ($) protect;
endif;