cancel
Showing results for 
Search instead for 
Did you mean: 

How get wd_this->wd_get_api( ) of other View?

ronaldo_aparecido
Contributor
0 Kudos

Hi experts

I created a web dynpro application with 2 views.( Main  and MAIL  ).

In the Main VIEW  I use this code to call the MAIL view:

l_api = wd_this->wd_get_api( ).

   ls_buttons-do_close = 'X'.

   ls_buttons-text ='OK'.

   ls_buttons-action-action_name = 'VMAIL'.

   ls_buttons-action-view = ????????????????

   DATA lo_m TYPE REF TO if_main.

   MODIFY lt_buttons FROM ls_buttons INDEX 1.

*ZONACTION_INS_MAIL

   lo_window            = lo_window_manager->create_and_open_popup(

   window_name          = 'ZMAIL'

   title                = 'Mails Adress'

   message_type         = if_wd_window=>co_msg_type_none

   message_display_mode = if_wd_window=>co_msg_display_mode_selected

*    is_resizable         = ABAP_TRUE

   buttons              = lt_buttons

   cancel_action        = ls_canc_action

).


MY PROBLEM IS THE ls_buttons-action-view PARAMETER  .HOW CAN I GET THE  wd_this->wd_get_api( ) OF MAIL VIEW WHEN I AM IN

MAIN VIEW?


I WANT TO DYSPLAY THE MESSAGES INSIDE THE MAIL VIEW THEN I NEED PASS IT IN METHOD.


THANKS FOR HELP.






Accepted Solutions (0)

Answers (1)

Answers (1)

Gowtham
Contributor
0 Kudos

Hi Ronaldo,

Instead of creating standard buttons from popup creation code you can create your own buttons in the MAIL view itself and call the popup without any button , give full control to your buttons placed in the MAIL view.

Hope this helps.

- Gowtham