hi all,
Great day to every one.
I like to know whether it is possible to restrict WORKDATE for a particular user. can any one help me how to do this?
For Example
I am having Five users,
In that only two users will be able to change the WORKDATE and the remaining three can not.
0
Comments
Create a singleinstance codeunit. This codeunit you have to launch in Codeunit 1 function LogInStart().
globals : OnRun() of your singleinstance codeunit:
autTimer::Timer(Milliseconds : Integer)
PS : you need to create field recUserSetup."User May Change WORKDATE".
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
For example:
http://www.mbsonline.org/forum/topic.as ... kdate,user
I will work on it and update you.
For Another developer with same problem.
http://www.mibuso.com/forum/viewtopic.php?p=52893#52893
==================================
Richard
you goal is to not let certain employees post transactions with a different date then "Today" correct.
So, you need to change the user setup allow to-from posting date to always be today. For this I would create a processing only report that updates the user setup table 91 to have the current date, run the report in the job scheduler or NAS and you are done. I would run this each evening so when the employee came in in the morning they would be ready to go. You filter it to run just on the restricted employees. You could add a field to the user setup table, a check box that you would check if they were restricted.
dt := TODAY + 1 // today plus 1 if you run it at night for the next day.
"User Setup" OnAfterGetRecord()
"Allow Posting From" := dt;
"Allow Posting To" := dt;
Modify;
Thanks for providing the its working fine.
Regards,
Aniruddha
Aniruddha
Rakesh Raul
Consultant (Sr.)
Cognatio Systems LLC
T: +971 4 359 0202 EXT : 404
F: +971 4 359 0205
M: +971 52 908 9987
www.cognatiosystems.com
Skype ID : RaulRakesh
In case of FDB I am using Jog Queue, but I am facing some problem with Job QUEUE.
Rakesh Raul
Consultant (Sr.)
Cognatio Systems LLC
T: +971 4 359 0202 EXT : 404
F: +971 4 359 0205
M: +971 52 908 9987
www.cognatiosystems.com
Skype ID : RaulRakesh
I had gone through you Code, but I am not able to configure 2nd line of below code ! Would you help me out to do this.
recUserSetup Record - I had define the field in User Setup table as well as Singleinstance codeunit as global variable.
autTimer - where I need to configure autTimer
Code: Select all
recUserSetup Record "User Setup"
autTimer Automation 'Navision Timer 1.0'.Timer (property WithEvents=Yes)
regds
Rupesh Verma
Floor & Furnishing (I) Pvt. Ltd.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Thanks for giving us the solutions, you solutions is working fine.
regds
Rupesh Verma
Kortek Electronics
Floor & Furnishing (I) Pvt. Ltd.
Regards,
Faisal Bukhari
Thanks for giving me the solutions to restrict/allowed the Users to change the Work Date.
Rupesh Verma
Floor & Furnishing (I) Pvt. Ltd.
Dear Kriki
Thanks for giving me the solutions to restrict/allowed the Users to change the Work Date.
_________________
Rupesh Verma
Kortek Electronics (I) Pvt. Ltd.
Floor & Furnishing (I) Pvt. Ltd.
I found this thread interesting.
How can we do that in Navision 2013 ?
I try to implement this solution in Nav 2013, but soon find out that Navision Timer 1.0 no longer supported.
Any updates ?
Thanks
Nav, T-SQL.
I can't find anything related to OnGlobalModify|OnGlobalModify|OnGlobalInsert functions in codeunit 1?
any clue ?
thanks