on 08-26-2010 9:08 AM
Hello,
ive got a form with serveral inputfields to change data.
when this data is noch correct. for example wrong not integer.. i want to have something like a red frame round that field after a action is triggered. cant find something like this in meta data.
Hi adrian,
if you looking for this .. [http://flic.kr/p/8vvxKF|http://flic.kr/p/8vvxKF]
then you must use method report_attribute_error_message .
trigger validation event on any action , if validation fails report as attribute erro message for getting the red frame on the inputfield
sample code :
DATA: l_current_controller TYPE REF TO if_wd_controller,
l_message_manager TYPE REF TO if_wd_message_manager.
l_current_controller ?= wd_this->wd_get_api( ).
l_message_manager = l_current_controller->get_message_manager( ).
* report message
l_message_manager->report_attribute_error_message(
message_text = ' Not an interger value
element = l_element
attribute_name = 'ATT_NUM'
* PARAMS =
* MSG_USER_DATA =
).
Regards
Chinnaiya P
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
more info
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI adrian ,
I tryied using two message are in single view both(inside group & without Group ) the message is displaying in the both of the message area and i dint find any parameter in the method report_attribute_error_message for mentioning the message area ID to be only display also ..
have a loot at this pic..
http://i35.tinypic.com/291dyeb.jpg
lets wait until some body throw lights on it
Regards
Chinnaiya P
Hi Guys,
from the SAP help
>With components that you want to use in several applications you should never use the MessageArea UI element, since each window is allowed to contain only one visible MessageArea at the most.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/b37974eb5c6200e10000000a421937/frameset.htm
Think this addresses why you are seeing multiple and can't update them separately.SAP didn't design it to do that...
Sorry it doesn't help allow you to do this, but at least it explains the behaviour seen.
As an aside, I'd always go with the default of having messages on the top of the screen - users get used to having it there.
Chris
Hi,
thanks a lot. Excactly what i was looking for.
Well. How can i define where this top msg text is?
because i rather had it just above the form instead top of the page
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.