public interface MessageContainer
MessageContainer represents any element (a Control or Page) that supports the addition of error and
 warning messages.| Modifier and Type | Method and Description | 
|---|---|
| void | addErrorMessage(int messageNo)Deprecated. 
 From V5.0 use  addErrorMessageText(Text)instead | 
| void | addErrorMessage(int messageNo,
               java.lang.String[] replaceParameters)Deprecated. 
 From V5.0 use  addErrorMessageText(Text, String[])instead | 
| void | addErrorMessage(int messageNo,
               java.lang.String[] replaceParameters,
               boolean stopProcessing)Deprecated. 
 From V5.0 use  addErrorMessageText(Text, String[], boolean)instead | 
| void | addErrorMessage(java.lang.String message)Adds an error message that will be displayed to the user. | 
| void | addErrorMessage(java.lang.String message,
               boolean stopProcessing)Adds an error message that will be displayed to the user. | 
| void | addErrorMessageText(Text text)Adds an error message that will be displayed to the user, sourced from an existing text. | 
| void | addErrorMessageText(Text text,
                   java.lang.String[] replaceParameters)Adds an error message that will be displayed to the user, sourced from an existing text. | 
| void | addErrorMessageText(Text text,
                   java.lang.String[] replaceParameters,
                   boolean stopProcessing)Adds an error message that will be displayed to the user, sourced from an existing text. | 
| void | addInfoMessage(java.lang.String message)Adds an information message that will be displayed to the user. | 
| void | addInfoMessage(java.lang.String message,
              boolean stopProcessing)Adds an information message that will be displayed to the user. | 
| void | addInfoMessageText(Text text)Adds an info message that will be displayed to the user, sourced from an existing text. | 
| void | addInfoMessageText(Text text,
                  java.lang.String[] replaceParameters)Adds an info message that will be displayed to the user, sourced from an existing text. | 
| void | addInfoMessageText(Text text,
                  java.lang.String[] replaceParameters,
                  boolean stopProcessing)Adds an info message that will be displayed to the user, sourced from an existing text. | 
| void | addWarningMessage(int messageNo)Deprecated. 
 From V5.0 use  addWarningMessageText(Text)instead | 
| void | addWarningMessage(int messageNo,
                 java.lang.String[] replaceParameters)Deprecated. 
 From V5.0 use  addWarningMessageText(Text, String[])instead | 
| void | addWarningMessage(int messageNo,
                 java.lang.String[] replaceParameters,
                 boolean stopProcessing)Deprecated. 
 From V5.0 use  addWarningMessageText(Text, String[], boolean)instead | 
| void | addWarningMessage(java.lang.String message)Adds a warning message that will be displayed to the user
 Messages are removed automatically by the system once they have been displayed to the user. | 
| void | addWarningMessage(java.lang.String message,
                 boolean stopProcessing)Adds a warning message that will be displayed to the user. | 
| void | addWarningMessageText(Text text)Adds a warning message that will be displayed to the user, sourced from an existing text. | 
| void | addWarningMessageText(Text text,
                     java.lang.String[] replaceParameters)Adds a warning message that will be displayed to the user, sourced from an existing text. | 
| void | addWarningMessageText(Text text,
                     java.lang.String[] replaceParameters,
                     boolean stopProcessing)Adds a warning message that will be displayed to the user, sourced from an existing text. | 
| boolean | existErrorMessages()Returns  trueif undisplayed error messages exist for this element, otherwise returnsfalse. | 
| boolean | existInfoMessages()Returns  trueif undisplayed info messages exist for this element, otherwise returnsfalse. | 
| boolean | existMessages()Returns  trueif undisplayed info, warning or error messages exist for this element, otherwise returnsfalse. | 
| boolean | existWarningMessages()Returns  trueif undisplayed warning messages exist for this element, otherwise returnsfalse. | 
void addErrorMessage(java.lang.String message)
 This method is equivalent to addErrorMessage(message, true).
 
All processing for the current event is stopped immediately and the page is redisplayed to the user so the error can be corrected.
Messages can be displayed either locally to the message owner (a control or page) or at another location on the same page represented by a Message Control. For further information on the location and styling of messages, please see the online documentation available from the Help menu, search on message options, then follow the link to Message Options For Controls.
Javascript example:
 event.owner.addErrorMessage("Please supply a valid reference code");
 message - the message to be addedaddErrorMessage(String, boolean), 
