on 10-28-2005 1:09 AM
Hello. !!
My problem is the following one, I have two MessageArea UI (one to the final result, and the other for validacion of input file empty). and I need that these messages appear in two MessageAreaUI different from different location inside the View ¿How I can establish when a this enable and the other desable) since the message always shows it in the first one that find enable.
I need a simple solutions...Regards !!!
Hi Antonio,
Error messages are always displayed in the first instance of the Message Area created/loaded in the memory. Even if you disable/hide the message area, it will still show it in the first instance.
A simple solution is to create the message area dynamically at the position you want.
Say you have two Transparent Containers (with id TC4 & TC5)in which you want to these message area depending on your condition.
In your wdDoModifyView do something like this
view.resetView();
if (Condition){
IWDTransparentContainer tc4 = (IWDTransparentContainer)view.getElement("TC4");
IWDMessageArea messageArea = (IWDMessageArea)view.createElement(IWDMessageArea.class, "MessageArea");
tc4.addChild(messageArea);
}
else{
IWDTransparentContainer tc5 = (IWDTransparentContainer)view.getElement("TC5");
IWDMessageArea messageArea = (IWDMessageArea)view.createElement(IWDMessageArea.class, "MessageArea");
tc5.addChild(messageArea);
}
You have to make sure that you view is being reloaded otherwise this will not work since the wdDoModifyView is only called when the view is being loaded/refreshed/reloaded again.
Regards,
Shubham
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Excellent!
Many Thanks Shubham.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.