on 11-07-2007 1:23 AM
Hello,
How do I display error on top or bottom of a page? The error message can be taken from the message pool. The errors are not specific to an inputField the most examples I have seem. Errors can be like, cannot connect to a server, etc.
regards,
arnold
Arnold,
If you want to display messages (any type) on particular position use MessageArea.
From your code, you just write message it will display in that message area.
It is automatic.
Ex: - wdComponentAPI.getMessageManager().reportException("Server is Down / Exception occured", true);
If you want to take from Message Pool, it is like
String errorMessage = wdComponentAPI.getTextAccessor().getText(IMessageBAPIServiceModel.NAME);
wdComponentAPI.getMessageManager().reportException(errorMessage, true);
//IMessageBAPIServiceModel - is my MessagePool Name
//NAME - is my message
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Arnold
MessageAreaUIElement is used to display the error messages [both user defined and programatic errors]. you can place that UIElement where ever you can on the screen. just move down or move up the element to the desired location. but the point to be noted here is. through out your application MessageAreaUIElement place is fixed. that is where ever you place you UIElement that is fixed.you cannot change the place of element in other views. [it will allow to change but change will not reflect at runtime.]
Best Regards
Chaitanya.A
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.