Display a Temporary Message in a Form

Technologies > User Interface Add-Ins > Parts for Forms > Display Temporary Message

There are cases when the application needs to briefly display a message to the user.

For instance, when saving the form is done through custom code (rather than by calling the standard save action), then the standard message "Record was successfully saved" needs to be also displayed by the custom code.

Example:

To display a temporary message in the top row of the form, define the message in the AXVW.

<message name="messageDefaultDuration" translatable="true"> This message has the default duration for display</message>

In javascript, call the form's displayTemporaryMessage (message, duration) method.

abExFormPanelTempMessage_form_onDisplayMessage: function(){
this.abExFormPanelTempMessage_form.displayTemporaryMessage(getMessage("messageDefaultDuration"));
}

Additionally, the duration of the display can be set, in milliseconds.

abExFormPanelTempMessage_form_onDisplayMessageFive: function(){
this.abExFormPanelTempMessage_form.displayTemporaryMessage(getMessage("messageFiveDuration"), 5000);
}

Example View: http://localhost:8080/archibus/ab-ex-form-panel-temp-message.axvw

See displayTemporaryMessage(message, duration) method reference .