when user permissions are deleted from User permission set, automatically exit date i.e. today's should be displayed on the exit date field on that page.
Hi All,
I have added this code in user permission set but it is not working, can anyone suggest?
Users.RESET;
Users.SETRANGE(Users."User Name","User Name");
IF NOT Users.FINDFIRST THEN BEGIN
Users.GET(Users."User Name");
Users.INIT;
Users."Exit Date" := TODAY;
Users.INSERT;
END;
Answers
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I have added this code in user permission set but it is not working, can anyone suggest?
Users.RESET;
Users.SETRANGE(Users."User Name","User Name");
IF NOT Users.FINDFIRST THEN BEGIN
Users.GET(Users."User Name");
Users.INIT;
Users."Exit Date" := TODAY;
Users.INSERT;
END;