cancel
Showing results for 
Search instead for 
Did you mean: 

WDR_SELECT_OPTIONS value help, messages remain

matt
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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) ?

matt
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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.

matt
Active Contributor
0 Kudos

Well, I can't manually remove the errors for an automatic "F4". But I'll have a go and see what events are triggered.

I suspect this is a bug, but I want to be sure before I report it officially.

bharath_k6
Active Participant
0 Kudos

Hi,

Messages will not appear on F4 help or popup if you pass parameter 

VIEW = 'Your View Name'. to the REPORT_SUCCESS / REPORT_WARNING / REPORT_T100_MESSAGE method.

Regards,

Bharath.

Former Member
0 Kudos

What I mean is, you enter some values and got an error before you click on F4, you have to manually clear the values or correct the values so that error is avoided, then click F4.

matt
Active Contributor
0 Kudos

Sorry - it's not an error message - it's an informational message from the last action. The problem is where to clear the value!

@Bharat - very interesting - I'll try that.

matt
Active Contributor
0 Kudos

Bharat - that worked. Thanks for the help.

bharath_k6
Active Participant
0 Kudos

Great.. 🙂

Congratulations.

Answers (1)

Answers (1)

former_member199125
Active Contributor
0 Kudos

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    

matt
Active Contributor
0 Kudos

I know how to clear messages, thank-you. The question is where does such code go?

The select-option is just using automatic value help. If I have an OVS value help, then during if_wd_ovs=>co_phase_0 I can clear the messages. But what to do for non-programmed value helps`?

former_member199125
Active Contributor
0 Kudos

Matthew,

You said when you click on F4 in select option, previous messages are displaying in F4 popup help window?

if yes, then its bit strange.

did you try by using message area UI element in view?

Regards

Srinivas    

matt
Active Contributor
0 Kudos

Yes, I have a message are UI element in the view.

former_member199125
Active Contributor
0 Kudos

if you use the message area UI element, then how come messges will display in pop up window?

Regards

Srinivas