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®.


Variable Purpose
msg The error message.


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.


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.


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