NAS to show a message/open a form

Alisha
Member Posts: 217
Hi,
I would like to use a NAS to show a message / open a form to certain users when there are records on a particular table (errors coming from an automatic import). As NAS does not support GUID, anyone knows how to do this?
I would like to use a NAS to show a message / open a form to certain users when there are records on a particular table (errors coming from an automatic import). As NAS does not support GUID, anyone knows how to do this?
0
Comments
-
Very interesting questions....!
Yes that's possible, only don't use a nas for it!
Create a process in the sessions background.
I created a singleinstance codeunit which i call from codeunit 1 from the function loginstart, so when the user logs in...
The codunit has a withevents navision Timer automation variable 'nttimer'
After the creation of the nttimer in the onrun section i just have to set up the interval
On the timer trigger i just check the specific table and show the screen if necessary....
Code :--OnRun() CREATE(ntTimer); ntTimer.Interval := 1000; ntTimer.Enabled := TRUE; --ntTimer::Timer(Milliseconds : Integer) IF recTemp.FIND('-') THEN BEGIN MESSAGE('found record %1', recTemp.Desc); recTemp.DELETE; END;
i didn't show a form but that's not going to be a problem i guess.
In this way you can create myabe some sort of notification system....
Maybe an interesting idea..... :-kDynamics Rules!0 -
Just as an additional FYI. You never want to have NAS work with any process that requires user input. As soon as NAS encounters any Navision code with a dialog variable, or a confirm/message statement NAS will throw an error in the event log and probably shutdown.0
-
Works perfectly! Thanks!!0
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
- 320 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