existErrorMessages()void addErrorMessage(java.lang.String message,
                     boolean stopProcessing)
 When stopProcessing is true, all processing for the current event is stopped immediately and the page
 is redisplayed to the user so the error can be corrected. When stopProcessing is false, processing
 continues normally, except that the user is prevented from navigating forwards to another page using a
 Next Page Button Control or the next page button within a Page Navigation Panel Control. Note that the same
 restriction does not apply when navigating to another page using other methods e.g. the WebForm.gotoPage(Page) method.  
 
 Set stopProcessing to false when there is a requirement to display multiple error messages on a page.
 EventContext.stopExecution() can then be used at a later point to stop processing and display the messages to the user.
 
Messages can be displayed either locally to the message owner (a control or page) or at another location on the same page represented by a Message Control. For further information on the location and styling of messages, please see the online documentation available from the Help menu, search on message options, then follow the link to Message Options For Controls.
Javascript example:
 event.owner.addErrorMessage("Please supply a valid reference code", false);
 message - the message to be addedstopProcessing - when true, immediately stops processing for the current eventexistErrorMessages(), 
EventContext.stopExecution()@Deprecated
void addErrorMessage(int messageNo,
                                  java.lang.String[] replaceParameters)
                           throws com.ebasetech.xi.exceptions.FormRuntimeException
addErrorMessageText(Text, String[]) instead
 This method is equivalent to addErrorMessage(messageNo, replaceParameters, true).
 
 A message is added using its message number. Numbered messages are defined within each project using the Messages Editor -
 double click on the Messages element within each project in the designer tree. Within each message, a
 substitutable variable is identified by &&. Any substitutable variables in the message are replaced with values in the replaceParameters
 parameter (see example below).
 
All processing for the current event is stopped immediately and the page is redisplayed to the user so the error can be corrected.
Messages can be displayed either locally to the message owner (a control or page) or at another location on the same page represented by a Message Control. For further information on the location and styling of messages, please see the online documentation available from the Help menu, search on message options, then follow the link to Message Options For Controls.
Javascript example:
event.owner.addErrorMessage(1006, [fields.ORDER_TYPE.value, fields.CUSTOMER_TYPE.value]);If message 1006 in language
EN contains text:messageNo - the message number to be addedreplaceParameters - an array of values to replace any substitutable parameters in the message defined as &&com.ebasetech.xi.exceptions.FormRuntimeExceptionaddErrorMessage(String), 
existErrorMessages()@Deprecated
void addErrorMessage(int messageNo)
                           throws com.ebasetech.xi.exceptions.FormRuntimeException
addErrorMessageText(Text) insteadaddErrorMessage(messageNo, null).messageNo - the message number to be addedcom.ebasetech.xi.exceptions.FormRuntimeExceptionaddErrorMessage(String)@Deprecated
void addErrorMessage(int messageNo,
                                  java.lang.String[] replaceParameters,
                                  boolean stopProcessing)
                           throws com.ebasetech.xi.exceptions.FormRuntimeException
addErrorMessageText(Text, String[], boolean) instead
 A message is added using its message number. Numbered messages are defined within each project using the Messages Editor -
 double click on the Messages element within each project in the designer tree. Within each message, a
 substitutable variable is identified by &&. Any substitutable variables in the message are replaced with values in the replaceParameters
 parameter (see example below).
 
 When stopProcessing is true, all processing for the current event is stopped immediately and the page
 is redisplayed to the user so the error can be corrected. When stopProcessing is false, processing
 continues normally, except that the user is prevented from navigating forwards to another page using a
 Next Page Button Control or the next page button within a Page Navigation Panel Control. Note that the same
 restriction does not apply when navigating to another page using other methods e.g. the WebForm.gotoPage(Page) method.  
 
 Set stopProcessing to false when there is a requirement to display multiple error messages on a page.
 EventContext.stopExecution() can then be used at a later point to stop processing and display the messages to the user.
 
