on 08-23-2010 12:57 PM
I created a table with 31 lines. There is fields(attributes) like begda and endda on the table.
The employee enter info on the table and click on a button to submit it.
If there is errors on the table I create a error message with the following:
lo_api_controller ?= wd_This->Wd_Get_Api( ).
CALL METHOD lo_api_controller->GET_MESSAGE_MANAGER
RECEIVING
MESSAGE_MANAGER = lo_message_manager.
report message
CALL METHOD lo_message_manager->REPORT_ATTRIBUTE_ERROR_MESSAGE
EXPORTING
MESSAGE_TEXT = zmessage
ELEMENT = lo_el_kilometer
ATTRIBUTE_NAME = 'KM_ENDDA'
msg_index = lv_index.
When the error is displayed on the screen a red border is displayed on the field(attribute) that is incorrect.
If for example there is a error on the third line with the endda, I want the red border on the field endda of the third line and not
on endda of the first line.
How do I get the border arround endda of the third line and not on the first line? I already use index in the above method but nothing work.
Regards
Liana
That should be controlled by the element parameter:
ELEMENT = lo_el_kilometer
You need to pass the element of the context which you want marked with the error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Thomas
It worked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.