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.
0
Answers
C:\....\Microsoft.Dynamics.Nav.Client.exe -settings:C:\....\xxxxx.CONFIG DynamicsNAV://127.0.0.1:7046/SomeService/SomeCompany/RunPage?Page=79
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
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.
It's not a pretty solution, but it will work.
Example Code:
As you said, it is working.
For now it will do. Maybe later I find a more pretty solution.
Talent Business Solutions
Technical Expert of Microsoft Dynamics 365 Business Central
Website | Mail | LinkedIn
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.