Options

Auto open page when starting RTC (CompanyOpen in codeunit 1)

elwin68elwin68 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.

Best Answer

Answers

  • Options
    kaspermoerchkaspermoerch Member Posts: 43
    Have you tried subscribing to various events in Codeunit 1 e.g. OnAfterCompanyOpen or OnAfterGetDefaultRoleCenter?
  • Options
    krikikriki Member, Moderator Posts: 9,090
    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!


  • Options
    elwin68elwin68 Member Posts: 153
    edited 2016-09-09
    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.
  • Options
    elwin68elwin68 Member Posts: 153
    Thanks.
    As you said, it is working.
    For now it will do. Maybe later I find a more pretty solution.
  • Options
    MaaaxMaaax Member Posts: 14
    And why not call your page on rolecenter ?
    Maxime JUND
    Talent Business Solutions
    Technical Expert of Microsoft Dynamics 365 Business Central
    Website | Mail | LinkedIn
  • Options
    elwin68elwin68 Member Posts: 153
    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.
Sign In or Register to comment.