Skip to Content
0
Jul 09, 2007 at 06:40 AM

Hi, How to stop the open new view when i click button in OnClick event

33 Views

Hi,

I have the popup window[window.showodelDialog] with one button called confirm.and table control values

Actual requirement: when i click confirm button it saves the tablecontrol value in the internal table. it is fine.It saves.

Currently working is : When i click the confirm button in the onClick event ,the new view is opening with empty tablecontrol popupin the new window.I don't want that one.

my requirement is: When i click the confirm button through onclick event ,i want to close the currently showing popupwindow and it should come to main page.How to do that?

view1.htm

=======

<htmlb:button id = "sub1"

onClick =""

text = "Confirm" />

Do_handle_data

============

LOOP AT lt_form_fields INTO lw_form_field WHERE name CS

't_confirm' .

CALL METHOD /ds1/cl_mdm_tablecontrol=>populate_table(

EXPORTING

im_id = 't_confirm'

im_request = me->request

CHANGING

ch_table = me->r_asset_data->t_maintain ).

EXIT.

ENDLOOP.

t_maintain it stores the changed values.. It is fine..