on 03-13-2012 10:18 AM
If a message is issued after some event, and then I click on value help for one of the select-options in my select-option component, I get the popup with the values, but the message that was issued is displayed in the popup. How can I clear the messages before the popup is displayed?
thanks
matt
Could you please explain better which message do you mean and how the message was raised? Or do you mean message raised automatically for mandatory fields (for select option fields/parameters) ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To replicate, set up a wdr_select_options parameter with an automatic value-help. On the same view, create a button and a message area element. Make the action on the button to issue a message, via the message manager.
Click the button, then click on value help. The message issued when you pressed the button, now appears at the bottom of the value help window.
If I make the value help OVS, then in the first step of the OVS handler, I can clear the message. But there doesn't appear to be anywhere to do it with an automatic value help.
Yes, you are correct that they gets displayed in popup. Either you need to manually give correct In entries to remove errors (manually clear the values ) or you need to clear the messages when F4 is clicked.
In this case, as there is no F4 event that gets triggered. Only Modifyview gets triggered in this case. Try to code it here using some condition. Also check if WDBEFOREACTION or WDAFTERACTION gets triggered.
before you pop up action you can clear messages using below coding
* get message manager
data lo_api_controller type ref to if_wd_controller.
data lo_message_manager type ref to if_wd_message_manager.
lo_api_controller ?= wd_this->wd_get_api( ).
call method lo_api_controller->get_message_manager
receiving
message_manager = lo_message_manager.
Lo_message_manager->clear_messages( ).
Regards
Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
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.