Submit button on Adaptive Portlet Launches into new Browser

Here we go again... I'm using the PTW version 2.2 with an Adaptive Portlet. When I click on the Submit button, It launches a new instance it the Browser which is outside of the portal. Anyone else encounter this?
Paul

I had the same problum but mine was when i triggered an onclick event for the button. I resolved it by add the code below to call my javascript function if key 13 (Enter on keyboard) was stroked. __returnUser(); is the javascript function I am calling if the Enter key is hit. Hope this helps you.
function keyHandler() {  if (event.keyCode == 13 )  {   __returnUser();   event.cancelBubble = true;   event.returnValue = false;     } }
document.onkeypress = keyHandler;
Nick Simpson
(e)[email protected]

Similar Messages

  • Not launching in new browser window?

    I have setup a Flash viewer in a HTML Div container. In the Flash I have put a button which, when clicked, launches a new browser window with another site I've done to appear in.
    When I test this in Flash its working fine and launches the new window as it should.
    But when I go into Dreamweaver where I have placed the Swf. in the Div container, I test it locally in a Firefox browser window. The viewer appears and it works correctly, but when I click the button to launch the new browser window it just opens a window with an error msg 'unable to connect, etc'.
    Any idea why this wont work? Is it because it needs to be live (online)?

    Hi,
    What is the link that you are trying to open.
    Please check if you have placed the protocol - like this http://www.xmy.com" format
    and used "_blank" as target in navigateToURL API.
    Warm Regards
    Deepanjan Das
    http://deepanjandas.wordpress.com/

  • Embedded hyperlink into new browser tab/window

      Hi Team,
    There is a requirement in my project for that, need to open embedded hyperlink into new browser tab/window, hyperlink is available in the pdf file which is open in browser (Internet Explorer).
    More than 2 lakh user is using the product so, there is any way to set the hyperlink target as a _blank so that the link open in new tab/window.
    Is there any adobe API is there which can support the above requirement?
    Is there any other way which can fulfill the requirement?
    End user is more than 2 lakh so, am not going to change the setting of Adobe reader as well as browser.
      Need your help to resolve the issues.
    Regards,
    Rupesh

    Yes, there is an API that is supposed to do this in the Web brower.  Does it work?  Not reliably is what I have found because different web browsers seem to interpret the way that Acrobat calls for a new window differently.
    launchURL
    7.0
    S
    Launches a URL in a browser window.
    Note:    Beginning with Acrobat 8.1, File and JavaScript URLs can be executed only when operating in a privileged context, such as during a batch or console event. File and JavaScript URLs begin with the scheme names javascript or file.
    Parameters
    cURL
    A string that specifies the URL to launch.
    bNewFrame
    (optional) If true, this method launches the URL in a new window of the browser application. The default is false.
    Returns
    The value undefined is returned on success. An exception is thrown on failure.
    Example 1
        app.launchURL("http://www.example.com/", true);
    Example 2
    Add an online help item to the menu system. This code should be placed in a folder-level JavaScript file, or executed from the JavaScript Debugger console.
        app.addMenuItem({
            cName: "myHelp", cUser: "Online myHelp",
            cParent: "Help",
            cExec: "app.launchURL('www.example.com/myhelp.html');",
            nPos: 0
    Related methods are openDoc and the Doc object getURL method.

  • On Firefox 4, the back button does not work on a new browsing tab or window.

    Ever since I installed Firefox 4, I have noticed a problem that was not present with the previous version of Firefox. Whenever I open up Firefox and enter in a new web address, I cannot use the back arrow to go back to my original homepage; the arrow is ghosted out. The same problem exists when I open up a new browsing tab. Let me explain with an example. I open up my browser, and then I open a new tab (now there are two tabs open). In the new tab I type www.espn.com. Then I click on a link on espn.com. Say then I want to go back to the espn.com homepage that I just previously visited. I can't do it by clicking the back arrow; it's ghosted out. I have to physically type the address again (www.espn.com). Why has this changed? Is there a way to fix it? Why can't I just click the back arrow to go back to the espn.com homepage that I typed in originally (or my original homepage if I opened up a new window instead of a tab)? Oddly enough, if I go one link deeper into the espn.com site, I can then go back to the immediately preceding webpage, but not all the way back to the original espn.com homepage.
    I can't stand IE, but it doesn't have this problem. This problem also was not present on the old version of Firefox. I just verified this by testing the old version which I have installed on another computer.
    Please advise.

    Same problem here: I never had a problem with the previous versions and now I don't even get my homepage when I click Firefox. Instead, I am getting a blank screen that says "New Tab", only after I click the "Home" symbol I get my Homepage (Yahoo). The browser - back and browser forward button don't work anymore, very annoying. Normally a newer version should be an improvement but it looks like Mozilla really messed up with this "improvement". probably I am going to use Google chrome from now on.

  • PDF viewer into new browser window

    Hello,
    I use following code to open new browser window with PDF file. The URL passed to the method is link to SICF service which returns the PDF in the request with content-type = 'application/pdf'. New window is open with correct URL, but the content is not displayed - Refresh or Go button has to be pressed to display it. Don't you experience similar problem? Is this WD error or some IE security setting?
    Thank you and best regards,
    Ludek
      lr_window = lr_w_manager->create_external_window(
          url = ld_url
          title = ''
          modal = abap_false
          has_menubar = abap_true
          is_resizable = abap_true
          has_scrollbars = abap_true
          has_statusbar = abap_true
          has_toolbar = abap_true ).
      lr_window->open( ).

    Hi Ludek,
    Probably a compression problem. Have you turned off gzip compression for the pdf?
    Btw, an alternate solution without having a separate handler is to use the cl_wd_runtime_services=>attach_file_to_response() method.
    Best regards,
    Thomas

  • Launching a new browser from webGUI

    Is using mixed mode the best/easiest way to launch a new browswer passing parameters during a webGUI session?
    Is there a simple way directly from ABAP?  I tried using embedded JavaScript in ABAP, but didn't work.
    Thanks,
    Brian

    Jan,
    Good questions...
    By "mixed mode", I mean the ITS mode where it automatically uses SAP GUI for HTML to display screens when it can not find a template.
    We have a an ABAP report that is being called via webGUI from an outside application.  The users would like to click on a line of the report and "drill down" in a new browser window.  The "drill down" is to a URL that accepts parameters and does some kind of database lookup in PeopleSoft (dirty word, I know), then displays an HTML report.
    I think I may have found a solution last night.  There is a function called "ITS_BROWSER_WINDOW_OPEN" that appears to do exactly what I need.  I just need to test the parameter passing, etc...
    If you know of another way, please let me know as I am not 100% confident in the function module yet.
    Thanks,
    Brian

  • Using Struts, On submit button in child window, its opening new window.

    We are developing a project using Struts and BC4J. I am opening a child window(window.showmodaldialog) from main window using struts action. Actually Child window is a search kind of page. User will enter the search criteria and press the sumbit button. I want to display the search result in the same window using datatable when jboevent="submit". But its opening new window and displaying the result in that. However in <html:form>, Even I tried the target="_self".
    I am not sure wether the associated action in the <html:form> is forcing to open a new window.
    Similar kind of thing I am able to achieve in other similar search page, it its not a child window.
    Please let me know what I am missing.
    Thanks,
    Arvind

    So you want the search window to submit back to itself so you see the search field and a result list..?
    In pure Struts terms either using "_self" or the name of the popup window in the <html:form> tag will do the trick
    You need to make sure that the inital window that you created as the popup search window has a name in the first place - can you specify this with showModalDialog()?
    BTW isn't showModalDialog an IE only feature...

  • I cannot find the 'organize bookmarks' button AND menu entry on the new browser

    1. The 'organize book,arks' menu item in the bookmarks menu is missing.
    2. When I try place the bookmark button along with other buttons, it never appears. (in customize toolbars)
    Help !!!

    "Organize Bookmarks" has been renamed to "Show All Bookmarks" in the Bookmarks menu in Firefox 4.
    I believe the bookmarks button will appear on the main toolbar only when the bookmark toolbar is hidden.

  • Default size of new browser window launched from community links portlet

    Does anyone know of a way to control the size of the new browser window that is launched when the user clicks a link in a Community Links portlet (or any other links that launch a new browser window)?
    We default all users to open links in a new browser window and I can't seem to find any rhyme or reason to how it sizes the resulting window. Some community links come out really skinny and un-user friendly, while others are nicely sized to near full screen.
    Is there some way to control this?
    Thank you.
    Darla

    Darla,
    Which version of the portal are you guys running? We are currently using 6.5 and all the links/Documents/ExternalLinks/Pages open up in a new browser window with the same sizes.
    Its basically controlled by javascript.
    G

  • Launching a new form using web.show_document

    Using 9iAS 9.0.2.1.1. and Forms9i I'm trying to get a form to launch a new browser window and open a new form in it. At present I'm using web.show_document to do this. However, I get an error message stating that 'Connection from new browser window is not supported'. From an earlier thread in this forum I found a possible solution which is to set the session.useCookies to false in the zone.properties, which I have done, but I'm still getting the same error. I've tried restarting the OC4J_BI_Forms OC4J and the HTTP server, but nothing makes any difference. Am I missing something?

    If you are attempting to print a report from a when-button-pressed trigger from within a form, you do not have to explicitly specify the server (hostname) nor the port. You can just use what I've found referred to as a virtual path to the server as I have done here:
    parm_string := '/reports/rwservlet?config=my_config&report=report_name'
         ||'&desformat=pdf&destype=cache'
         ||'&paramform=no&printjob=no'
         ||'&p_my_user_param1='||v_my_param1
         ||'&p_my_user_param2='||v_my_param2;
    web.show_document(parm_string,'_blank');
    You can specify a userid/password@connectstring within a named congifuration section of your formsweb.cfg file if necessary, e.g. my_config.
    Hope this helps.
    James K.

  • Adobe form with Webdynpro - Form is hanging on click of Submit button

    Hello Experts,
    My View has an adobe form that has many dropdowns and input fields. There are some fields which get automatically populated based on entries made by the users. There are several internal tables getting populated in the WDDOINIT method. I have a 'Submit Button' which when clicked should close the browser, retrieve data in the Context and do processing in SAP.
    When I click on the submit button, I get a 'Wait' symbol (the circle symbol) for a very long time and then the Connection time out error comes up.
    I commented the population of some internal tables in the 'Init' method. when I tested by clicking this button, it worked. The browser got closed and processing in SAP was done too.
    I am working with a fairly large data. 2-3 of the internal tables (that I commented) have 2000-3000 records. Is there is restriction on how much data the WDN can handle? I am stuck now because even though all codes are correct, the wdn is not able to handle the data.
    Any suggestions ?
    appreciate all your help! Regards, Liz

    This issue is resolved. This was due to loading a large data set to the form.

  • Submit button

    I created a form in Adobe Acrobat x pro when i email the form the submit button works. Now for Bi publisher i need to reduce the size to Acrobat 5.0 or later. When i do this the submit button doesn't work. On my computer the submit button works

    Are you opening it using the browser's PDF plugin, or using the Adobe
    plugin? The former are known to be very buggy, especially when it comes to
    form fields.
    On Wed, Apr 15, 2015 at 9:11 PM, paular56088711 <[email protected]>

  • Conditionally opening a new browser window from a JSP page

    When the user clicks on a button in my JSP page, I'd like to launch a new browser and display certain things in that browser window while leaving the original browser window open. The new browser should only be displayed if certain conditions are met.
    My thought was to invoke a javascript method in 'onLoad' which would determine if the new window needs to be launched.
    This is kinda what my page looks like:
    <jsp:root version="1.2" ................>
        <jsp:directive.page import="java.util.*, com.test.Configuration" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
         <ui:body binding="#{Page1.body1}" id="body1" onLoad="launchWindow();">     
         </ui:body>
       </f:view>
       <script type="text/javascript">
            function launchWindow(){
             if (Configuration.openWindow()) {
              window.open("hello.jsp", "newWindow", 'toolbar,width=400,height=400');            
        </script>     
    </jsp:root>
    My problem is that the call to "Configuration.openWindow()" does not resolve correctly. If I remove that call and simply make a call to "window.open()" all works. But once I put the condition in, nothing happens. I do not see an exception in my browser window but a new browser window does not open.
    Is my syntax correct. Can I make a call to the static method 'openWindow()' in my class 'Configuration.java'.
    I posted this same query on the JSF forum but received now replies. My question is more suited to the JSP forum and hence I'm posting this question here.
    thanks,
    tsc

    I have made some changes so that I do not directly access the 'Configuration' class in my javascript.
    I have a hidden field on my form and when the user clicks the button, in my back bean, I set a value for the hidden field. In the javascript function 'launchWindow()' I check if a value has been set for the hidden field and if yes, I open a new window.
    <ui:body binding="#{Page1.body1}" id="body1" onLoad="launchWindow(document.forms[0]);">
    <h:inputText id="hiddenField" value="#{formBean.hiddenValue}" />
    <script type="text/javascript">
            function launchWindow(form){
                alert("in lw");
                var test = form["form1:hiddenField"].value;
                alert("got test");
                if (test !=  "")
                    window.open("hello.jsp", "newWindow", 'toolbar,width=400,height=400');            
                alert ("done test");
    </script>When my page is first loaded, the launchWindow() is called and all the alerts popup as expected.
    When I click on the button (the back bean sets the value on the hidden field), my page is reloaded but this time its blank.
    Any ideas as to why this maybe the case?
    thanks,
    tsc

  • Access Java class in my JSP/JSF page and conditionally open a new browser

    When the user clicks on a button in my JSP page, I'd like to launch a new browser and display certain things in that browser window while leaving the original browser window open.
    My thought was to invoke a javascript method in 'onLoad' which would determine if the new window needs to be launched.
    This is kinda what my page looks like:
    <jsp:root version="1.2" ................>
        <jsp:directive.page import="java.util.*, com.test.Configuration" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
         <ui:body binding="#{Page1.body1}" id="body1" onLoad="launchWindow();">     
         </ui:body>
       </f:view>
       <script type="text/javascript">
            function launchWindow(){
             if (Configuration.openWindow()) {
              window.open("hello.jsp", "newWindow", 'toolbar,width=400,height=400');            
        </script>     
    </jsp:root>My problem is that the call to "Configuration.openWindow()" does not resolve correctly. If I remove that call and simply make a call to "window.open()" all works. But once I put the condition in, nothing happens. I do not see an exception in my browser window but a new browser window does not open.
    Is my syntax correct. Can I make a call to the static method 'openWindow()' in my class 'Configuration.java'.
    thanks,
    tsc

    I have made some changes so that I do not directly access the 'Configuration' class in my javascript.
    I have a hidden field on my form and when the user clicks the button, in my back bean, I set a value for the hidden field. In the javascript function 'launchWindow()' I check if a value has been set for the hidden field and if yes, I open a new window.
    <ui:body binding="#{Page1.body1}" id="body1" onLoad="launchWindow(document.forms[0]);">
    <h:inputText id="hiddenField" value="#{formBean.hiddenValue}" />
    <script type="text/javascript">
            function launchWindow(form){
                alert("in lw");
                var test = form["form1:hiddenField"].value;
                alert("got test");
                if (test !=  "")
                    window.open("hello.jsp", "newWindow", 'toolbar,width=400,height=400');            
                alert ("done test");
    </script>When my page is first loaded, the launchWindow() is called and all the alerts popup as expected.
    When I click on the button (the back bean sets the value on the hidden field), my page is reloaded but this time its blank.
    Any ideas as to why this maybe the case?
    thanks,
    tsc

  • Open URL in a new browser from a JSF backing bean

    I want to use commandButton action in jsf to launch a new browser instead of using commandLink.
    How do you launch url in a new browser window by firing up a method in backing bean?
    So far I am able to launch a URL within the same browser window. Here is my code:
    In jsp file:
    <h:commandButton rendered="#{openDataList.valueModifiable}" value="link" action="#{openDataList.link}" />
    In backing bean:
    public void link()
         try{
         FacesContext faces = FacesContext.getCurrentInstance();
         faces.responseComplete();
         ExternalContext context = faces.getExternalContext();
         context.redirect("http://www....");      }
         catch(java.io.IOException e)
    ...

    with a commandButton i dont belive you can
    well there are ways you can use javascript window.open
    or you can use a commanLink ans set the target
    but from my understanding there is no way to open a new browser from the backing beans ( this is because this is a client function and your backing beans are on the sever )

Maybe you are looking for

  • Displaying Custom field in shopping cart header

    Hi all, I know how to add a field to header and item levels of the shopping cart. - In the note 672960 it says 'Note that the header fields cannot be displayed for the shopping cart. If you define fields on the header, they can only be filled in BADI

  • Error while saving Product

    Hello all, I am trying to create a Product. On saving it says "data cannot be maintained for set type COMM_PR_SHTEXT" I have been advised to "Goto Transaction: COMM_HIERARCHY  Open your Category. On the Category Data - > Set Types -> include the Set

  • Using OS X and 2011 Word Crashes

    I am experiencing frequent crashes when using 2011 Word, especially when copying and pasting. Please help.

  • Re: Text extraction Plzzzz help me!!!

    you need to get your hands on an OCR. some time back I needed something similar, but could not find many OCR's written in java.

  • WARNING, WARNING - Delete and AutoCommit

    I've just hit a bug which has cost me a couple of days work and a fair bit of hair loss! Deleting data seems to autocommit. You cannot roll it back even though the autocommit button is off. There should be flashing lights in the front of the app sayi