error function

The error function displays a message with an error icon. This function is part of the idsadmin class, which provides a library of basic functions for plug-ins for the HCL OpenAdmin Tool (OAT) for Informix®.

Syntax

error($msg="")
Variable Purpose
msg The error message.

Usage

The idsadmin class includes functions that display messages. The error function is appropriate for error messages because the message is displayed with an error icon.

Example

This example displays the message that the save action failed.

$this->idsadmin->error("Save failed: ");

This example uses the language function so that the message can be localized.

$this->idsadmin->error($this->idsadmin->lang("save_failed"));

Here is the item in the language file for the module from the language file in English.

<save_failed><![CDATA[Save failed: ]]></save_failed>

Copyright© 2018 HCL Technologies Limited