How to open new window in UIX page

I'm using UIX for view layer. I have text input in the UIX form. When I click on a button, I want to open a new window with the URL built using the value from the input. I want to do it using javascript. Is it possible with UIX?

Hi Krishnamoorthy,
Look out the LovXXXX components demo in uix.
See <script> demo of component guide. This should help you clearly understand the functionalities.
See documentation of above UIX components
Like providing handlers to HTML elements, you can attach event handlers to UIX components too. You can attach event handlers on onClick, onMouseOver,... on UIX components just as you would do in HTML.
http://www.oracle.com/technology/sample_code/products/jdev/index.html
This link could be of some help to you.
Thanks,
Vijay Venkataraman

Similar Messages

  • How to open new window and generate oracle report from apex

    Hi,
    I had created an application that generates PDF files using Oracle Reports, following this Guide.
    http://www.oracle.com/technology/products/database/application_express/howtos/howto_integrate_oracle_reports.html
    And I followed 'Advanced Technique', so that users can't generate PDF file by changing URL and parameters. This is done for security reasons.
    But in this tutorial, when 'Go' button is pressed, the PDF file is displayed on the same window of apex application. If so, user might close the window by mistake. In order to avoid this, another window have to be opened.
    So, I put this code in the BRANCH - URL Target. (Note that this is not in Optional URL Redirect in the button property, but the branch which is called by the button.)
    javascript:popupURL('&REPORTS_URL.quotation&P2100_REP_JOB_ID.')
    But if the button is pressed, I get this error.
    ERR-1777: Page 2100 provided no page to branch to. Please report this error to your application administrator.
    Restart Application
    If I put the code 'javascritpt ....' in the Optional URL Redirect, another window opens successfully, but the Process to generate report job is not executed.
    Does anyone know how to open new window from the Branch in this case?

    G'day Shohei,
    Try putting your javascript into your plsql process using the htp.p(); procedure.
    For example, something along these lines should do it:
    BEGIN
    -- Your other process code goes here...
    htp.p('<script type="javascript/text">');
    htp.p('popupURL("&REPORTS_URL.quotation&P2100_REP_JOB_ID.")');
    htp.p('</script>');
    END;
    What happens is the javascript is browser based whereas your plsql process is server based and so if you put the javascript into your button item Optional URL Redirect it is executed prior to getting to the page plsql process and therefore it will never execute the process. When you have it in your branch which normally follows the processes, control has been handed to the server and the javascript cannot be executed and so your page throws the error "Page 2100 provided no page to branch to"... By "seeding" the plsql process with the embedded javascript in the htp.p() procedure you can achieve the desired result. You could also have it as a separate process also as long as it is sequenced correctly to follow your other process.
    HTH
    Cheers,
    Mike

  • How to open new window with required size when clicking on image in a table

    Hi,
    There is an image column in advanced table. i want to open new window with required parameters(size, toolbar, status bar,etc..) and with that transaction context.
    can any one help plzzzzzzzz?
    Thanks
    Raju

    You can also use OAF js function to open modal pop up:
    openWindow(self, '<url>','longTipWin', {width:900, height:400}, true); return false;
    --Mukul                                                                                                                                                                                                                                                                                                                                   

  • How to open new window when i press submit button/submit button.

    Hi,
    When i press a button, I need to capture an item value in current from and I need to pass that value to another form. The child form should open in the new form.
    For that Iam using the java script, But when i use the java script my page is not able to re-size, scroll bars address bar and menu bars are missing. if any one did this kind of requirment please share with me how to solve this issue.
    Thanks

    Re: How to show Popup window in OAF on click of a button
    Thanks
    --Anil
    http://oracleanil.blogspot.com/

  • Open New Window behaviour in page subdivided into frames

    My home page is entirely subdivided into frames.  In one of those frames are my buttons and each button opens a new window.  Unfortunately, they open the window within the small button frame.  I need the new window to opened independent of the frames; i.e., opened as large as I define it to be such that the new window spans the frames.  Anyone know how to accomplish this?

    It's good to hear from you again, Nancy.  This
    "frame" site was supposed to be a temporary fix between as site organized as
    a table and the ultimate site entirely structured by CSS.  I'll spend a little more time on this for pedagogic purpose and will now engage a javascript forum with this conundrum because I believe the only fix is an adjustment of the JS function called by the HTML.
    Somehow, I'll try to divide the "power" points between you and Brad.

  • How to open new window without loosing pageFlow context?

    I am using 8.1 SP 3.
    Here is what I need to do. I have a an anchor link in a jsp that needs to open a new window after executing an action in a page flow. That action forwards to a jsp that needs to be able to access pageFlow variables.
    So, I have the following:
    <netui:anchor target="_blank" action="timesheetSubmitView">
    Everything works fine, that is it opens a new window and keeps the pageFlow content, BUT the new window contains all of the portlets that were on the original page. What I need is a new window that just contains the jsp that my action forwards to.
    I looked through the various topics on this forum, but the recomended approach posted by someone to enable redirect does not work because weblogic is loosing the pageFlow context, so jsp errors out due to the fact that variable on a pageFlow is null.

    I had the same issue. A couple different things to try -
    1. There is a property called redirect in the action. Set it to true.
    That did not work for me, so I just used pageFlow variables and put things into the session. Bad way of doing it, but works :)
    In the action that loads the first JSP, put things into the session. Then in the timesheetSubmitView action get the stuff from the session.
    Write an onDestroy method that deletes the session stuff, when u are done with it.

  • How to open new window webi report using open doc?

    Hi All,
    i have created URL using open doc in Bi 4.0 .please find the below my code.
    http://fcvws975/BOE/OpenDocument/opendoc/openDocument.jsp?iDocID=AeX5DoctKBhGv1AiV2oibxU&sIDType=CUID&sType=BI
    workspace&sRefresh=Y" title="" target="_blank" nav="doc"></a>
    When i click on this hyper link it is opening in the same page not in new window but i want to see report in new separate window.
    Can any one please help .
    Thank you,
    Regards,
    Venkat

    Hi,
    In BI4.1 SP03, there are couple openDocument fixes related to workspace.
    ADAPT01700442
    Description:
    When using an Opendocument URL to open a BI workspace, a timeout error occurs resulting in an HTTP 500 error
    message that reads: "Your session has expired".
    New Behavior:
    This problem is resolved.
    ADAPT01711393
    Description:
    In Internet Explorer 8, if you attempt to view an Analysis workspace embedded in the SAP NetWeaver Portal using
    OpenDocument, the workspace will fail to load.
    New Behavior:
    This problem is resolved.
    What version of BI4.0 do you have?
    If the fixes above are related to your openDocument workspace issue, I'd suggest you to test it on a BI4.1 SP03 sandbox.
    Hope this helps,
    Jin-Chong

  • How to open new window 640x520

    When a user clicks on a button I want a 640 x 520 new window
    to open, preferably without the browser address bar. You can see
    the problem I'm having using target "blank" if you go to
    http://movingcircles.com/ and
    click on the first button (for Grand Entrance.) BTW if you go
    there, please let me know how the flash file is playing for you.
    Thanks.

    Hi David --
    I've used a DW extension called "Popup Link" with great
    success. You can
    specify not only the size of the pop-up, but you can also
    position it on the
    screen as well as determine which window attributes (address
    toolbar, status
    bar, etc.) are displayed.
    You can find it here:
    http://www.flevooware.nl/dreamweaver/extdetails.asp?extID=8
    HTH
    John
    "David Mainstreet" <[email protected]> wrote
    in message
    news:fca10s$399$[email protected]..
    > When a user clicks on a button I want a 640 x 520 new
    window to open,
    > preferably without the browser address bar. You can see
    the problem I'm
    > having
    > using target "blank" if you go to
    http://movingcircles.com/ and
    click on
    > the
    > first button (for Grand Entrance.) BTW if you go there,
    please let me
    > know how
    > the flash file is playing for you. Thanks.
    >

  • How to open new window

    I have developed a JTable. What I need to do next is to have listeners for each of the cells in the table such that when the cell is double clicked, a new window should pop up.
    What listener needs to be implemented for this? Will the TableModelListener work?
    Any sample code, anyone?

    Add a MouseListener to the JTable. Look through some of the methods in the JTable class to see how you can find which cell was clicked.
    http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JTable.html

  • How to open new window in web dynpro

    I want to open a new window with specific URL in web dynpro on a button's click event. waiting for your suggestions to do this.
    thank you,

    Create an action and put following lines in it and bind it to button's onAction event.
    IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow( "http://www.jawed.info", "My Personal Website");
    window.show();

  • Runtime.exec() - how to open new window for new program?

    Hi,
    I have searched through the forums but haven't found an answer to this one yet. I am using runtime.exec() to start up a new java program. At first I thought it wasn't running properly but, after checking task manager, I have discovered that the new program I open runs, it is just completely invisible to me. I am wondering how I can get the new program to run in a command window or something where I can monitor it.
    Thank you for your help,
    Drew

    Thank you all. After trying to figure out why the start command wouldn't work in the runtime.exec() call(not an executable - I am a dolt), I tried putting it in a batch file and it worked perfectly. Thanks for your help,
    Drew

  • How stop FF31 from opening new window? I want to open all links in new tab at top of page.

    I think the following, quote below, from the help page is my problem.
    I have this one website I use that when I click on a link within the website it is opening a new window with the tab at the bottom. Also, when this happens, I am losing the orange FireFox rectangle, bookmarks and navigation options. How can I set FF31 so that the link opens in a new tab and I keep all my options? I am using Classic Theme Restorer 1.2.3. I also notice that in the new window I lose the ability to use some of the addons.
    I have two laptops and both are running FF31 and W7. One of them is working perfectly and the other is having this problem. As far as I can tell they are both set up the same. The only difference is that when I upgraded to FF31 they both had difference older versions of FireFox. I also read in the help forum that maybe I need to go back to FireFox 28 to accomplish what I am trying to accomplish.
    I noticed that when I go under about:config that the version of FF that is not working has fewer available options versus the version that is working. An example would be that the working version has "browser.tabs.onTop" where on the other laptop this is missing.
    >>>Open new windows in a new tab instead: This option controls whether links from other applications or from web pages which request to open them in new windows are opened in a new window or a new tab in the most recent window.
    Note: If you have chosen to open pages in new tabs, Firefox will ignore this option and will open a new window from a link if the page author specified that the new window should have a specific size, because some pages can only be displayed correctly at a specific size.<<<
    Thank you in advance for any help,
    yeto

    You can override how links are opened via the browser.link.open_newwindow.override pref.
    *http://kb.mozillazine.org/browser.link.open_newwindow
    *1: current tab; 2:new window; 3:new tab;
    Use this for links opened via JavaScript.
    *http://kb.mozillazine.org/browser.link.open_newwindow.restriction
    See also:
    *http://kb.mozillazine.org/Prevent_websites_from_disabling_new_window_features

  • Just downloaded Firefox 6.0 and have restarted 4 plus times, but it continues to hang while launching. I cannot open new windows, change any settings, or do anything but Force Quit. I'm on Mac OSX 10.5.8. How do I get past this hang?

    Just downloaded Firefox 6.0 and have restarted 4 plus times, but it continues to hang while launching. I cannot open new windows, change any settings, or do anything but Force Quit. I'm on Mac OSX 10.5.8. How do I get past this hang?

    Long story short: Simply get CC for teams. At 500 bucks a year it's a steal and those 5 licenses in the base package (or was it 10 even?) cover all your computers, at least the 3 ones you mentioned. For system requirements refer to the individual product pages.
    Mylenium

  • I am receiving a lot of pop-up ads on website pages. It has only recently started happening. They open new windows with ads for online gambling, online dating and other things. They are annoying and I want them shut off. Please help me

    I have recently started seeing millions of pop-up ads on website pages. It is not something that normally happens. They open new windows with ads for online gambling, online dating among other things. I am growing sick and tired of these ads, and have tried multiple things. I have uninstalled and reinstalled software, I have blocked pop-up ads and unenabled Java script. I have tried everything I could find, but nothing has worked. I have even downloaded AdBlock and Clean Genius. Nothing has even remotely changed this annoying trait. I hope this can be a quick fix I can perform and not something that will have to be done by a tech-hand. Please, if you know anything about this issue, let me know how to fix it.
    Thanks.

    Unfortunately, you have installed malware by clicking on a pop up ad.
    Removal instructions here >>  The Safe Mac » Adware Removal Guide
    Uninstall CleanGenius >  Mac App uninstaller: How to uninstall the Macintosh applications with CleanGenius uninstaller on Mac OS X?
    Third party maintenance utilities are not necessary on a Mac and can actually do more harm than good and cannot remove malware > Mac App uninstaller: How to uninstall the Macintosh applications with CleanGenius uninstaller on Mac OS X?

  • Button on page opens new window, session times out in old window

    Hi,
    I've created a custom page and added a button through personalizations in Oracle that opens the new custom page in a new window. When this happens, though, the original window throws the following error when a user attempts to use any functionality in that page:
    Error: Cannot Display Page
    You cannot complete this task because you accessed this page using the browser's navigation buttons (the browser Back button, for example).
    More specifically, the new button has been added to a LOV page in Oracle. Navigation would be: Create timecards page, click on Task LOV button (this opens new window for Task LOV), new button is on this Task LOV page. The new button then opens the custom page, and when the user returns to the Task LOV page to select a task they receive the error.
    How do I prevent this error when the new custom page opens from the button?
    Thanks in advance for your help,
    Suzanne

    I have an update to this issue:
    I found that adding the value &retainAM=Y to the button URL for my custom page resolves the issue of the time-out in the Task LOV page. However, when I make the task selection in the LOV page and return to the main create timecard page, I find that the session has timed out on that page.
    Any suggestions?
    Thanks,
    Suzanne

Maybe you are looking for

  • Error in creating dynamic view

    Hi, I am using the following to create a dynamic view which will be created on runtime and conditions will be provided by user. Here is the code: CREATE OR REPLACE PROCEDURE DYN_VIEW_PROC(PARA IN NUMBER) AS DEPT_NO NUMBER(3) := PARA; DYN_QUERY VARCHA

  • How do I transfer my data to my new IMAC from my old mac's hard drive?

    When switching to my new IMac, I transferred my data, but the data that it transfered from was my old Mac's original hard drive. How do I transfer the data from my 2nd hard drive which has all my up-to-date info?

  • Will Acrobat XI export pdf to PowerPoint 2007?

    I am using PowerPoint 2007, and would like to know what editions of PowerPoint the Acrobat XI export feature can convert a pdf to" 

  • To create service user

    hi guys pls tel me how to create a service user in portal..

  • Interactive Report - Break formatting style

    Hi All, Is there a way to make Interactive reports break format work/look like classic reports break format? i.e.1st,2nd,3rd column option. The way IR breaks is that is reserves a whole row for the column used in the break, which is not what I want,