Messages can be displayed either locally to the message owner (a control or page) or at another location on the same page represented by a Message Control. For further information on the location and styling of messages, please see the online documentation available from the Help menu, search on message options, then follow the link to Message Options For Controls.
Javascript example:
event.owner.addErrorMessage(1006, [fields.ORDER_TYPE.value, fields.CUSTOMER_TYPE.value], false);If message 1006 in language
EN contains text:messageNo - the message number to be addedreplaceParameters - an array of values to replace any substitutable parameters in the message defined as &&stopProcessing - when true, immediately stops processing for the current eventcom.ebasetech.xi.exceptions.FormRuntimeExceptionaddErrorMessage(String), 
existErrorMessages(), 
EventContext.stopExecution()void addErrorMessageText(Text text) throws com.ebasetech.xi.exceptions.FormRuntimeException
addErrorMessageText(text, null).text - the text to be added as a message, texts can be defined in form/component texts or in linked texts filescom.ebasetech.xi.exceptions.FormRuntimeExceptionaddErrorMessage(String)void addErrorMessageText(Text text, java.lang.String[] replaceParameters) throws com.ebasetech.xi.exceptions.FormRuntimeException
 This method is equivalent to addErrorMessageText(text, replaceParameters, true).
 
 Any accessible text can be displayed as a message; this includes local texts defined using the form/component text editor
 and linked texts which exist in linked texts files. Within each text, a substitutable variable is identified by &&. 
 Any substitutable variables in the text are replaced with values in the replaceParameters
 parameter (see example below).
 
All processing for the current event is stopped immediately and the page is redisplayed to the user so the error can be corrected.
Messages can be displayed either locally to the message owner (a control or page) or at another location on the same page represented by a Message Control. For further information on the location and styling of messages, please see the online documentation available from the Help menu, search on message options, then follow the link to Message Options For Controls.
Javascript example:
event.owner.addErrorMessageText(texts.Txt29, [fields.ORDER_TYPE.value, fields.CUSTOMER_TYPE.value]);If text Txt29 in language
EN contains text:text - the text to be added as a message, texts can be defined in form/component texts or in linked texts filesreplaceParameters - an array of values to replace any substitutable parameters in the text defined as &&com.ebasetech.xi.exceptions.FormRuntimeExceptionaddErrorMessage(String), 
existErrorMessages()void addErrorMessageText(Text text, java.lang.String[] replaceParameters, boolean stopProcessing) throws com.ebasetech.xi.exceptions.FormRuntimeException
 Any accessible text can be displayed as a message; this includes local texts defined using the form/component text editor
 and linked texts which exist in linked texts files. Within each text, a substitutable variable is identified by &&. 
 Any substitutable variables in the text are replaced with values in the replaceParameters
 parameter (see example below).
 
 When stopProcessing is true, all processing for the current event is stopped immediately and the page
 is redisplayed to the user so the error can be corrected. When stopProcessing is false, processing
 continues normally, except that the user is prevented from navigating forwards to another page using a
 Next Page Button Control or the next page button within a Page Navigation Panel Control. Note that the same
 restriction does not apply when navigating to another page using other methods e.g. the WebForm.gotoPage(Page) method.  
 
 Set stopProcessing to false when there is a requirement to display multiple error messages on a page.
 EventContext.stopExecution() can then be used at a later point to stop processing and display the messages to the user.
 
Messages can be displayed either locally to the message owner (a control or page) or at another location on the same page represented by a Message Control. For further information on the location and styling of messages, please see the online documentation available from the Help menu, search on message options, then follow the link to Message Options For Controls.
Javascript example:
event.owner.addErrorMessageText(texts.Txt29, [fields.ORDER_TYPE.value, fields.CUSTOMER_TYPE.value], false);If text Txt29 in language
EN contains text:text - the text to be added as a message, texts can be defined in form/component texts or in linked texts filesreplaceParameters - an array of values to replace any substitutable parameters in the message defined as &&stopProcessing - when true, immediately stops processing for the current eventcom.ebasetech.xi.exceptions.FormRuntimeExceptionaddErrorMessage(String), 
existErrorMessages(), 
EventContext.stopExecution()void addWarningMessage(java.lang.String message)
 This method is equivalent to addWarningMessage(message, false).
 
 When a warning or error message exists on a page, the user is prevented from navigating forwards to another page using a
 Next Page Button Control or the next page button within a Page Navigation Panel Control. Note that the same
 restriction does not apply when navigating to another page using other methods e.g. the WebForm.gotoPage(Page) method.  
 
