Archive for the ‘Uncategorized’ Category

Manage System Indicator

Monday, January 10th, 2011

Just a little tip that you probably are already aware of:

you can manage the system indicator text and style of dynamics nav 2009 R2 like this (code in Codeunit 1)

Function GetSystemIndicator

IF CompanyInformation.GET THEN
  CompanyInformation.GetSystemIndicator(Text,Style);
//-@MM 10.01.11
Text := 'Kratos Rocks!';
EVALUATE(TimeAsInteger,FORMAT(TIME));
IF TimeAsInteger MOD 2 = 0 THEN
  Style := Style::Accent1
ELSE
  Style := Style::Standard;
//+@MM 10.01.11