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 Attached
:
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
Answers
Search CU1 for the solution.
GetSystemIndicator
There is a Text var in it.
Change this var to change the indicator.
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
Dotnet Variables in codeunit must be global.