Messages can be displayed either locally to the message owner (a control or page) or at another location on the same page represented by a Message Control. For further information on the location and styling of messages, please see the online documentation available from the Help menu, search on message options, then follow the link to Message Options For Controls.
Javascript example:
 event.owner.addWarningMessage("Extra charges apply for this service");
 message - the message to be addedaddWarningMessage(String, boolean), 
existWarningMessages()void addWarningMessage(java.lang.String message,
                       boolean stopProcessing)
 When a warning or error message exists on a page, the user is prevented from navigating forwards to another page using a
 Next Page Button Control or the next page button within a Page Navigation Panel Control. Note that the same
 restriction does not apply when navigating to another page using other methods e.g. the WebForm.gotoPage(Page) method.  
 
 When stopProcessing is true, all processing for the current event is stopped immediately and the page
 is redisplayed to the user. 
 
Messages can be displayed either locally to the message owner (a control or page) or at another location on the same page represented by a Message Control. For further information on the location and styling of messages, please see the online documentation available from the Help menu, search on message options, then follow the link to Message Options For Controls.
Javascript example:
 event.owner.addWarningMessage("Extra charges apply for this service", false);
 message - the message to be addedstopProcessing - when true, immediately stops processing for the current eventexistWarningMessages()@Deprecated
void addWarningMessage(int messageNo)
                             throws com.ebasetech.xi.exceptions.FormRuntimeException
addWarningMessageText(Text) insteadaddWarningMessage(messageNo, null).messageNo - the message number to be addedcom.ebasetech.xi.exceptions.FormRuntimeExceptionaddWarningMessage(String)@Deprecated
void addWarningMessage(int messageNo,
                                    java.lang.String[] replaceParameters)
                             throws com.ebasetech.xi.exceptions.FormRuntimeException
addWarningMessageText(Text, String[]) instead
 This method is equivalent to addWarningMessage(messageNo, replaceParameters, false).
 
 A message is added using its message number. Numbered messages are defined within each project using the Messages Editor -
 double click on the Messages element within each project in the designer tree. Within each message, a
 substitutable variable is identified by &&. Any substitutable variables in the message are replaced with values in the replaceParameters
 parameter (see example below).
 
 When a warning or error message exists on a page, the user is prevented from navigating forwards to another page using a
 Next Page Button Control or the next page button within a Page Navigation Panel Control. Note that the same
 restriction does not apply when navigating to another page using other methods e.g. the WebForm.gotoPage(Page) method.  
 
Messages can be displayed either locally to the message owner (a control or page) or at another location on the same page represented by a Message Control. For further information on the location and styling of messages, please see the online documentation available from the Help menu, search on message options, then follow the link to Message Options For Controls.
Javascript example:
event.owner.addWarningMessage(1006, [fields.ORDER_TYPE.value, fields.CUSTOMER_TYPE.value]);If message 1006 in language
EN contains text:messageNo - the message number to be addedreplaceParameters - an array of values to replace any substitutable parameters in the message defined as &&com.ebasetech.xi.exceptions.FormRuntimeExceptionaddWarningMessage(String), 
existWarningMessages()@Deprecated
void addWarningMessage(int messageNo,
                                    java.lang.String[] replaceParameters,
                                    boolean stopProcessing)
                             throws com.ebasetech.xi.exceptions.FormRuntimeException
addWarningMessageText(Text, String[], boolean) instead
 A message is added using its message number. Numbered messages are defined within each project using the Messages Editor -
 double click on the Messages element within each project in the designer tree. Within each message, a
 substitutable variable is identified by &&. Any substitutable variables in the message are replaced with values in the replaceParameters
 parameter (see example below).
 
 When a warning or error message exists on a page, the user is prevented from navigating forwards to another page using a
 Next Page Button Control or the next page button within a Page Navigation Panel Control. Note that the same
 restriction does not apply when navigating to another page using other methods e.g. the WebForm.gotoPage(Page) method.  
 
 When stopProcessing is true, all processing for the current event is stopped immediately and the page
 is redisplayed to the user. 
 
