The following describes how to use the addstring option with statusmessage. The basic function of 'addstring' is to add a custom message to a listbox. The syntax is as follows:
statusmessage({"addstring":"This is a sample message!"});
Messages can be added at any time during the execution of the function, either inside or outside a given screen block. It is also possible to include variables in the addstring option, such as the example shown below:
var z_msgtitle = "Test Listbox";
statusmessage({"addstring":z_msgtitle});
In the following example, we will create a function that will invoke a statusmessage listbox on the Easy Access screeen.
The VA01 screen will now display as shown below:
