EP5: move to a different page in the same window

Hello All,
I have a button with the following code:
onClientClick="javascript:openUrl('"myMazminBean.getNewVisitURL()"');";
the NewVisitURL directs to an iview and is created using the URL Generator. the openURL function on the jsp page is defined as follows:
<script>  
function openUrl(url)
         window.location.href = url;     
</script>       
What I am trying to do is to replace my current iview with the iview in the URL. It actually works, but only on the second time I press the button. The first time I just get a refresh of the exact page I was viewing.
If I look at the source of the html (via Explorer - view Source) , it looks completely different: before I press the button for the first time, the source is very long and contains millions of functions; after I press the button one time (which appears to do nothing but refresh) I get a much smaller source that contains mainly the current Iview.
Any ideas?
Thanks,
Yoni

Hello All,
I have a button with the following code:
onClientClick="javascript:openUrl('"myMazminBean.getNewVisitURL()"');";
the NewVisitURL directs to an iview and is created using the URL Generator. the openURL function on the jsp page is defined as follows:
<script>  
function openUrl(url)
         window.location.href = url;     
</script>       
What I am trying to do is to replace my current iview with the iview in the URL. It actually works, but only on the second time I press the button. The first time I just get a refresh of the exact page I was viewing.
If I look at the source of the html (via Explorer - view Source) , it looks completely different: before I press the button for the first time, the source is very long and contains millions of functions; after I press the button one time (which appears to do nothing but refresh) I get a much smaller source that contains mainly the current Iview.
Any ideas?
Thanks,
Yoni

Similar Messages

  • How to I share Itune library, and movies with a different user on the same computer?

    How do I share Itunes and movies with a different user on the same computer?

    https://discussions.apple.com/community/itunes

  • How to apply different styels to different variable in the same window

    Dear experts
    can any one tell me how to print to different variable with different smartstyle in the same window in Smartforms
    thanks in advance

    Not possible to switch dynamically a smartstyle inside a text. A workaround is to use a SAPscript style (SE72) and switch to it with the following control command inside the text. To come back to the original smartstyle within the same text (if you need it) I think you may use style name &#42;.
    /: STYLE <stylename>
    (please search SDN if you need more information)

  • How to open all the pages in the same window?

    I have set up 8 pages in my website. And i want to open the pages in the SAME window. What should i do?
    P.S. I nearly follow all the styles and command made in the video of 'Bayside Cable Car Website'. The pages should be opened under the navigation bar. However, i cannot do so.
    Please help.
    Thanks a lot.

    the_shocker wrote:
    I see no point in contributing dumb and useless stuff just to justify an ego...pointless....but kids hey.
    Wait, are you talking about your post or someone else's? It seems double standard and oxymoronic for you to contribute dumb and useless stuff about dumb and useless stuff just to justify your ego... pointless... but old people hey.
    best,
    Shocker
    Far too easy to wind-up......keeps me entertained though, thanks.

  • How do i move photos between differant users on the same mac

    I am trying to copy some photos from iphoto and move them to another user on the same mac. Can anyone help please?

    Hello Whigged-out,
    It sounds like you would like to share one library between two different users on your iMac.  I found an article with steps you can take to accomplish this:
    iTunes: How to share music between different accounts on a single computer
    http://support.apple.com/kb/ht1203
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How to navigate from webdynpro view to bsp page in the same window?

    hi i want to call a page by its url.
    i am using the "create_external_window" method.
    but it is displying my url in a new window.
    i want to display it in the same window.
    the second page i want to call is a bsp page.
    i tried also the portal manager and NAVIGATE_ABSOLUTE but nothing happens.
    it displays nothing.
    thanks for your hints.

    >
    Achref zaidi wrote:
    > hi i want to call a page by its url.
    > i am using the "create_external_window" method.
    > but it is displying my url in a new window.
    >
    > i want to display it in the same window.
    > the second page i want to call is a bsp page.
    >
    > i tried also the portal manager and NAVIGATE_ABSOLUTE but nothing happens.
    > it displays nothing.
    >
    > thanks for your hints.
    Hi,
    Navigate_absolute method has navigation mode. Can you please tell me what you mean by nothing happens ? This will work only in Portal environment.
    So if you try with portal then remember to use  Navigation_mode as inplace.

  • Opening a web page in the same window ...

    Hi all,
    I wanted to open a web page in the same content area(window) and not in an external window . Could you tell me how its done ...
    Regards,
    Jayant.

    hi
    check out this link
    http://help.sap.com/saphelp_erp2005/helpdata/en/83/e7c24122e3c317e10000000a155106/content.htm
    create a exit plug as mentioned in link.
    in the action event handler of button gives this.
    public void onActionExitButton(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionExitButton(ServerEvent)
    String logoffURL="http://help.sap.com/saphelp_erp2005/helpdata/en/16/d3643fce8bb01ae10000000a114084/frameset.htm";
    wdThis.wdGetDynamicProgrammingInterfaceViewController().wdFirePlugToexit(logoffURL);
        //@@end
    hope this helps,
    Regards,
    Arun

  • Navigate to another page in the same window problem

    Hi,
    I have a problem with the following scenario:
    When a user clicks on a link in a portal, a web dynpro page opens in new window with the url similar to this
    http://server:port/irj/servlet/prt/portal/prtmode/runtime/prtroot/pcd!3aportal_content!2fCompany!2fIntranet_v2!2fApplications!2fZZ!2fPages!2fBrowseCopies
    So basically in this way we only want to display this single application, without portal top level navigation, inner page, masthead etc.
    The problem occurs when we try to implement navigation from this web dynpro application to another page
    When we use WDPortalNavigation a new window opens but we want the navigation to happen in the same window.
    We cannot use LinkToUrl control with _self parameter because its not supported.
    We also cannot use HttpServletResponse by getting it through com.sap.tc.webdynpro.services.sal.adapter.core.IWDWebContextAdapter class.
    We also cannot use ExitPlugs because the error occurs with the message that the ExitPlugs cannot be used in portal.
    Basically I need a redirect to another page. Any ideas how to solve this problem?
    Regards,
    Ladislav

    Hi,
    the link which initially opens this web dynpro application page is contained in a html page.
    Here is the code:
    WDPortalNavigation.navigateAbsolute(
      "ROLES://portal_content/Company/Intranet_v2/Applications/ZZ/Pages/PurchaseRequests",
      WDPortalNavigationMode.SHOW_INPLACE,
      WDPortalNavigationHistoryMode.NO_HISTORY,
      "requestNr="+wdContext.currentContextElement().getRequestNr());
    Regards,
    Ladislav
    Edited by: Ladislav Pomezny on Jul 2, 2009 1:23 PM

  • Displaying a page in the same window

    Hi,
    I have a submit button in the jsp page. When I click on that button the jsp page should be displayed in the same window. And also the page shouldn't have the toolbar and the menu bar displayed i.e., it should be full screen in the same window.
    I am able to to the full screen portion but, it is appearing in a new window. It's a java scipt code:
    code]
    <script>
    <!--
    /*Full screen window opener script: Written by JavaScript Kit (www.javascriptkit.com) More free scripts here*/
    function winopen(){
    var targeturl="start.jsp"
    newwin=window.open("start.jsp","","scrollbars")
    newwin.moveTo(0,0)
    newwin.resizeTo(screen.width,screen.height)
    parent.exit()
    return false;
    newwin.location=targeturl
    //-->
    </script>
    <form>
    <input type="button" onClick="winopen()" value="Open window">
    </form>
    How will I do this?
    Shipf1.

    Hi,
    I have a submit button in the jsp page. When I click on that button the jsp page should be displayed in the same window. And also the page shouldn't have the toolbar and the menu bar displayed i.e., it should be full screen in the same window.
    I am able to to the full screen portion but, it is appearing in a new window. It's a java scipt code:
    code]
    <script>
    <!--
    /*Full screen window opener script: Written by JavaScript Kit (www.javascriptkit.com) More free scripts here*/
    function winopen(){
    var targeturl="start.jsp"
    newwin=window.open("start.jsp","","scrollbars")
    newwin.moveTo(0,0)
    newwin.resizeTo(screen.width,screen.height)
    parent.exit()
    return false;
    newwin.location=targeturl
    //-->
    </script>
    <form>
    <input type="button" onClick="winopen()" value="Open window">
    </form>
    How will I do this?
    Shipf1.

  • Smartform: windows in different pages having the same name

    Hi all gurus,
    first of all, please forgive me if I'm missing something, I'm quite new on the Smartform argument.
    Shortly; I have to modify some smartforms made by someone else in order to meet customer's desiderata.
    These smartforms are all different but share a common "structure", which is:
    2 pages definition, P_FIRST and P_FOLLOW, which have actually the same internal "structure": they have a LOGO window, then a TITLE window, then a MAIN window, then a FOOTER, and so on.
    In order to do my task, I added a new window in both P_FIRST and P_FOLLOW, let's call it CERTIFICATION_LOGO.
    Moreover, I inserted a new graphic element under the LOGO window.
    Modifying the smartforms, I noticed I have two different kind of behaviour:
    1) in almost all these SF, I add a window called CERTIFICATION_LOGO in P_FIRST, then I have to add a windows to P_FOLLOW which cannot have the same name ( e.g. I called it CERTIFICATION_LOGO_FOLLOW);
    2) in just one SF, when I add a window P_FIRST, then the exactly same window is added to P_FOLLOW. When I modify CERTIFICATION_LOGO window in P_FIRST, also CERTIFICATION_LOGO in P_FOLLOW is updated.
    I can't find a reason why such different behaviour. Actually I'm testing my solution and found that the only smartform that does not work is the only one which I have described with 2). So my guess is that there's some setting anywhere which leads to that different behaviour and this could be a cause of a raised exception... but maybe it's just a case, also because I found in debug that in this standard call in the form PROCESS_TEXT_WINDOW:
    perform xsf_window_open using docentry-tdwindow
                                    docentry-tdwtype.
    where docentry-tdwindow = 'LOGO' and tdwtype = 'T', the system exit the process at the first execution of:
    check xsfop-xsf = c_true.
      check not xsf_obj is initial.
    What does xsfop-xsf should mean? In my case xsfop-xsf = false and xsf_obj is initial... then the SF is not generated.
    What am I missing gurus?
    Thanks in advance,
    Matteo
    Edited by: Matteo Montalto on Aug 26, 2011 4:49 PM

    When you have common windows (LOGO on page first and logo on page next, etc.) you actually have one window definition.  What you put in the window is therefore always displayed for all pages.  In your case, instead of creating your new window and copying it into the follow page, you have two different windows, which now must be separately maintained, as to content, placement, borders, shading, conditions, etc.

  • Unable to return from a column link to popup page in the same window

    Using 3.2
    I have a tabform with a link to a pop-up page (and passing values). It's working fine but when I 'Save' on the pop-up, instead of returning to the originating page, it opens up a new window with the originating page on it. How do I get back to the originating page? I'm sure it's in my branch or button url syntax but can't figure it out. I tried creating a process to 'close window' but still opens up a new window.
    FYI - if I just do the 2nd page as a normal page, all is fine but the users would prefer a popup.
    Thx.
    Sandie

    Use the template 'Popup' for your page.
    Create a After Submit Process and select the option 'Close Window'. Make sure this is the last process (highest sequence number). This will automatically closes the popup window and user will be on the parent page.
    Do not create any branches on the popup page or any target in your Save button.
    If you need to refresh the parent page with the information entered on the popup page, enter the following code, at the end, in the process that does your DML (a process that comes before the Close Window process).
    htp.p('<script>');
    htp.p('window.opener.location.reload(true);');
    htp.p('</script>');
    I have created popups this way and they work, at least in 3.2version. In APEX 4.0, the parent page is not refreshing with the data entered on the popup page, which I'm currently investigating into. If you have a different code to refresh the parent page, please share it with me.
    Edited by: rbheemir on Nov 10, 2010 2:56 PM

  • How to open web pages in the same window

    When i click on a link in a search engine it always opens the web page in a new tab. Its annoying and i would prefer mozilla to open it in the current page. How can this be done?

    hello, this is a preference in your google search settings. go to google.com/preferences and disable the option to ''Open search results in a new browser window''.
    https://support.google.com/websearch/answer/425

  • Read action from a different view in the same window

    Hi all,
    I have a view which contains a ViewContainerUIElement and a ButtonRow. A second view with form fields is embedded in the container of the first view. Validation of the form fields in the second view depends on the button pressed in the first view. How can I determine in the second view, the name of the action that is executed in the initial view?
    Thanks and regards,
    Patrick

    Patrick - I answer this question in a previous forum [Close a popup of another view being on the Main View;
    If you used the wizard in order to create the popup the wizard create a button "OK" that I'm guessing you change to "SAVE", you will need to create an EVENT HANDLER under your method list tab in my example my EVENT HANDLER is "SEARCH_RESULT" once the user click the "OK" button it will call SEARH_RESULT event and it will do your code inside the event.
      DATA LO_WINDOW_MANAGER TYPE REF TO IF_WD_WINDOW_MANAGER.
      DATA LO_API_COMPONENT  TYPE REF TO IF_WD_COMPONENT.
      DATA LO_WINDOW         TYPE REF TO IF_WD_WINDOW.
      data LO_VIEW_C         type REF TO if_wd_view_controller.
      lo_view_c = WD_this->wd_get_api( ).
      LO_API_COMPONENT  = WD_COMP_CONTROLLER->WD_GET_API( ).
      LO_WINDOW_MANAGER = LO_API_COMPONENT->GET_WINDOW_MANAGER( ).
      LO_WINDOW         = LO_WINDOW_MANAGER->CREATE_WINDOW(
                         WINDOW_NAME            = 'SEARCH_POPUP_WIN'
      *                  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
    lo_window->subscribe_to_button_event( button = IF_WD_WINDOW=>CO_BUTTON_OK
      action_name = 'SEARCH_RESULT'
      action_view = lo_view_c
      is_default_button = ABAP_true ).
    *  lr_popup->open( ).
      LO_WINDOW->OPEN( ).
    the subscribe_to_button_event will call the event handler and it will trigger your code inside the event.
    Thanks
    Jason P-V

  • Can multiple web pages use the same cookie?

    I have an applet that will reside in several different web pages. The applet creates a cookie that saves user preferences and loads them when the user next uses the applet. The problem is that I want the same cookie to load when the user views the same applet at a different IP Address. Is this possible? If so, how? I am currently using the netscape JSObject stuff to write and read my cookie.
    Thanks,
    Derek

    Sorry, you cannot access cookie across domains.
    If being able to access same cookie from different pages in the same domain satisfies you need, read on.
    Let's suppose you have two html files kept on your server as follow::
    MyHTML/main.html
    MyHTML/subDir/A.html
    Now, let say that when you save the cookie, the path is not specified. A.html will not be able to access the cookie set by main.html. However, if you specified PATH=/ (along with other values and expiry date-and-time), both html files will be able to access the same cookie via the document.getMember method.
    This is more of a JavaScript question than a Java question and you might want to pay a visit to the link below:
    http://forums.internet.com/WebX?[email protected]^[email protected]
    you can go to the bottom of that page, click search and type in cookie and you'll see a lot of Q&A on the topic.
    Good Luck
    V.V.

  • I am trying to store music for two different iPods on the same computer, against two different Apple IDs. When I try and download content from the Cloud I get an error message?

    I am trying to store music for two different iPods on the same Windows 8 computer, and when I try and download content from the Cloud I get an error message. Is it possible to have two different Apple IDs on the same computer?

    Unfortunately you've discovered too late how important it is to maintain an up-to-date backup of your iTunes library (and all other data of value).  You could, before wiping the drive, have considered making use of a commercial data recovery service that could (albeit at considerable cost) have extracted your library from the hard disk, even if virus infected.
    In the absence of that option, you will need to restore the content of your library from its original sources:
    Depending on your location, you may be able to re-download any iTunes Store purchases that are still available on the Store
    Likewise, most digital purchases from Amazon (including auto-rip copies of purchased CDs) should be available from the Amazon Cloud and via the Amazon Music application - the same may be true of other commercial sources for digital downloads
    Content imported from your CDs will have to imported again
    The specific situation that you describe regarding the music imported from your friend's external HDD suggests that either the source is badly organized and/or originates from a source other than iTunes (other media players may use alternative tags for information like artist, title, album, etc. that are not wholly consistent with how iTunes handle these).  Without details of the issues you're seeing it is difficult to suggest a remedy other than going through the media album-by-album, track-by-track, and correcting the inconsistencies.
    In the absence of a backup or access to the original library data there is no option other than painstakingly recreating your library as described above.  As you do so, you'll now realize how important creating and maintaining backups are - in my case I have at all times three separate duplicates of my library, in two different locations, where none is ever more than a week old compared to the content of my master library.

Maybe you are looking for

  • Possible to view presentations with embedded clips  on the ipad from an external wifi  drive?

    Hello, first of all I am happy to have joined this community, my name is Chris from Germany. I am wondering if this setting is possible: I have bought an external wifi drive (Seagate Satellite Goflex) as well as the iPad4. I am giving lectures (power

  • Copy problems

    I have a HP LaserJet M1319f MFP.  The printer seems to work fine when printing from Word, etc.  The problem is copying.  One side of the paper put out is lighter than the other.  Is it a problem I can fix?  Like a new scanner light?  Or what please?

  • I have a Mac Air is there a device you can buy so I can use a cd drive

    I need to install something on a Mac Air using a CD drive is there a device I can buy to do this?

  • Reducing decimals 3 to 2

    Friends, I am strugling with this issue. Need to reduce output decimals from 3 to 2 for field VBDKA-NTGEW. Appreciate if i can get some help or suggestion on this please. I tried this but no luck &VBDKA-NTGEW(.2)&. Thank you, Bobby

  • 10.5.4 Server/10.3.9 Client user home mounting issue

    Hi all, hopefully someone can help me out with this. I know this might be an AFP issue but if you read on you'll see why I think it might be Open Directory's "fault". I'm the admin at a school running Leopard Server with Leopard, Tiger, and Panther c