Messages can be displayed either locally to the message owner (a control or page) or at another location on the same page represented by a Message Control. For further information on the location and styling of messages, please see the online documentation available from the Help menu, search on message options, then follow the link to Message Options For Controls.
Javascript example:
event.owner.addWarningMessage(1006, [fields.ORDER_TYPE.value, fields.CUSTOMER_TYPE.value], false);If message 1006 in language
EN contains text:messageNo - the message number to be addedreplaceParameters - an array of values to replace any substitutable parameters in the message defined as &&stopProcessing - when true, immediately stops processing for the current eventcom.ebasetech.xi.exceptions.FormRuntimeExceptionaddWarningMessage(String), 
existWarningMessages()void addWarningMessageText(Text text) throws com.ebasetech.xi.exceptions.FormRuntimeException
addWarningMessageText(text, null).text - the text to be added as a message, texts can be defined in form/component texts or in linked texts filescom.ebasetech.xi.exceptions.FormRuntimeExceptionaddWarningMessage(String)void addWarningMessageText(Text text, java.lang.String[] replaceParameters) throws com.ebasetech.xi.exceptions.FormRuntimeException
 This method is equivalent to addWarningMessageText(text, replaceParameters, true).
 
 Any accessible text can be displayed as a message; this includes local texts defined using the form/component text editor
 and linked texts which exist in linked texts files. Within each text, a substitutable variable is identified by &&. 
 Any substitutable variables in the text are replaced with values in the replaceParameters
 parameter (see example below).
 
 When a warning or error message exists on a page, the user is prevented from navigating forwards to another page using a
 Next Page Button Control or the next page button within a Page Navigation Panel Control. Note that the same
 restriction does not apply when navigating to another page using other methods e.g. the WebForm.gotoPage(Page) method.  
 
Messages can be displayed either locally to the message owner (a control or page) or at another location on the same page represented by a Message Control. For further information on the location and styling of messages, please see the online documentation available from the Help menu, search on message options, then follow the link to Message Options For Controls.
Javascript example:
event.owner.addWarningMessageText(texts.Txt29, [fields.ORDER_TYPE.value, fields.CUSTOMER_TYPE.value]);If text Txt29 in language
EN contains text:text - the text to be added as a message, texts can be defined in form/component texts or in linked texts filesreplaceParameters - an array of values to replace any substitutable parameters in the message defined as &&com.ebasetech.xi.exceptions.FormRuntimeExceptionaddWarningMessage(String), 
addWarningMessageText(Text, String[], boolean), 
existWarningMessages()void addWarningMessageText(Text text, java.lang.String[] replaceParameters, boolean stopProcessing) throws com.ebasetech.xi.exceptions.FormRuntimeException
 Any accessible text can be displayed as a message; this includes local texts defined using the form/component text editor
 and linked texts which exist in linked texts files. Within each text, a substitutable variable is identified by &&. 
 Any substitutable variables in the text are replaced with values in the replaceParameters
 parameter (see example below).
 
 When a warning or error message exists on a page, the user is prevented from navigating forwards to another page using a
 Next Page Button Control or the next page button within a Page Navigation Panel Control. Note that the same
 restriction does not apply when navigating to another page using other methods e.g. the WebForm.gotoPage(Page) method.  
 
 When stopProcessing is true, all processing for the current event is stopped immediately and the page
 is redisplayed to the user. 
 
Messages can be displayed either locally to the message owner (a control or page) or at another location on the same page represented by a Message Control. For further information on the location and styling of messages, please see the online documentation available from the Help menu, search on message options, then follow the link to Message Options For Controls.
Javascript example:
event.owner.addWarningMessageText(texts.Txt29, [fields.ORDER_TYPE.value, fields.CUSTOMER_TYPE.value], false);If text Txt29 in language
EN contains text:text - the text to be added as a message, texts can be defined in form/component texts or in linked texts filesreplaceParameters - an array of values to replace any substitutable parameters in the message defined as &&stopProcessing - when true, immediately stops processing for the current eventcom.ebasetech.xi.exceptions.FormRuntimeExceptionaddWarningMessage(String), 
existWarningMessages()void addInfoMessage(java.lang.String message)
Messages can be displayed either locally to the message owner (a control or page) or at another location on the same page represented by a Message Control. For further information on the location and styling of messages, please see the online documentation available from the Help menu, search on message options, then follow the link to Message Options For Controls.
Javascript example:
 event.owner.addInfoMessage("The document has been updated");
 message - the message to be addedaddInfoMessage(String, boolean), 
