on 06-24-2008 10:52 AM
Hi all ,kindly tell me how to open a new link in the
same window through onclick in web dynpro abap......
Hi
can you paste your code, how you are achieving this
Create_External_window always creates a new window, you have to use Exit Plug of the window to achieve this
http://help.sap.com/saphelp_nw04s/helpdata/en/45/1bc575ba064574e10000000a114a6b/content.htm
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
go to your window and in outbound plugs tab create an Exit Plug
now go to your View and in Properties tab add your window controller
in the event handler code the following
data: L_REF_MAIN_WINDOW type ref to IG_MAIN_WINDOW .
L_REF_MAIN_WINDOW = WD_THIS->GET_MAIN_WINDOW_CTR( ).
L_REF_MAIN_WINDOW->FIRE_MY_EXIT_PLUG_PLG(
URL = 'http://www.sap.com' " String
).
Abhi
Edited by: Abhimanyu Lagishetti on Jun 24, 2008 12:20 PM
Hi
2 onActions? i didn't get this.
create a context attribute type string in the Cotnext
you goto the properties section of the LinkToUrl UI element
reference property bind to the context attribute
in WDDOINIT
set the attribute with the url
wd_context->set_attribute( name = '<Attribute_name>' value = "http://sap.com" ).
Abhi
thanks a lot abhi,
The codes works fine , when i click the button the
url link opens in the same window,
But when i click "back" in the browser it doesnt
returns to the main page...and shows "page has expired"
only if i click refresh button it comes to home page.
Can u plz guide me??? what should i do for this abhi???
by
ranjith
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.