Add Location on Navision 2016 Taskbar

omyvadiyaomyvadiya Member Posts: 124
Hi,
Any idea how a location code can be added on User's login in the Navision Taskbar where company name, Day & user id is displayed
Screenshot Attachedtqbxgz60ltdj.png
:

Answers

  • TallyHoTallyHo Member Posts: 417
    Why add it there? You can add it to the information that is shown in the right corner (above).
    Search CU1 for the solution.
  • TallyHoTallyHo Member Posts: 417
    So, in CU1 there is a function
    GetSystemIndicator

    There is a Text var in it.
    Change this var to change the indicator.
  • da_nealda_neal Member Posts: 76
    edited 2019-06-11
    Create SingleInstance Codeunit

    Globals variable
    StatusStrip: DotNet "'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Windows.Forms.StatusStrip" RUNONCLIENT;

    Application : DotNet "'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Windows.Forms.Application" RUNONCLIENT;

    ToolStripLabel : DotNet "'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Windows.Forms.ToolStripLabel" RUNONCLIENT;

    OnRun
    StatusStrip := Application.OpenForms.Item(0).Controls.Find('{7C55250B-A31B-4ef4-8E4A-FA677A66B227}',TRUE).GetValue(0); //Get StatusStrip of NAV Windows Client
    ToolStripLabel := ToolStripLabel.ToolStripLabel('Mibuso!'); //New ToolStripLabel
    StatusStrip.Items.Add(ToolStripLabel); //Add ToolStripLabel to StatusStrip






  • da_nealda_neal Member Posts: 76
    Codeunit which you create must be SingleInstance=Yes.
    Dotnet Variables in codeunit must be global.

Sign In or Register to comment.