existInfoMessages()void addInfoMessage(java.lang.String message,
                    boolean stopProcessing)
 When stopProcessing is true, all processing for the current event is stopped immediately and the page
 is redisplayed to the user. When stopProcessing is false, processing
 continues normally.   
 
Messages can be displayed either locally to the message owner (a control or page) or at another location on the same page represented by a Message Control. For further information on the location and styling of messages, please see the online documentation available from the Help menu, search on message options, then follow the link to Message Options For Controls.
Javascript example:
 event.owner.addInfoMessage("Account saved", true);
 message - the message to be addedstopProcessing - when true, immediately stops processing for the current eventexistInfoMessages(), 
EventContext.stopExecution()void addInfoMessageText(Text text) throws com.ebasetech.xi.exceptions.FormRuntimeException
addInfoMessageText(text, null).text - the text to be added as a message, texts can be defined in form/component texts or in linked texts filescom.ebasetech.xi.exceptions.FormRuntimeExceptionaddInfoMessage(String)void addInfoMessageText(Text text, java.lang.String[] replaceParameters) throws com.ebasetech.xi.exceptions.FormRuntimeException
 This method is equivalent to addInfoMessageText(text, replaceParameters, true).
 
 Any accessible text can be displayed as a message; this includes local texts defined using the form/component text editor
 and linked texts which exist in linked texts files. Within each text, a substitutable variable is identified by &&. 
 Any substitutable variables in the text are replaced with values in the replaceParameters
 parameter (see example below).
 
Messages can be displayed either locally to the message owner (a control or page) or at another location on the same page represented by a Message Control. For further information on the location and styling of messages, please see the online documentation available from the Help menu, search on message options, then follow the link to Message Options For Controls.
Javascript example:
event.owner.addInfoMessageText(texts.Txt29, [fields.ORDER_TYPE.value, fields.CUSTOMER_TYPE.value]);If text Txt29 in language
EN contains text:text - the text to be added as a message, texts can be defined in form/component texts or in linked texts filesreplaceParameters - an array of values to replace any substitutable parameters in the text defined as &&com.ebasetech.xi.exceptions.FormRuntimeExceptionaddInfoMessage(String), 
existInfoMessages()void addInfoMessageText(Text text, java.lang.String[] replaceParameters, boolean stopProcessing) throws com.ebasetech.xi.exceptions.FormRuntimeException
 Any accessible text can be displayed as a message; this includes local texts defined using the form/component text editor
 and linked texts which exist in linked texts files. Within each text, a substitutable variable is identified by &&. 
 Any substitutable variables in the text are replaced with values in the replaceParameters
 parameter (see example below).
 
 When stopProcessing is true, all processing for the current event is stopped immediately and the page
 is redisplayed to the user. When stopProcessing is false, processing
 continues normally.
 
Messages can be displayed either locally to the message owner (a control or page) or at another location on the same page represented by a Message Control. For further information on the location and styling of messages, please see the online documentation available from the Help menu, search on message options, then follow the link to Message Options For Controls.
Javascript example:
event.owner.addInfoMessageText(texts.Txt29, [fields.ORDER_TYPE.value, fields.CUSTOMER_TYPE.value], true);If text Txt29 in language
EN contains text:text - the text to be added as a message, texts can be defined in form/component texts or in linked texts filesreplaceParameters - an array of values to replace any substitutable parameters in the message defined as &&stopProcessing - when true, immediately stops processing for the current eventcom.ebasetech.xi.exceptions.FormRuntimeExceptionaddInfoMessage(String), 
existInfoMessages(), 
EventContext.stopExecution()boolean existErrorMessages()
true if undisplayed error messages exist for this element, otherwise returns false.
 Undisplayed error messages will be displayed when the page is next presented to the user.boolean existWarningMessages()
true if undisplayed warning messages exist for this element, otherwise returns false.
 Undisplayed warning messages will be displayed when the page is next presented to the user.boolean existInfoMessages()
true if undisplayed info messages exist for this element, otherwise returns false.
 Undisplayed info messages will be displayed when the page is next presented to the user.boolean existMessages()
true if undisplayed info, warning or error messages exist for this element, otherwise returns false.
 Undisplayed messages will be displayed when the page is next presented to the user.