Command: StatusBar

Previous  Next |  Direct link to this topic

Go to list of all Commands

Syntax: Statusbar(<message>|<type>);

 

Show a status message (lower left corner)

You have the option to decide the type of the status bar:

Type

Description

E

An error message (Red)

W

A warning message (Blue)

S

A Success message (Green)

N

A clear message (Will remove any currently shown message)

TIP: You can use dynamic data from the current window in the value to set using $[$item.column.type].

TIP: You can make the value to set come from an SQL-sentence if you start it with SQL:<SQL-statement>.

TIP: You can make the value to set come from an SQL-sentence if you start it with SQL_INVARIANT:<SQL-statement>. SQL invariant is used to ensure that decimal numbers are returned in the correct format depending on your system

Sample1: Statusbar(My error|E) will show an error message (Red).

Sample2: Statusbar(Customer $[$5.0.0] have an error|W) will show a warning message where $[$5.0.0] is the value of item 5 (Blue).

Sample3: Statusbar(SQL:SELECT ItemCode FROM OITM WHERE CardCode = $[$5.0.0]|W) will show a warning message with the result of the SQL as the value (Blue).

 


Similar/Related Commands:
- MessageBox
- Prompt