Opening OA page in new window using Image Bean

Hi All,
We have a requirement to open a new window in one of our application. It is working when I use a link but I am not able to achieve the same functionality with an image bean. Is it possible to achieve this using an image bean?
Thanks in advance,
Sundeep

Sundeep,
If you wanna use imagebean, you would have to attach action using bound values API and open secondary window in OAF.Here is the same ple code:
OAImageBean btn= (OAImageBean)webBean.findChildRecursive("<item id of image icon bean>");
//page url
String page1 = "/xx/oracle/apps/XX/webui/XXPg&retainAM=Y";
String destURL = APPS_HTML_DIRECTORY + OAWebBeanConstants.APPLICATION_JSP + "?"+ OAWebBeanConstants.JRAD_PAGE_URL_CONSTANT+ "=" + page1;
OABoundValueEmbedURL jsBound = new OABoundValueEmbedURL(btn,"openWindow(self, '", destURL, "' , 'longTipWin', {width:"+900+", height:"+500+"}, true); return false;");
btn.setAttributeValue(oracle.cabo.ui.UIConstants.ON_CLICK_ATTR, jsBound);
I received your mail, and replied the same in the mail too.
--Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How do I open a page in new window using af:commandLink?

    Hi,
    I have a requirement where I need to open the page in a new window on clicking the af:commandLink.
    I could use af:goLink, but I cannot as I have to invoke the URL using http POST method. If I use af:goLink, all the parameters will be displayed in the URL. I do not want that.
    I have the below code for the commandLink:
    <af:commandLink text="Open new window" id="cl199bk"
    styleClass="AFRighColLinkText"
    action="dialog:openNewWindow"
    useWindow="true" windowHeight="400"
    windowWidth="800" immediate="true"/>
    When I click the commandLink, the page gets opened but in the same window. I have the below controlflow-case in my taskflow:
    <control-flow-case id="__71">
    <from-outcome id="__133">dialog:openNewWindow</from-outcome>
    <to-activity-id id="__72">openNewWindow</to-activity-id>
    </control-flow-case>
    Please let me know what to do to have the page opened in new window/tab.
    Thanks in advance!

    Hi Frank,
    I tried that too and the page always opened in the same page even with dialog:action set and useWindow set to true. I had the navigation rule in adfc-config as well.
    I got it done using the url-view activity.
    I have created a new bounded task flow with the url-view activity as the default activity. I called this new task flow from the actionListener bean method on commandLink. Set the new task flow to url-invoke-allowed.
    I have my parameters set in the url-view activity. With this the parameters are not shown in the URL.
    That did the trick for me.
    Thanks.

  • Open Page in new window using hyper link

    I put the window.open method on OnClick event of outputlink to open a page in new window, but the page is started in a old window.
    How do I start the page in a new window.
    My sintaxe of outputlink:
    <h:outputLink binding="#{P0110.hyperlink1}" id="hyperlink1"
    onclick="WindowObjectReference = window.open('about:blank', '','menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes');" value="http://www.sun.com/jscreator">
    </h:outputLink>

    Hi,
    Following are the steps to open a new window using the window.open method for the hyperlink component:
    1. Drag and drop a hyperlink component onto the page
    2. In the properties sheet go to the Value property and delete the value present there
    3. Click on the ... button next to the onclick property
    4. Enter the line of code given below:
    window.open("http://www.yahoo.com","New window");
    5. Save and run the project
    On clicking on the hyperlink a new window will open with the www.yahoo.com page.
    Hope this helps
    Cheers
    Giri :-)
    Creator Team

  • Open that jspx page in new window using commandLink

    Hi All,
    I'm working on adf application.I'm using jdeveloper 11.1.1.5 version.I want to get the attribute value of current row and pass it to jspx page.And i want to open that jspx page in new window.I tried like following:
    <af:column id="resId1c7" align="center" width="50">
    <af:commandLink actionListener="#{bindings.setCurrentRowWithKeyValue.execute}"
    text="MSG-ID"
    disabled="#{!bindings.setCurrentRowWithKeyValue.enabled}"
    id="cl1"
    action="dialog:Confirm" windowHeight="600"
    windowWidth="800" useWindow="true"
    partialSubmit="true"/>
    </af:column>
    And in my faces-config.xml i add the navigation rule like this.
    <navigation-rule>
    <navigation-case>
    <from-outcome>dialog:Confirm</from-outcome>
    <to-view-id>/AuditLogInfo.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>
    Here my problem is i want to get the result jspx page in new window.But im not able to do it.Please help me how can i do this?
    Thanks in advance!

    Thq very much.It is working fine.
    I added the command link in my home page.When i'm clicking on that link im able to get my child.jspx page in new window.But I have added the login page to my adf application.If i run the login page im able to get my home page.But now i'm not able to get my child.jspx page when i'm clicking on command link.How can i resolve this.Please give me your suggestions.
    Thnks in advance.

  • Open Page in new window using action link

    How do I open a page in a new window, using action link ?
    If I put javascript window.open in OnClick event, the action event ins�t called.

    Hi,
    The window.open method can be used with the hyperlink component. So please try it with a hyperlink component.
    Cheers
    Giri :-)
    Creator Team

  • Issue: Opening the page in new window causing issues.

    Hi All,
    I have a page where in there are many PPR events implemented.
    Apart from this i have content container region where in there are help links each of which is OALinkBean .
    All these help links point to the same OAF page with different parameters.
    I wanted to open these help links in different windows (as these would display some data to the user ie not transaction based)
    for which i have set the destination property of the link bean saying :
    OA.jsp?page=/oracle/apps/pos/reqform/mdm/webui/SARSMDMDisplayPG&RULE_ID={@RuleId}&retainAM=Y
    and target frame to _blank to get it opened in new window.
    Now,
    when the page loads, it gets rendered fine along with the content container with help links in it.
    When i click on the link, it will open the correspoding OAF page in new window. - fine upto this
    On the main page, when i do any form submit, it is throwing me server side validation like "attribute xyz required in xyzVO".
    This happens when ever i click on the link to open a new window.
    Not sure if something needs to be handled to avoid doing this server side validations.
    I have disabled server side validations too on the link bean.
    I do have lot of events getting fired on the main page for the business requirements.
    Please do let me know a solution to the same.
    Thanks,
    Sushma.

    Hi All.. I am also facing the similar issue... actually the second page is VO or EO has no relation with the mail PAGE.. Second page is completely independent... but issue is that whenever i do any operation in first page after open the 2nd page the VO of the main page is geting quried without any condition.... i have a search screen and after conducting search if i try to open the second page and do any operation in the main page the whole value from vo will be shown in the page...... that is causing multiple issues....
    Plzz help as it is very urgent.....

  • Opening Dashboard Page in New Window While Passing Prompt Values

    Hi,
    Currently it is not possible to open a dashboard page in a new window AND have the prompt values from a prior page pass to this page. I see one or the other can be accomplished but not both. Is there a way this can be acheived somehow or is there a workaround for this?

    You are correct. The "Link or Image" object does not pass the dashboard prompt values, though it allows the destination dashboard to be opened up in a window.
    Here is a workaround.
    1) Place the link in a "Guided Nav. Link" object and set the destination dashboard and desired report. With the prompt set up correctly (i.e., dashboard scope, set to PV, destination report column filtered to receive the PV), the destination report will be filtered on the prompt as desired.
    2) I noticed (and maybe this is why you wish the "new window"), there is no "return" link on the destination report. To fix this, in the destination dashboard, add a Text object to the dashboard. In the properties, paste the code below and make sure to check off "Contains HTML markup." This will produce a "Return" button on the dashboard.
    <input type="button" value="Return" onclick="history.back();">
    Now, when the user selects the prompt and clicks on the link, the prompt is passed to your second dashboard. When the user wishes to return, he/she can click on the "Return" button and return to the primary dashboard.
    HTH,

  • Opening OA page in new window with parameters

    Hi all,
    Hi need to open a new page in a new window with some parameters to be passed to that page.
    Here is the code i have written.
    But i am not sure how to pass parameter in java script string
    String userid = new Integer(pageContext.getUserId()).toString();
    OAButtonBean go = (OAButtonBean) webBean.findChildRecursive("go");
    String url1 = "javascript:openWindow(top,'OA.jsp?page=/aos/oracle/apps/per/payslip/webui/AGSBPaySlipPG&userid={@userid}, null, {width:750, height:550},false, null, null);void(0);";
    go.setDestination(url1);
    Thanks,
    Devang

    hi mani,
    I didn't got wat u meant by binding the attribute.
    I tried another way.
    I had a OAButtonBean GO
    I have 2 messagechoices one for month and another for year
    So in page A in month it shows Jan in starting (till Dec) and in year it shows 2006 as per the picklist view attribute. Also I have attached the VO and view attribute for both the messagechoices.
    Now in the setDestination of the GO button i have url of my pageB with retainAM=Y and target frame as _blank.
    So i select "Oct" from messageChoice and year as 2006 and click GO but still when it goes to pageB and when i try System.out.println(<the view object attribute value>)
    i get "Jan" instead of "Oct". Below is the code in pageB i am using to get the value of the month from VO
    MonthVOImpl monthVO = (MonthVOImpl)pslip.getMonthVO();
    //pslip is AM object
    RowSetIterator monthrowsetiterator = monthVO.findRowSetIterator("monthvo");
    if (monthrowsetiterator == null)
    monthrowsetiterator = monthVO.createRowSetIterator("monthvo");
    // monthrowsetiterator.reset(); I NEED TO COMMENT THIS OUT - RIGHT ??
    MonthVORowImpl monthrow = (MonthVORowImpl)monthrowsetiterator.next();
    String month = monthrow.getMonth().toString();
    System.out.println(month);
    So how do i resolve this issue. I thought that retaining the AM will take care of the value which i am selecting in the messagechoice in pageA.
    Any ideaz??
    Thanks,
    Devang

  • After login close the login window and open home page in new window

    Hi guys,
    I want to go to a new window for the "home page" without browser back button etc. after login validation.
    And also close the login window at the same time.
    Here is the code I used after the login validation.
    ExtendedRenderKitService erks =Service.getRenderKitService(FacesContext.getCurrentInstance(),ExtendedRenderKitService.class);
    StringBuilder script = new StringBuilder();
    script.append(" params = 'width='+screen.availWidth-10;\n" +
    " params += ', height='+screen.availHeight-50;\n" +
    " params += ', top=0, left=0'\n" +
    " params += ', fullscreen=yes';\n" +
    " params += ', scrollbars=1';\n" +
    " params += ', resizable=1';\n" +
    " params += ', status=1';\n" +
    "window.close();\n" +
    " newwin=window.open('home.jspx','xxxxxxxxx', params);\n" +
    " if (window.focus) {newwin.focus()}");
    erks.addScript(FacesContext.getCurrentInstance(), script.toString());
    This successfully opens a new window. I want to close the current login window at the same time.
    Please help me with this.
    Regards !
    Sameera

    on the 'Submit' onclick event add some JavaScript code:
    this.form.target = '_blank';

  • ExternalLink in KM  which open portal Page in new window whithout masthead.

    Hi All,
    I have a requirement to create an external link which opens in new window and the content of the window is an Page which has iviews.
    I created an external link and gave the following details.
    Target: /irj/servlet/prt/portal/prtroot/com.sap.portal.navigation.portallauncher.default?NavigationTarget=pcd:portal_content/com.abc.Test_Page
    Name: Test
    When I click on the external link, it opens a new portal window which has the mast head and in the content area the page is displayed.
    My requirement is : I don't want the masthead to appear and I want only the page to be displayed in the new window.
    Thanks,
    Shilpa.

    Hi Krishna,
    In the iview Property -> Launch in New Window, i have only 2 options ie
    Display in Portal content Area
    Display in New Window.
    Where do I find display in seperate portal headerless window? Is it the customised one?
    I have set Launch in New Window Property to Display in New Window. When i click on the link new window is opening which has masthed.
    Please Suggest.
    Thanks,
    Shilpa.

  • Open a page in new window

    Hi,
    I have created an iView and a Page to open in a new window and am getting a Portal Runtime Error (as shown below) when I click on the link in detail navigation. However surprisingly in the "Preview" and if I open the same iView in the portal content area, then everything works fine. What could be going wrong? 
    Thanks very much for the help.
    Aniruddh
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    iView not found: pcd:portal_content/com.wyeth.folder.wyethcontent.folder_wyethcontent/com.wyeth.folder.developercontent.folder_developercontent/com.wyeth.Aniruddh/InsideWyeth_Desktop/frameworkPages/frameworkpage/com.sap.portal.innerpage/com.sap.portal.contentarea.
    Exception id: 11:10_16/12/05_0012_876763850
    See the details for the exception ID in the log file

    Hi Anriruddh,
    a page and an iView - where the iView is set on the page? One should be enough (the page)?! Try that.
    Anyhow, the error message says that it cannot find the sap-contentarea within your structure. Double check if the path exists:
    ...InsideWyeth_Desktop/frameworkPages/frameworkpage/com.sap.portal.innerpage/com.sap.portal.contentarea
    In addition, check the default.trc for the exception ID, as it has been told you: "See the details for the exception ID in the log file".
    Hope it helps
    Detlev

  • Won't open web page in new window

    Ever since the 5.0 upgrade when I click on a tab to open in a new window firefox just opens a blank new window. This is driving me crazy. So if I have 5 tabs going and say I want to watch a youtube video on my other monitor while I'm doing something else, I right click on the tab and click on open in new window and i just get a blank window. So I have to copy and paste the address in the new blank window. I am about to switch to google chrome its very inconvenient.
    Thanks!
    Cindy Jervis

    There are some Flash objects on the web page.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Open Dynamic Page in New Window after Submission

    I need to open a "success" dynamic page in a new window when redirected from a form in Portal 9.0.4.1. The go('<url>'); method does not appear to allow opening the page in a new window. Is there a way to do this? Thanks, in advance.

    on the 'Submit' onclick event add some JavaScript code:
    this.form.target = '_blank';

  • Opening a url in new window using a button after running a process

    I need the folowing to happen:
    When a button is clicked, a process runs - updates a table in the DB. then a URL opens in a new window.
    I created the process and related it to the button - click of the button makes it work.
    If I write in the button properties the URL - optional URL redirect:
    javascript:popupURL( 'http://www.mysite.com');
    the process does not run. url opens in new window.
    If I create a branch - writing there javascript:popupURL( 'http://www.mysite.com'); the process works but URL does not open. only writing http://www.mysite.com works - but it does not open a new window.
    The question is: how can I click on a button, make a process run and URL opens in a new window?

    If you post your page, then the browser must go some place. You can post your page (say page 1), you can then branch to page 2, then the js on page 2 can open a new window. Once you post your page you must goto another page before you can open a new window.
    Perhaps what you want is to press a button on a page and have it do work without posting the page, e.g. make an AJAX request, and then based on that work popup some corresponding page.

  • Opening a new OAF page in New window have error

    Hi OAF gurus,
    I am trying to open a page in new window. It opens perfectly and all the functionality is also working. But I am getting some Java script error..
    The code which I am using is...
    StringBuffer l_buffer = new StringBuffer();
    StringBuffer l_buffer1 = new StringBuffer();
    l_buffer.append("javascript:mywin = openWindow(top, '");
    l_buffer1.append("PGFile name with path");
    l_buffer1.append("&DeliveryId=");
    l_buffer1.append(deliveryId.toString());
    l_buffer1.append("&retainAM=Y");
    String url = "/OA_HTML/cabo/jsps/frameRedirect.jsp?redirect=/OA_HTML/OA.jsp&page="+l_buffer1.toString();
    OAUrl popupUrl = new OAUrl(url, OAWebBeanConstants.ADD_BREAD_CRUMB_SAVE);
    String strUrl = popupUrl.createURL(pageContext);
    l_buffer.append(strUrl.toString());
    l_buffer.append("', 'lovWindow', {width:750, height:550},false,'dialog',null);");
    pageContext.putJavaScriptFunction("SomeName",l_buffer.toString());
    Error message ....
    Error: No such Interface Supported.
    Could anyone please help me out in this.
    Thanks
    Anoop

    Anoop,
    Without the profile change, i guess it is not possible to open new window, as MAC key validation will be imposed! You can read about these profile options from Metalink doc id:390203.1 and explain to your client side1
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • Square root calculation method

    I'm trying to create java code that displays the square root of a number that the user enters, as I am not a great mathematician i cannot work out the logic for this. Any help would be great. This is the part of my code that I need assistance with: n

  • Using Database Sequence in Interface with Union

    Hi Gurus, I have Oracle 11gR2 database as my Source and Target. When I try to use Database Sequence along with an Interface having set operator like Union , I am getting the following error: ODI-1227: Task eSIS_Student_U1_Fact (Export) fails on the s

  • Urgent-doubt in servlets

    hi to all, i am using tomcat server.i have a doubt in executing packaged servlet and it shows error 404 cannot resolve symbol when i tried to access thru browser i have attached below the mapping content of web.xml.Actually the servlet file got execu

  • Fonts for Dashboard widgets

    Some of my widgets are displaying weird fonts and don't look right. I have not changed anything in my font folders or in Suitcase, my font manager, so I can't figure out which font seems to be acting up. All the usual default fonts, such as Helvetica

  • How to use PSA api functions RSAR_ODS_API_GET

    Hi everybody I need to call function module RSAR_ODS_API_GET. It recive an internal table with request ids and should return in E_T_DATA "unstructured" data from the psa and in E_T_RSFIELDTXT the description of the data structure, I guess from sap he