Call subcontroller in new window

at the moment, i show a subcontroller in the middle of my page like this
<bsp:call url  = "myController.do" comp_id = "abc">
  <bsp:parameter name="mr_object"
                 value="<%= controller->mr_object %>" />
</bsp:call>
Now I would like to open the subcontroller page in a new window. I usually did this with
window.open("myController.do?parameter1=value1");
But now I am not sure how to pass parameters to the newly opened page. I know it works with simple parameters, but I assume that it won't work with references. Is that right? Is there another way?

Hi Daniel,
yeah you are right it does not work with references. I would do the following. Store the object the subcontroller has to access in the application class and pass the name of the attribute and the attribute which should get the reference as a parameter.
window.open("myController.do?name=controllerAttribute&value=applicationClassAttribute");
This makes is possible for the subcontroller to access the objects in the application class dynamically.
regards
Thomas

Similar Messages

  • Call iview in new window

    Hi.
    I am trying to call iview in new windows from other iview.
    So, I wrote code this.
    <A HREF="myLink"
      onclick="return EPCM.doNavigate('ROLES://portal_content/office/iviews/com.hho.newmail_iv',1)">
    This is an HTML Link
    </A>
    When we click Link, new windows opened and displayed iview with portal frame (header, menu).
    I want to display iview without portal frame.
    Anybody know how to this ?
    Regards, Arnold.

    Hi Arnold,
    The EPCM.doNavigate('target') takes several arguments, one of which let's you specify to open in new window.
    EPCM.doNavigate('target',2)
    0 (or missing): Same window
    1: New window without navigation
    2: New window (with navigation)
    The API is defined as:
    EPCM.doNavigate(String target, [int mode, String winFeat, String winName, int history, String targetTitle, String context])
    Also u can try this link for more details
    http://help.sap.com/saphelp_nw04/helpdata/en/18/3fb84033a8b533e10000000a155106/frameset.htm
    Hope this helps...
    regards,
    Vinoth

  • Javascript window.open call results in new window and not new tab.

    I'm creating an extension and using JS to open a new window. I've tried a variety of forms including something like: window.open("https://www.FOO.com" + dest,,"_newtab") and just window.open(url).. The option is set (tools/options) to open in a new tab. I've looked at preferences and forum suggestions to no avail. The proper url opens in a new window instead.
    I've disabled all other addons and plugins.
    I suspect I'm doing something silly, but would appreciate any insights.
    Thx, --Don

    Thanks for the reply. I'd seen those articles. AFAIK, the default settings are as they should be to open in a new tab (3 & 2 respectively). ...new_window.override.external = -1 though I don't know what that does or if it has any bearing on the issue.
    Thx, --Don

  • PCUI - open New Window via Button (to call custom URL / HTML viewer)

    Hello group,
    I have followed the "Use CRM PCUI HTML viewer to call a custom URL" in order to create a custom URL to BW web template.
    However, instead of displaying the URL in a tab (this works fine), I want a Button in the Accounts view to open up a New Window displaying the URL there.
    Here is what I have done:
    Create Field Group & Structure
    Create Event
    - Usage: Layout-Relevant
    - Text: Web template call
    Added Event to Toolbar Group ACC_OIC
    Define Application Layout (CRMM_ACCOUNT) for Event
    - Position: New Window
    - Screen Element Type: HTML
    - my field group
    - my structure
    Define Application Set (COMM_BUPA)
    - my structure
    - my access class
    The button is there, when clicked the read-method of my access class is executed, but no New Window is opened with the URL displayed.
    Is there something I am missing? Can the HTML viewer not called in a new window?!
    I appreciate any input you can provide me.
    Thanks and regards,
    Erik

    I have the same problem. PCUI toolbar button open url http://www.google.com in new window   .
    It sames so easy open a link on web page.
    why so hard in PCUI !
    My god , who design the PCUI.
    anyone solve this problem , let me know please. Thanks!
    [email protected]

  • Opening a New Window in SJSC

    Hi all,
    I have a slight problem here, inside my table I have a hyperlink, based on the records retrieved, this hyperlink will have different URLs. In the button_action() I have the following code:
    getHyperlink().setTarget("_blank");
    switch(type) {
            case Constants.TYPE_1:
                getHyperlink().setUrl("/faces/Page1.jsp");
                break;
            case Constants.TYPE_2:
                getHyperlink().setUrl("/faces/Page2.jsp");
                break;
            case Constants._TYPE_3:
                getHyperlink().setUrl("/faces/Page3.jsp");
                break;
            default:
                 logger.error("submit_action|Type invalid!");
    public String hyperlink_action() {
        //Add get row table here
        getRequestBean().setRequestObject(rowData);
        return null;
    }I need to pass the table row where the link is clicked into the RequestBean and open a new window to display some information but because the action() is not executed I cannot pass in any information at all.
    1) The problem is that because the URL is preset before the table is populated, when I specified a hyperlink_action() to be set as the action when the link is clicked, the method is not called. The new window page is opened directly. I cannot populate any JSF components as the action() method is not called to extract the row details and put into the request bean.
    2) If I place the .setURL() codes in the action method, the window created will contain the exact page as the parent window. The desired page will not be loaded.
    I'm now stuck. Would appreciate it if anybody can guide me in the right way of getting the new window populated with the results.
    regards,
    Michael

    If you want to open a new window besides your original window, then you have to do it with javascript. Put a code similar like this in your onClik property of your hyperlink:
    window.open("faces/Page1.jsp", "","toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=450");
    return false;When you click the hyperlink, it will open a second window of Page1.jsp. You can use if-else construct in javascript to choose which page you want to show.
    If you want to pass a value to the second window, you can use query string like this:
    window.open("faces/Page1.jsp?par1=value1", "","toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=450");
    return false;Passing a field value in table component to second window:
    window.open("faces/Page1.jsp?par1=#{currentRow.value['FIELDNAME']}", "","toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=450");
    return false;To retrieve the parameter in the second page (in this case Page1.jsp), put this in init():
    javax.servlet.http.HttpServletRequest req = (javax.servlet.http.HttpServletRequest) getExternalContext().getRequest();
            String par1 = req.getParameter("par1");After getting the parameter value, you can do the rest as your normal page, ie populating the page the way you like.
    AFAIK, the only way to open a new window is through javascript only. CMIIW.
    Hope that helps.

  • Open detaile navigation link in a new window

    Anyone got a quick and dirty on how I can open a detailed nav link in a new browser window? I thought I could do it by adding url parameters but that doesn't seem to work.
    I'm on EP6 SP3
    Thanks!
    -eric

    If its an Iview, there is a property called "launch in new window" for iviews. Just set that to "Display in seperate window"
    Regards,
    Tom Ficker

  • Hyperlink to open in new window on clicking via crystal client

    Hi,
    How to call hyperlink in new window via crystal client.
    I have main report. In that ,for two-three columns, I have made the hyperlink and I want that when user click on that column, it should open in new window.
    But I am unable to open the below link in new window.
    Hyperlink code :
    'http://epint1ent1.jpmorganchase.com/vps/docViewer?invoiceIndexKey='
    &columnname
    I am using crystal client XI R2.
    Please let me know any solution.
    Thanks in advance

    Vishal,
    In your Hyperlink add in the parameter for
    sWindow=New
    i.e. 'http://epint1ent1.jpmorganchase.com/vps/docViewer?sWindow=New&invoiceIndexKey='.....
    You obviously need to complete the Hyperlink fully.
    This should do the trick

  • How to call a servlet in new window without toolbar from OA page

    How to call a servlet in new window without toolbar from a OA page?Please provide sample code

    I have tried with the way suggested in Mukul's blog using javascript in Destination URI property.
    I tried to open a OA Page and from which forwarded it to a servlet..
    It is showing the error:
    Error Page
    Exception Details.
    oracle.apps.fnd.framework.OAException: The application id or shortname () you entered does not exist.
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1223)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1969)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
         at oa_html._OA._jspService(_OA.java:86)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:175)
         at oa_html._OA._jspService(_OA.java:96)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    oracle.apps.fnd.framework.OAException: The application id or shortname () you entered does not exist.
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getAppId(OAWebBeanFactoryImpl.java:5391)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:969)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
         at oa_html._OA._jspService(_OA.java:86)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:175)
         at oa_html._OA._jspService(_OA.java:96)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    oracle.apps.fnd.framework.OAException: The application id or shortname () you entered does not exist.
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getAppId(OAWebBeanFactoryImpl.java:5391)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:969)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
         at oa_html._OA._jspService(_OA.java:86)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:175)
         at oa_html._OA._jspService(_OA.java:96)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)

  • How to call new window and text element without changing print program

    Hi Friends,
       I have requirement like this . i have a standard print prog and custom form. i want add 2 to 3 extra windows in the form and i have to print some data. but how can v do this with out changing the print program. i know that to pick new fields through subroutines. but how can v call new windows and new text elements with out changing the print program.
    usually in the print program we write as follows.
    write_form
    window = 'HEADER'
    textelemtn = 'HEADER'
    can we accomplish this one also through subroutines or any other way is there.
    can any one pls suggest this.
    Thanks in advance.
    Rahul

    u  copy the standard print program and make custom program.
    write your own codes in it.
    assign this program in the place of standard print program.
    Reward points, if helpful.

  • Open html file in new window it is opening in calling browser.

    Hi ,
    Am using adf 11.1.1.5 jdev.
    I have a pop in which pdf,html and rtf file extension are mentioned in drop down list . As i select htlm and fire command button .
    The generated html file is opening in the same browser which is replacing the calling page . I want to open in new window .
    thanks .

    Hi,
    iff you use ADF Faces, use a goLink with a target to _blank. If you don't use ADF Faces, provide more details to the question
    Frank

  • Report dispplayed in new window when called from other report

    I have 2 reports based on data in a database, say rep1 and rep2.
    Rep2 is called by rep1 using this in de SQL-wizard:
    SELECT
    '<A HREF="SCHEMA_OWNER.REP2.show?p_arg_names=server_dom&p_arg_values='||COLUM||'&p_arg_names=db_key&p_arg_values='||COLUM||'">Report2</A>' "link to rep2"
    FROM table...
    I have made a portlet with the first report. When I click on the Report2-link, a new window is opened. How can I obtain that the report2 is displyed in the same portlet of the Portal?

    Please post this question to the Portal Applications forum.
    Thanks,
    Jerry

  • New Window for Form called from a form based on a procedure

    Hi
    I have a form that is based on a procedure that asks for an employee number. The number is then passed to the procedure. The procedure then calls the next form passing in the employee number.
    This works however I would like the form called from the procedure to open in a new window while still being able to pass in the employee number as a parameter.
    Is there a way to do this? I have tried looking at wwa_app_module.new_instance & wwv_media.show_newwindow but I these only take the moduleid, I can't see how to pass in the employee number at the same time.
    Any help would be appreciated.
    Thanks
    Belinda

    Hi,
    You can pass parameters like this
    wwv_redirect.url('SJAYARAM_9042F.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1060253649&p_arg_names=deptno&p_arg_values=10&p_arg_names=_deptno_cond&p_arg_values=%3d');
    In this example the parameter deptno is passed with a value 10 and conditional operator '='
    Hope that helps.
    Thanks,
    Sharmila

  • Call form in new browser window

    Hello all,
    I am trying to call a form that will appear in a new browser window, but be part of the same forms application. I am able to call the applet by using web.show_document, however you must log on to the forms services before you can access the form. I would simply like to click a button and have it call a form that opens in a new window. I am doing this for our data entry techs that need to utilize dual monitors looking at 2 separate tables.
    Thanks in advance,
    -Jordan

    Be aware that there are limitations with Forms if you are trying to run the application on the secondary monitor. Known issues related to dual monitors have been corrected in the upcoming patch set for 10.1.2. This patch is due for release soon (exact date unknown). A one-off patch is also available for 9.0.4.3.
    Take a look at this thread for more details:
    Users with two monitors

  • Calling a webdynpro URL in new window from BSP

    Hi experts,
      i am calling a URL from BSP application by creating a link and on the 'onclick'  event of the link ,using following code
    navigation->goto_page( URL = l_wd_url session = 'NEW' ).
    My problem is ,i have to open this page in a new window(the Page is basically a webdynpro URL) ,so far it is only opening in same window.I have tried different other options.
    navigation->next_page( URL = l_wd_url session = 'NEW' ).
    CALL METHOD runtime->server->response->redirect( url = l_wd_url ).
    navigation->call_application( URL = l_wd_url ).
    I tried using call_browser FM also but it is dumping.
    href tag will not work in my case as i have to capture the event and write some code inside  that event..
    Please suggest what i can do now?

    Hello Graham,
    I am trying to get the windows user id in webdynpro abap.
    I am unable to get,
    So I used BSP application to get the windows user id.
    I using java script to get that.
    After that I don,t know how to  assign that java variable to ABAP variable. the
    Insted of calling the WDA using the following way
    <a href="<%=l_wd_url%>" target="_blank">Click Here</a>
    is there any other way to call WDA from BSP based on some action.
    Regards
    Srini

  • I want to know  how to call navigate to page in new window.

    Hi,
    I want to know  how to call navigate to page in new window.
    Following is the code which i am using on Event OnInputProcessing.
    navigation->goto_page( 'index.htm' ).
    From the above code i am able to open the index.htm in the same window.
    but I need the index.htm in the new window.
    Please suggest
    Thanks in advance,
    Nilesh Labde

    Thanks ,
    I was able to find the navigatiion tab, But after entering the The Form name in that TAB, Still the New Page opens in ths SAME window.
    Following is the Code written on the Eevent--> OnInputProcessing
    navigation->next_page( 'NEXT' ).
    In the Navigation TAB
    Start                             Navigation Request                Target
    Sales_Person.htm                   NEXT                            index.htm
    Please suggest.
    Thanks in advance,
    Nilesh Labde

Maybe you are looking for

  • My full start up disc won't let my computer load

    When I turn on my MacBook Pro - version 10.6.8 At the password log in a message saying my start up disc is full appears and after clicking 'OK' I type in my password but after that is goes to the 'galaxy' screen and just will not load. Help!

  • I have the MP495 wifi, when attempting to print I get a message, the printer is not responding ???

    I used to get the message that the printer was offline, I have fixed that now I get the message that the printer is not responding???

  • FindClass Problem

    I have been working on connecting to a jvm through vc++ and calling a java method. I have finally got it to connect to the jvm now I am having problems with it finding the class ... here is the practice program that I am trying to do ...most of you g

  • Reading large lob data from SQL

    I gotta be missing something, but don't see what.  Have seen postings on this topic for years, and the answer is always the same, but I've done all those things. I have a CF script that grabs a webpage via CFHTTP, and stores its content in a SQL Serv

  • I can not install itunes because of this error

    SERVICE APPLE MOBILE DEVICE FAILED TO START VERIFY YOU HAVE PRIVILEGES I am the administrator on my computer so I'm not understanding what the issue is.  I have never had a problem installing before.