I have read about it in the CSPro manual and have even seen an example about it as below but I don't know where to set it up so I have attached my application here so that I can receive guide on it directly
PROC USER_NAME
if not loadcase(USER_PERMISSIONS_DICT,USER_NAME) then
errmsg("The entered user name is not in the database of users.");
reenter;
elseif USER_ALLOWED_DEVICE <> getdeviceid() then
errmsg("You, %s, do not have permission to use device %s.",strip(USER_NAME),getdeviceid());
reenter;
endif;
The easiest way to do that is to add an alpha item to your dictionary to store the device id and assign it to the value of the GetDeviceID() function in your logic. No need to put the item on a form. Just add it to the dictionary and then somewhere in your logic add:
DEVICE_ID = GetDeviceId();
You could add that for example to the preproc of the questionnaire.
Please Josh I'm a statistician but not a good programmer...
I've attached an application to this post initially, can you guide me on how to assig the logic to the dictionary item using the attached application?
Or can you at least explain more from you previous response so that I can get it better?
Thanks!