Restrict change of WORKDATE on RTC Client

StLi
Member Posts: 83
Hi,
I'm looking for a way to prohibit certain users from changing the Workdate on their RTC client.
In classic there was a solution by implementing a COM-Automation NAVTimer and check the workdate every few seconds on said clients.
I also found this article that shows how to realise a simular timer-based event for a NASService: http://www.archerpoint.com/blog/Posts/t ... r-nav-2013
But when i try to implement that idea into the LogInManagement-codeunit (former part of CU 1) i get a crash on startup:
So, I'm looking for other solutions. Setting the GL-Setup to only allow the current date for posting is too much trouble to do every day. Also: some users should be able to change the workdate so... it would be prefered to find an automized way.
Thanks & best regards
StLi
I'm looking for a way to prohibit certain users from changing the Workdate on their RTC client.
In classic there was a solution by implementing a COM-Automation NAVTimer and check the workdate every few seconds on said clients.
I also found this article that shows how to realise a simular timer-based event for a NASService: http://www.archerpoint.com/blog/Posts/t ... r-nav-2013
But when i try to implement that idea into the LogInManagement-codeunit (former part of CU 1) i get a crash on startup:
The server stopped the session (ID: 4) because of a stop session request.
So, I'm looking for other solutions. Setting the GL-Setup to only allow the current date for posting is too much trouble to do every day. Also: some users should be able to change the workdate so... it would be prefered to find an automized way.
Thanks & best regards
StLi
0
Comments
-
Hi StLi,
did you solve the issue for your customer?
Ernsthttp://www.vssolutions NAV-Outlook synchronisation re-invented.0 -
No, i didn't find a solution yet.
(just came back here to see if i got any usefull response what-so-ever)0 -
Hi StLi,
sometimes you can look for the 100% perfect solution, but you will not find it, you can also go for an almost perfect solution.
It dep[ends on how eager your customer is to have this resolved.
I can imagine that users will only change the workdate in a limited number of areas in NAV, like posting, of creating Orders.
In that case, you might consider to create a field on the user setup: "Is allowed to change Workdate".
And in codeunit 11, you program:
USERSETUP.GET(UserID);
IF NOT UserSetp."Is Allowed To Change Workdate" THEN
IF WORKDATE <> TODAY THEN
ERROR(TextNotAllowed);
Hope that helpshttp://www.vssolutions NAV-Outlook synchronisation re-invented.1 -
Hi,
TY for your input. I Think I'll do something simular. The problem is that i don't know where the customer actually needs this check. And the code already exists for years and noone actually knows the original motivation of implementation.
CU 11 will cover Purchase and Sales related posting, right? anything else?
Thanks,
StLi0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 322 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions