How to open a new IE page when user clicks on a button or link

Hi Experts,
I have created WD program which fetches data from R/3.
I have to create a link or button on the WD program. When the user will click on the link, another IE page should open. Some processing will be carried out by WD. The result of WD processing should be displayed in this new IE page.
Regards,
Gary

Hi Gary,
You need to create a seperate window and embed a new view in it. and yeah for accessing that window you need to create one apllication also which is connected to this window.
Then in the event handler of the button's click action write the follwing code:-
String deployableObjectName =
               wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
try {
               // Get deployable object part of target application.
               // Precondition: assume, that other application belongs to the same
               // Web Dynpro Project (Deployable Object)
               WDDeployableObjectPart deployableObjectPart =
                    WDDeployableObject.getDeployableObjectPart(
                         deployableObjectName,
                         <window name>,
                         WDDeployableObjectPartType.APPLICATION);
               urlToTargetApp =
                    WDURLGenerator.getWorkloadBalancedApplicationURL(
                         deployableObjectPart,
                         UrlParam);
          } catch (WDURLException e) {
          } catch (WDDeploymentException e) {
                          IWDWindow win1 =  wdComponentAPI.getWindowManager().createNonModalExternalWindow(urlToTargetApp,"Ouput");
win1.show();
This will open a new window and then in the wddoinit of the new window's view you can execute the bapi and display the content accordingly.
Regards,
sarbjeet Singh

Similar Messages

  • How to get login page when user clicks on browser's back button

    Hi,
    I am using struts framework.
    I have set property nochache=true in response header of all pages.
    So, browser does not caches my pages.
    Now,when I am clicking on browser's back button, I am getting following message..generated by browser.
    Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.
    To resubmit your information and view this Web page, click the Refresh button.
    Instead of that I want to show user a login page, when it clicks on back button.
    Can anyone help me?

    Hi,
    I agree with your suggestion.But my query is,
    If you have seen many credit card or banking websites,generally when user clicks on browser's back button,its redirectly user to login page of it for security reasons.
    I want to implement that kind of functionality.So need help on that point

  • When user clicks on "Like Button," the counter increases but nothing shows up showing the user recommends my site to their friends. What did I do wrong?

    When user clicks on "Like Button," the counter increases but nothing shows up showing the user recommends my site to their friends. What did I do wrong?
    I used the iframe code from Facebook's "Like Button" site; and inserted the code in the html widget popup box, then positioned it where I wanted it on my page and published. It looks fine (though I had to add "http" before my url to get it to show up).
    So, when a user clicks on button, a pop-up opens asking for Facebook password. When I (the user) enter a password, nothing happens after that. I thought the idea was that a user would be able to show their friends that they like my website. After I entered my password in pop-up after clicking on "Like" I went to my facebook page (a company page) to see if it showed that I (the user that clicked on "Like" on iweb) recommended the website. But nothing showed up. I thought maybe it was because Facebook associated my password as the admin for the Facebook page so didn't count it. But a friend tried it and same thing happened. I went back and on one page I put in another facebook code for a combo Like/Send button. It shows up but acted the same as the regular Like button.
    Questions:
    1. Is this the way the Like Button is suppose to work? Only benefit of Like button being that it just counts the clicks on the Like button and does NOT let users share their recommendation with their friends?
    2. If it's suppose to let users share their "Likes" with their friends, what did I do wrong? There were three types of code but in reading discussions, they all say to use iframe. (I used the first choice which I think was html for Javascript SDK and put that in my HTML Snippit box and the Like/Share button showed up on my iweb page next to the facebook icon and the words "likes this" but when I click it, I don't see instructions that it's sending my recommendation to my friends.)
    I must have done something wrong, but can't figure out what. Does anyone know? If the only benefit of the Like Button is the counter, it doesn't seem worthwhile.
    Thanks to anyone who can figure this out!  My website is couponsforfun.com

    You want something like this?
    http://home.wyodor.net/demoos/facebook/
    The send button sends the link to their friends in the address field with a message.
    They recieve a message in the inbox.
    There's no post on a page.
    If they want that, then they should share the link themselves.
    Perhaps it's best to study what facebook has to offer and how it works instead of guessing what it is supposed to do and be disappointed.

  • When I try to access a web page or link from a web page I receive an error message like "Server not found" or "Unable to connect." After repeated "try again" attempts the page will load, but when I click on a button or link, the same thing repeats. Why?

    When I try to access any web page or any link from a web page, I receive an error message such as "Server not found" or "Unable to connect." After repeated "try again" attempts that the page will load, but as soon as I click on a button or link, the same thing repeats. Any suggestions?

    When I try to access any web page or any link from a web page, I receive an error message such as "Server not found" or "Unable to connect." After repeated "try again" attempts that the page will load, but as soon as I click on a button or link, the same thing repeats. Any suggestions?

  • Glass Pane( preventUserInput when user clicks on Search button in af:query)

    Hi,
    We are using glass pane implementation on a search screen.
    When I click on Search button in af:query component (having selectInputDate (Date Picker) components)., glass pane is firing correctly,
    but second time when I am trying to select date using Date Picker (and Change the Month), glass pane is fired (entering into handleBusyState function) and calendar popup is not opening.
    I folled the below article for implementation.
    url: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/27-long-running-queries-169166.pdf used for glassPane implementation.
    Can any one help me for this issue.

    Hi am using the following code (javascript) -- Jdev(11.1.1.3)
    function preventUserInput(evt){   
    var eventSource = evt.getSource();
    var popup1 = eventSource.findComponent("showGlassPanePopup");
    if (popup1 != null){
    AdfPage.PAGE.addBusyStateListener(popup1,handleBusyState);
    evt.preventUserInput();
    //JavaScript call back handler
    function handleBusyState(evt){ 
    var popup = AdfPage.PAGE.findComponentByAbsoluteId('r3:0:r1:0:showGlassPanePopup');
    if(popup!=null){
    if (evt.isBusy()){
    popup.show();
    } else if (popup.isPopupVisible()) {
    popup.hide();
    AdfPage.PAGE.removeBusyStateListener(popup, handleBusyState);
    ... End of Code..
    This line .. (popup.isPopupVisible()) removes the Popup , if popup is visible...
    If u want the view am using..
    SELECT EMPNO , DEPTNO , HIREDATE FROM EMPLOYEE (sample Application i have created), created a view criteria for this..
    ( (EMPNO = :empNum ) AND (DEPTNO = :deptNum ) AND (TO_CHAR( TO_TIMESTAMP(HIREDATE), 'yyyy-mm-dd hh24:mi:ss.ff') = :hireDts ) ) (View Criteria)
    .. <af:clientListener method="enforcePreventUserInput" type="query"/> (added for af:query)
    Popup Used: <af:popup id="showGlassPanePopup" contentDelivery="immediate">
    <af:dialog id="d2" type="none" closeIconVisible="false">
    <af:panelGroupLayout id="panelGroupLayout1" layout="vertical">
    <af:outputText value="Processing......Please Wait.." id="ot97"/>
    </af:panelGroupLayout>
    </af:dialog>
    </af:popup>
    1. When i click search for first time.. it is showing like -- Processing .. Please Wait'
    2. When i click select Date picker it is show -- Processing .. Please Wait'
    and show a calender popup window.. If we change the month ... it will again show like -- Processing .. Please Wait'
    and it will not open calender window.
    Please Help me on this..Am facing trouble due to this.
    Thanks in Advance.
    Edited by: user10115793 on Nov 15, 2011 12:58 AM

  • Issue of data getting wiped out when user clicks on back button..

    Hello Gurus,
    I have a selection program which displays ALV on execution. Now I have programmed the "Back" Button of standard toolbar so that when comeone clicks on it, it should leave to selection screen.
    WHEN 'TBACK'.
          LEAVE TO TRANSACTION SY-TCODE.
    But when I do that, the values entered by user during execution of selection screen wipes out and all the selection fields become empty. How can I make sure that when sure clicks on 'Back' button, the selectiuon screen is presented but with values in which user put during execution.
    Regards,
    Rajesh.

    Hi Rajesh ,
    Leave to transaction sy-tcode is as as good as call transaction...so basically using this statement will start the transaction afresh..and give a new selection screen....
    Better option would be to leave to screen 0 (preferaby used for a report )which will take you back to the previous screen processed or leave to screen XXXX for a particular screen( in case of a module pool )
    Hope it helps
    Regards
    Byju

  • Opening a new browser page when clicking on a link

    hi there
    when i am in an internet page and want to open a link, sometimes it will open a new window and other times it will take the page that the link is on, and change that page into the new page that I linked on.
    If I want to keep that page that contains the link, how do I get a new window to open when I click on the link and keep my orginal page open as well?
    Thank you

    Press the Shift, Option, and Command keys while clicking on the link. The exact combination of keys needed varies depending on the settings in the Tabs section of Safari's preferences; you can check this screen to find out the current state without changing any settings.
    (19980)

  • How to open a new OAF page in new window while clicking submit button

    Dear All
    I am facing one problem.I have to pass some parameter in new page only after validation.I can't do validation in processRequest bacause I perform validation after clicking the submit button.
    So I have to write redirect code in processForm Request. I can not use simple "Button" bean since I have to set destination uri which could be set only in processRequest.But I can not pass parameter with it in process request.
    Thats why I have decided to use submit button but there is not target frame option in property inspector,So I am not able to open it in new window.
    Kindly give me some suggestion .
    Thanks in Advance

    hi,
    u can use submit button. U need to handle submit button press in processFormRequest method.
    if(pageContext.getParameter("Submit"!=null))
    // validate your parameter
    if parameter u capturing are valid then...
    pageContext.setForwardURL(func, params ...............) // check devguide for details
    if u want to access these parameter in second page . you can write this logic to processRequest of target page.
    U can refer toolbox tutorial drilldown and createpage examples for implementation details.
    Regards,
    Ram

  • How to open a new pop-up window on click of a link using OAFunctions

    Hi ,
    I have a requirement to open a new pop-window on click of the responsibility name(functions available under responsibilities). The current URL /link is driven using OAFunctions.
    Any idea, how can i open a new window while still keeping the parent window as it is?
    Regards
    Puja

    This can be achieved, you need to first create the javascript function which will open the popup and add that to the HomePage through and then call that function during onLoad of the HomePage. Here is a code sample,
    1. Extend the page level controller and write a new controller
    2. Write the following code in processRequest before calling super.
    StringBuffer popupScript = new StringBuffer("function customPopUp() { ");
    popupScript.append("newWindow = window.open(theURL,'newWindow','toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,location=no,width=300,height=500);}");
    pageContext.putJavaScriptFunction("customPopUp", new String(popupScript));
    OABodyBean bodyBean = pageContext.getRootWebBean();
    bodyBean.setOnLoad("customPopUp");
    3. Use personalization to replace the existing controller with your extended controller and the popup should be launched whenever you enter the homepage.

  • Why is firefox opening a new site (clkmon) when i click on a link, and why does the site grey out and show the message access au site direct?

    when i click on a link some times a new site opens with that shows clkmon as adress. when i go back to my homepage the page greys out and shows in french access site au directe. as well i constantly see a white bar that shows on the right side, when i click on the X for closing it opens the clkmon site.

    thanx for the help, got rid of the problem

  • How to add a new line item when i click on UPDATE in orderpage B2B webshop?

    Hi Gurus,
    I need to add a new line item based on some condition when i click on update in the order page in b2b web shop. Is there any way to pass some parameters to the BADI crm_isa_basket_items and create a new line item when i update? If so can you please tell the parameters that i need to pass to the badi.
    Any help will be highly appreciated!!!!!
    Thanks in advance,
    Lakshman.

    You can put condition when you call java script function while clicking on "update" button.
    On order.jsp  update button call "submit_refresh()" java script function. You can check your condition over here.
    You can find this function in "orderTools.js" file.
    And when you enter item in last line on order page and click on the update button it will automatically add new empty lines on your order page as per your selected new line items from drop down box.
    Or may be you can call your custome action class when you click on update to check particular condition.
    I hope it will help you.
    Thanks and Regards.
    eCommerce Developer

  • Tabs opening as new windows even when I click open in a new tab

    All of a sudden links that normally opened as new tabs are now opening as new windows. Even when I specifically say open as a new tab it still opens as a new window. I have checked the settings in the tab option so it should be opening them as new tabs. it is highly frustrating!

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • How do i enable new tab because when i click on it it doesnt pop up?

    I think there was a recent update and now I cannot get to a new tab i went to options and looked under tabs and the only thing not selected the tab preview. I'm not sure if I'm missing something or if it's a little glitch.

    See this article about the New Tab page (about:newtab):
    *https://support.mozilla.org/kb/new-tab-page-show-hide-and-customize-top-sites
    Is the browser.newtab.url pref still set to the about:newtab page?
    *http://kb.mozillazine.org/about:config
    If that is the case and you do not see the 9 squares with a possible link to a web page then see if you have a grid icon in the top right corner to enable the new tab page (i.e. browser.newtabpage.enabled should be true).
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Firefox was a good, but now it's slow and when I search google I have to refresh the page when I click the back button. This is driving me to other browsers.

    When searching in goole, If I click on a link and want to go back a page firefox does not load the previous google search without refreshing the page. Because I use google frequently this is very annoying. Firefox has also been freezing and crashing most frequently of any of the other browsers that I have been driven to use. I'm not sure why I should keep it on my computer at this point.

    Regarding the Google results page blanking out when you go back, this occurs when using a combination of three settings, which may be fairly common:
    * Zoom level higher than two steps (120%; the newest versions of Windows apparently default to 125%, which Firefox detects and adopts)
    * Google search set to instant prediction results (default on Google search, but can be disabled in Search settings, see [https://support.google.com/websearch/answer/186610 Google Instant Search Help])
    * Opening results in the same tab, then using the Back button to return to the results page (default on Google search, but can be changed in Search settings to open results in a new window/tab, see [https://support.google.com/websearch/answer/425 Google Search Help])
    Firefox's cache feature attempts to maximize speed for forward and back actions by storing the last rendering of the page. Something about the instant prediction results ''with zoom'' is causing Firefox to briefly display the results and then they blank out and you have to reload the page to get them back. The mystery is why this only occurs (so far as I have heard) on Google? Is one of Google's scripts blanking out the page? Does Google care that it's messing up Firefox users?
    For now, if you do not want to or cannot change any one of the three factors needed to experience this problem, you can disable the storage of the last rendering of the page. Then Firefox will skip the shortcut and lay it out fresh, which is known to work. As noted in earlier posts, you make this change using the about:config preferences editor.
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''sess''' and pause while the list is filtered.
    (3) Double-click the '''browser.sessionhistory.max_total_viewers''' preference and change it to 0 (that's a zero).
    This thread has a lengthy discussion: [https://support.mozilla.org/en-US/questions/970863 When I go back to Google search results page, it takes me to a blank Google screen].

  • How to stop the Flex application when user clicks on Cancel button from JS-confirm message?

    Hi All,
    I use the next code when a user clicks on a link:
    private function clickHandler():void
          ExternalInterface.call('confirm', 'Of course you want to go to the Adobe forums!');
          navigateToURL(new URLRequest('http://forums.adobe.com'), '_self');
    This will show up the javascript confimation box. But when the cancel-button is clicked, the user goes straightly to http://forums.adobe.com...
    How to stop Flex performing the next code when a user clicks on the Cancel button?
    Or, how to catch which button is clicked by a user in Flex?
    Thanks!

    I agree with Mr. Hall that using mx.controls.Alert in Flex may be a better route.
    Show the Alert like this:
    // show an alert with a question and yes and no choices
    Alert.show( "Would you like to go to the Adobe Forums?", "Question",
         Alert.YES | Alert.NO, this, closeHandler, null, Alert.YES );
    Then handle the response in the closeHandler() function:
    protected function closeHandler( closeEvent:CloseEvent ):void
    if( event.detail == Alert.YES )
         navigateToURL( new URLRequest('http://forums.adobe.com'), '_self' );
    else if( event.detail == Alert.NO )
         // they chose no
    The following documentation on Alerts may be helpful:
    http://www.flexafterdark.com/docs/ActionScript-Alert
    Let me know if that helps...
    Ben Edwards

Maybe you are looking for

  • Account assignment defaulting to U after MRP run in Purchse requisitons

    hello, i have got one ticket the material is non valuated (UNBW)- when MRP is run - purchase requisitions are getting generated as having default acount assignment category "U". This is creating problem in automatic creation of PO as U category is no

  • Mini Player Issues

    I've been using iTunes 9.2.0.61 and no matter how many times I try to drag the mini player to the lower right corner of my screen; anytime I maximize iTunes and re-minimize it to the mini player, the player re-centers itself in the middle of my scree

  • Does apple tv work with hdmi to VGA hd15 cable?

    I have a Phillips tv and there is no hdmi to hdmi connection. But there is a VGA 15 input. Does apple tv work with it? I seem to be getting a black screen.

  • LoadSound

    Hello, I am wondering if anyone out there can help me!!! I'm in desperate need of a fix for a sound problem i have. I know how to fix this problem if i import the sound into the flash file. But i cant do this with this example because the sound file

  • On my college simnet, It says "browser system requirements not met", How do I fix this so I can do my school work? the browser has been updatedt

    I'm not able to click on a selection for my school work, every time I go on the selection my cursor turns into a red circle with a line through it and it says browser system requirement not met and my firefox browser has been updated to the latest ve