How to open client monitor automatically and small bug

pmusu
Member Posts: 55
Hi,
I am creating a script in a Navision codeunit (1) to open and run the Client Monitor.
The Client Monitor is opening correctly but it is not starting.
The following is what I have up till now.
Global Variable:
Code:
The client monitor screen open correctly. However the start button is not being 'pushed'.
Any ideas?
Thanks in advance
I am creating a script in a Navision codeunit (1) to open and run the Client Monitor.
The Client Monitor is opening correctly but it is not starting.
The following is what I have up till now.
Global Variable:
Name DataType Subtype Length wshShell Automation 'Windows Script Host Object Model'.WshShell
Code:
IF ISCLEAR(wshShell) THEN CREATE(wshShell); //Instantiate object wshShell.SendKeys('%{T}'); //Open tools menu wshShell.SendKeys('m'); //Open client monitor ///wshShell.SendKeys('ENTER'); wshShell.SendKeys('{ENTER}'); //Run code coverage.
The client monitor screen open correctly. However the start button is not being 'pushed'.
Any ideas?
Thanks in advance
0
Comments
-
Automatically starting client monitor for all users will cause severe performance problems.0
-
DenSter wrote:Automatically starting client monitor for all users will cause severe performance problems.
Thanks for the reply.
I understand your concern. However in this case it is a testing environment (before going live).
They are encountering some problems and require the client monitor so that they could pinpoint bottlenecks in the system.0 -
Belias wrote:maybe you need a sleep between "m" keypress and "enter" keypress...
remember that after filling 2GB of ClientMonitor, nav crashes
Thanks for informing me about the 2GB limit.
I have tried using the timer automation.
I am probably missing something extremely simple.
When I try to run the code I am getting the following error message:
Microsoft Business Solutions-Navision
Not an allowed option.
OK
I declared the following global variable:Name DataType Subtype Length Timerx Automation 'Navision Timer 1.0'.Timer
IF ISCLEAR(wshShell) THEN CREATE(wshShell); //Instantiate object IF ISCLEAR(Timerx) THEN CREATE(Timerx); Timerx.Interval(100); Timerx.Enabled(TRUE); wshShell.SendKeys('%{T}'); //Open tools menu wshShell.SendKeys('m'); //Open client monitor Timerx::Timer(Milliseconds : Integer) //Getting error wshShell.SendKeys('{ENTER}'); wshShell.SendKeys('{ENTER}'); //Run code coverage. //wshShell.SendKeys('{ENTER}'); //Run code coverage. //wshShell.SendKeys('{ENTER}'); //Run code coverage. ///wshShell.SendKeys('ENTER');
Thanks0 -
pmusu wrote:I understand your concern. However in this case it is a testing environment (before going live).
They are encountering some problems and require the client monitor so that they could pinpoint bottlenecks in the system.0 -
why do you need to open the CM for every person (CU1)?
Is it only for tests and you will see which source are executed for testing your application?
David is right, the CM will CAUSE a bottleneck ....
So, whats the reason why you will use it. Normally the CM will be used to find a bug or a codesnippes where a bug is presumedDo you make it right, it works too!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