Skip to Content
author's profile photo Former Member
Former Member

dynamic link which opens pop-up

Hi,

I want to create a link dynamically, on clicking the link pop-up window should open separately. Please help these.

thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 10:35 AM

    hi vimal.....

    make use of the class cl_wd_link_to_action to create your own link dynamically.

    --regards,

    alex b justin

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 03, 2007 at 10:50 AM

    Hi Vimalraj,

    Create an elememt of type LinkToAction , bind it with the context element of type string ( create this string content dynamically ). Create an action handler for the element of type LinkToAction .

    Then in action handler method write the code to create pop-up.

    Regards

    Amol Deshmukh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 02:08 PM

    Hi..

    i could create the link but how to make the new window to open like pop-up.

    Thanks

    vimalraj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 02:16 PM

    Hi,

    Currently the window opens in the same page, but it should open in new page/ window like a pop-up as we get in web sites.

    how to get the popup window???

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Vimalraj,

      To open the window as pop up , create a new window embed the view you want in that window and then do the following coding the event handler method.

      data lr_window_manager type ref to if_wd_window_manager.
        data lr_api_component  type ref to if_wd_component.
        data lr_window         type ref to if_wd_window.
      
      
       lr_api_component  = wd_comp_controller->wd_get_api( ).
        lr_window_manager = lr_api_component->get_window_manager( ).
        lr_window         = lr_window_manager->create_window(
                           window_name            = 'WINDOW_NAME'
      *                    title                  =
      *                    close_in_any_case      = abap_true
                           message_display_mode   = if_wd_window=>co_msg_display_mode_selected
      *                    close_button           = abap_true
                           button_kind            = if_wd_window=>co_buttons_ok
                           message_type           = if_wd_window=>co_msg_type_none
                           default_button         = if_wd_window=>co_button_ok
                           ).
      
        lr_window->open( ). 
      

      Regards

      Amol Deshmukh

  • Posted on Dec 04, 2007 at 03:08 AM

    Hi Vimal,

    Follow the below code for a pop up window.

    DATA:

    l_window_manager TYPE REF TO if_wd_window_manager,

    l_cmp_api TYPE REF TO if_wd_component,

    l_window TYPE REF TO if_wd_window.

    DATA:

    lv_title TYPE string.

    l_cmp_api = wd_comp_controller->wd_get_api( ).

    l_window_manager = l_cmp_api->get_window_manager( ).

    l_window = l_window_manager->create_window(

    window_name = 'POPUP_WINDOW'

    title = lv_title

    message_display_mode =

    if_wd_window=>co_msg_display_mode_selected

    button_kind =

    if_wd_window=>co_buttons_okcancel

    message_type =

    if_wd_window=>co_msg_type_none

    ).

    l_window->open( ).

    Regards,

    Ismail.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.