on 04-04-2011 8:05 PM
Hello guys...
I am traying to hide or block the URL which i am using in a external window. I have coded this:
call method lo_window_manager->create_external_window
exporting
url = lv_url
modal = abap_true
has_menubar = abap_false
is_resizable = abap_true
has_scrollbars = abap_true
has_statusbar = abap_false
has_toolbar = abap_false
has_location = abap_false
receiving
window = lo_window2.
*lo_window2->open( ).
But, firstly the MODAL parameter doesn't work with external windows (It's Obsolete) So I can't use it, because I have to forbid the navigation between windows. I tried to close the main windows before open URL but it doesn't work either.(Appear a waring that you window wants to be closed) so then I used that:
lo_windows->fire_exit_url_plg(
url = lv_url " string
).
lo_windows = wd_this->get_windows_ctr( ).
lo_windows->fire_exit_close_plg(
close_window = 'X' " wdy_boolean
That is Ok BUT I can't BLOCK the URL or even HIDE it. SOMEBODY give the light.!!!!! pleaseee..
Hi Williams,
you can block the address bar (meaning that you cannot enter or change the URL address ), by setting the has_location = abap-false.
I have tested this and it is working. You can see the url but you cannot change it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Baskaran,
Yes, but if i use that way i have to put the windows Type MODAL (Which it is obsolete), OR at least i must to close the main windows after I have shown the second..and when you tray to do that(USING A FIRE outboung PLUG TYPE EXIT whit CLOSE_WINDOWS, like above), one message is showed(You are traing to close this windows, do you want to close it), And none of them is shown.
You are complexing with 2 problem with 2 options.
1. Blocking url on the external window
2. Closing the previous window.
1. parameter model is indeed obsolete, so only has location parameter would help you to block the URL and it will not work for the requirement 2.
2. When you use exit plug and navigate to new URL, your window would close but new window would not open with address bar blocked.
No solution is fitting for your both requirements.
Probably you have seen this example application WDR_TEST_EXIT_WITH_CLOSE
See if it fits in your case.
HI
may be you can play with javascript for fulfilling your requirement.
go to transaction SICF and there double click on your service then navigate to error pages --> logoff pages.
there write the java script to close the top window and open a new window without the location.
thanks
sarbjeet singh
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
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.