on 08-02-2012 6:07 AM
Hello All,
I am using two input fields in a fpm_form_uibb. when the user does not enter anything in the input field and click the process button, it is giving an error message.
I want to highlight the field which is causing the error. Can any one provide me any information?
Thanks and Regards,
Rimi
Hi Rimi,
For highlighting the field first you have to set the property STATE of Input field as required.
And on action of button, you have to trigger following code. It will highlight Blank Input filed as red and show the message in message area.
data lo_api_controller type ref to if_wd_view_controller.
lo_api_controller = wd_this->wd_get_api( ).
call method cl_wd_dynamic_tool=>check_mandatory_attr_on_view
exporting
view_controller = lo_api_controller
display_messages = abap_true
importing
messages = lt_message_tbl.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.