cancel
Showing results for 
Search instead for 
Did you mean: 

Popup not working

Former Member
0 Kudos

Hi

In my WD4A application, on click of a link a popup appears displaying some information. It is working fine on production system but for some user the popup does not opens up. on click of the link, a small window opens up without any data and session hangs up . Can it be the issue with roles and authorizations of that perticular user.

Please reply soon on it.

Regards

Vishal Kapoor

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,have you check the setting of browser? Maybe the popup function was been closed. Or the other software help to block the popup windows.

The problem about window without data,I think you should check the security setting in your broswer(especially "IFRAME").

I hope my word will help you ~

Best regards,

Nemo

Former Member
0 Kudos

Hi Nemo

This issue is appearing only for some user. On the same machine if I login into ESS from the ID of any other user it works fine.

In the debugging mode, till the method called to create popup everything goes fine and the data which should be displayed is binded in context node But if I press F8 the ESS screen hangs up . Sending you the piece of code also

*The data returned will be used to display in popup

CALL FUNCTION 'ZHRESSWF_REQ_DETAIL'

EXPORTING

pernr = v_pernr

process = v_process

req_date = v_req_date

timestmp = v_timestmp

loanty = v_loanty

srtfd = v_srtfd

status = v_status

seq = v_seq

reference = v_reference

TABLES

wf_detail = lit_wf_detail.

*--- Bind Detail Table

CALL METHOD node_detail_table->bind_table

EXPORTING

new_items = lit_wf_detail.

*--- Determine detail Table Heading

DATA:

node_link_heading TYPE REF TO if_wd_context_node,

elem_link_heading TYPE REF TO if_wd_context_element,

stru_link_heading TYPE if_view1=>element_link_heading .

  • navigate from <CONTEXT> to <LINK_HEADING> via lead selection

node_link_heading = wd_context->get_child_node( name = if_view1=>wdctx_link_heading ).

  • get element via lead selection

elem_link_heading = node_link_heading->get_element( ).

  • get all declared attributes

elem_link_heading->get_static_attributes(

IMPORTING

static_attributes = stru_link_heading ).

CONCATENATE 'WorkFlow Status -' v_status INTO stru_link_heading-title SEPARATED BY space.

stru_link_heading-process_text = v_loanty_text.

  • set all declared attributes

elem_link_heading->set_static_attributes(

EXPORTING

static_attributes = stru_link_heading ).

*--- Generate Pop-up

DATA : lr_component_api TYPE REF TO if_wd_component.

DATA : lr_popup TYPE REF TO if_wd_popup_to_confirm.

*--- Get reference to component controller

lr_component_api = wd_comp_controller->wd_get_api( ).

*--- open popup window

CALL METHOD cl_wd_popup_factory=>popup

EXPORTING

component = lr_component_api

view_name = 'VIEW2'

window_title = 'APPROVAL PATH'

close_button = 'X'

button_kind = if_wd_window=>co_buttons_ok.

Regards

Vishal Kapoor

rainer_liebisch
Contributor
0 Kudos

Hello Vishal,

the use of the methods of CL_WD_POPUP_FACTORY is deprecated. Please use instead in WDDOINIT of your view:


DATA:      l_api_component     type ref to if_wd_component,
           l_window_manager    type ref to if_wd_window_manager,
           l_api_view          type ref to if_wd_view_controller.


  l_api_component = wd_comp_controller->wd_get_api( ).
  l_window_manager = l_api_component->get_window_manager( ).

  wd_this->window = l_window_manager->create_window(
    window_name = 'POPUP'
    button_kind = if_wd_window=>co_buttons_close ).

  wd_this->window->open( ).

  l_api_view = wd_this->wd_get_api( ).

  wd_this->window->set_on_close_action(
    view        = l_api_view
    action_name = 'CLOSE_POPUP' ).
  wd_this->window->subscribe_to_button_event(
    button      = if_wd_window=>co_button_close
    action_name = 'CLOSE_POPUP'
    action_view = l_api_view ).

with the attribute of the view:

WINDOW TYPE REF TO IF_WD_WINDOW

Regards,

Rainer

Former Member
0 Kudos

Hi Rainer

It worked, Thanks !

Answers (0)