Auto open page when starting RTC (CompanyOpen in codeunit 1)
elwin68
Member Posts: 153
We currently using multiple companies in NAV 5 and want to upgrade to NAV2016.
In the current classic client we can scan a barcode of a document and the scanned document is opened even if it is in another company. We use sendkey with CTRL+O to switch company and open the right document form in the function CompanyOpen in codeunit 1.
We want to do the same in the NAV2016 RTC. The solution with CTRL+O and CompanyOpen in codeunit 1 is almost working except for one thing. The order of showing pages when switching companies is not correct. First the right document page it is shown and after that the role center is shown and active.
We want to open the RTC role center first and after that open the right document page so it is active.
Is there a trigger later than CompanyOpen in codeunit 1 when the role center is already active?
Thanks in advance.
In the current classic client we can scan a barcode of a document and the scanned document is opened even if it is in another company. We use sendkey with CTRL+O to switch company and open the right document form in the function CompanyOpen in codeunit 1.
We want to do the same in the NAV2016 RTC. The solution with CTRL+O and CompanyOpen in codeunit 1 is almost working except for one thing. The order of showing pages when switching companies is not correct. First the right document page it is shown and after that the role center is shown and active.
We want to open the RTC role center first and after that open the right document page so it is active.
Is there a trigger later than CompanyOpen in codeunit 1 when the role center is already active?
Thanks in advance.
0
Best Answer
-
You could do something like this:
- Create a page with the PingPong Control Add-in.
- Open the PingPong page in CompanyOpen of Codeunit 1 (or use the event).
- The PingPong page the opens the page you actually wanted to open after a given delay.
It's not a pretty solution, but it will work.
Example Code:PingPong::AddInReady() CurrPage.PingPong.Ping(500); PingPong::Pong() PAGE.RUN(42); CurrPage.CLOSE;
5
Answers
-
Have you tried subscribing to various events in Codeunit 1 e.g. OnAfterCompanyOpen or OnAfterGetDefaultRoleCenter?0
-
Run the client with these parameters to open a certain object (works even with tables...)
C:\....\Microsoft.Dynamics.Nav.Client.exe -settings:C:\....\xxxxx.CONFIG DynamicsNAV://127.0.0.1:7046/SomeService/SomeCompany/RunPage?Page=79
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Thanks for your answers.
Kaspermoerch, I have tried tried these events. Unfortunally without any luck. OnAfterCompanyOpen does the same as code in CompanyOpen. OnAfterGetDefaultRoleCenter does not open the page.
Kriki, this is an option to look at. When NAV does not have a trigger I will do so.0 -
You could do something like this:
- Create a page with the PingPong Control Add-in.
- Open the PingPong page in CompanyOpen of Codeunit 1 (or use the event).
- The PingPong page the opens the page you actually wanted to open after a given delay.
It's not a pretty solution, but it will work.
Example Code:PingPong::AddInReady() CurrPage.PingPong.Ping(500); PingPong::Pong() PAGE.RUN(42); CurrPage.CLOSE;
5 -
Thanks.
As you said, it is working.
For now it will do. Maybe later I find a more pretty solution.1 -
How do you mean?
We are working with scanners and want to jump from one card page to another card page. This can be from one NAV company to another NAV company.
For example: An user opens his rol centre and uses his scanner to scan a put-away no. The corresponding put-away card page opens automatically. When finished the user scans a pick no. out of another NAV Company. Now a switch of NAV Company must occure (ctrl+o) automatically and the corresponding pick card page must open.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
