Regarding opening a new pop up window

In order to open open in a new window I have used the following two approaches
1.public void FormHelpUrl(ActionEvent actionEvent) throws Exception {
FacesContext context = FacesContext.getCurrentInstance();
ExternalContext ectx = context.getExternalContext();
HttpServletRequest request=(HttpServletRequest)ectx.getRequest();
StringBuffer serverName=request.getRequestURL();
String serverName1=serverName.substring(0, serverName.indexOf("workflow"));
HttpServletResponse response =
(HttpServletResponse)ectx.getResponse();
response.sendRedirect(serverName1+"/dashboard_help/guide?topic="+topic+"&locale=en");
The first approach opens in the same window only.
2.public String formHelpUrl() {
FacesContext context = FacesContext.getCurrentInstance();
ViewHandler viewHandler = context.getApplication().getViewHandler();
UIViewRoot dialog1=new UIViewRoot();
UIViewRoot dialog = viewHandler.createView(context, "/dashboard/ohguide?topic=ohj_about_ui.htm&locale=en");
HashMap properties = new HashMap();
AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
afContext.launchDialog(dialog,
null, null, // no particular parameters
true,
properties);
return null;
The second approach above opens in a window - but it is not taking the new context root
UIViewRoot dialog = viewHandler.createView(context, "/dashboard/ohguide?topic=ohj_about_ui.htm&locale=en");
here in the above code , it has to start with '/' , so unable to change context root . please help me out

Hi Dean,
The item names and item values are passed as comma delimited lists in the url, so your url should be:
url = 'f?p=&APP_ID.:49:&APP_SESSION.::::P49_DETAIL_ID,P49_FLAG:'+p_val[b]+',0';
Regards
Andy

Similar Messages

  • 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.

  • Firefox will open a New Pop-up Window in Windows 7 Aero. When trying to Close it, it thinks it wants me to Close the Main Window. Why?

    I use Windows 7 Ultimate in Aero-mode. When a new Firefox window is opened, or a Pop-up window appears, I can't close it without first clicking on that page and clicking the "X" in the corner. Instead, whenever I try to close a window that is not the first window (my main window), it will ask me if I want to close the main window with all the tabs... I have noticed some other slight quirks in this stable release as well, but this one is always present.

    When I hover over the window, it does come up front, but as soon as I press the red "X" it goes immediately back to the main window and acts as if I was trying to close that one. Once in a while it will work, but shortly thereafter, it will just go back into this manner. Quite odd. This is the first time I've truly had any problems with Firefox.
    In addition to that problem I have noticed a few things, but one that may be linked is sometimes I'll click a link. Although I haven't specified to open it in a new window, it will do so anyhow. This gets annoying quickly. Usually shutting down Firefox and reopening will fix this (and once in a while just leaving it be for a long time). Somehow, I think this issue is somehow linked to the one above.

  • APEX:  Open a new Pop Up Window in PLSQL

    I call a stored procedure from APEX which generates a report in a directory defined in ALL_DIRECTORIES. After I call this stored procedure, I want to display the report just generated ( i know the filename and path) in a new window in my apex application. I am proficient in PLSQL but not in Java Script. Can anyone explin how to do this. I have tried to use window.open in plsql but it is not recognized.
    Sandra

    Thank you for pointing me in the right direction. I will used this stored procedure multiple times in this app as well as other apps.
    This is what I did.
    I created a stored procedure that passes in the directory name and filename
         Procedure p_uploadFileToBlob (v_directoryName varchar2, v_fileName varchar2) is
         v_filePointer     BFILE;
         v_fileContent     BLOB;
         src_offset     NUMBER := 1;
         dst_offset     NUMBER := 1;
         Begin
              v_filePointer := BFILENAME (v_directoryName, v_fileName);
              insert into flu_file_objects (name, subject, file_pointer) values
              (v_fileName, 'UsageReport',v_filePointer);
              update flu_file_objects set file_content = EMPTY_BLOB() where name = v_fileName;
              select file_content into v_fileContent
              from flu_file_objects where name = v_fileName;
              DBMS_LOB.fileopen(v_filePointer, DBMS_LOB.file_readonly);
              DBMS_LOB.loadblobfromfile (v_fileContent, v_filePointer, DBMS_LOB.getlength(v_filePointer),
                        dst_offset, src_offset);
              DBMS_LOB.fileclose(v_filePointer);
         End;
    THen with the help of this posting
    http://apex-notes.blogspot.com/2008/10/ora-01403-when-viewing-blob-data-in.html
    I was able to display the report. At first I tried to load as clob but I lost all report formatting. CHanged to blob and all worked great.
    Thanks again.
    Sandra

  • How to pass value from new pop up window to the input field

    Hi,
    i have a F4 help on a input type field and adjacent to that two more input fields, on clicking the help on the first input field a new pop up window opens, the value in this pop up window is to be selected to give the value in that field and the other two values should be appeared in the input type. suppose the pop up window has three fields "15   LIMA  PLANT   45802 ", so on clicking it in input field only 15 should go to the firstinput fields and "LIMA PLANT" and "45802" should go to new window
    do anyone know this?

    avoid duplicate threads
    F4 help in dropdownlistbox and values in input fields
    if you feel that the thread heading or content is not what you wanted, you can edit it and leave a note in the same thread that you have edited it.
    Raja

  • Using win xp32 firefox 22.0, clicking "new private window" opens a new NON-private window.

    seleecting "new private window" opens a new NON-private window.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Open a new I.E window from web dynpro

    Hi:
    When I click on a button I would like to open a new I.E. window
    I have used the following code:
    IWDWindowInfo windowInfo =               (IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("Window1");
         IWDWindow window =     wdComponentAPI.getWindowManager().createWindow(windowInfo, true);
         window.open();
    but this one opens a popup window. I wanna open a new window independent of the current window.
    Any suggestions.
    Thanks,
    Praveen.

    Hi Praveen,
           If u want to open a external window u have to use
    IWDWindow window = wdComponentAPI.
            getWindowManager().createExternalWindow("URL", "Title",false);
    Follow the below steps
    1.Create a different application(app2) and component(comp2) linking to the window2 in the same project
    2.Deploy the app2.
    3.Go to ur view implementation in the window 1 .
    4.write the below code snippet to get the url
    String applicationURL = WDURLGenerator.getApplicationURL(“ProjectName”, “App2”);
    5.Open external window using
    IWDWindow window = wdComponentAPI.
            getWindowManager().createExternalWindow(applicationURL, "Title",false);
    window.open();
    Now ur window 2 will be opened in the new I.E
    To have more info on WDURLGenerator api.
    Check this link for WDURLGenerator.
    http://help.sap.com/saphelp_nw04/helpdata/en/21/82a9058fa8de46b1ba7522289345b2/frameset.htm
    Hope this solves ur problem.
    Regards,
    Sowjanya.
    Message was edited by: Sowjanya Chintala

  • Mail regularly open the new blank message window

    After Mail initial start the programm opens a new blank message window. When I try to close it I receive the message "Do you want to save it as a draft and work on it later?"
    The new blank message window appears regularly every 4-5 minutes. How can I fix it? And thanks in advance for response and help.

    Do you see the Outbox in Mail? Does it contain any messages?

  • How can I set home page for a new tab? how can i get firefox to open the home page every time i open a new tab in Windows vista home basic??

    How can I set home page for a new tab? how can i get firefox to open the home page every time i open a new tab in Windows vista home basic??
    == This happened ==
    Every time Firefox opened

    Firefox can have multiple home pages if you wish. Each home page that will open when starting Firefox is separated by the "|" character.
    See: http://support.mozilla.com/en-US/kb/How+to+set+the+home+page
    To have new tabs open a specific web site, add one of the following extensions:
    http://sogame.awardspace.com/newtaburl/
    https://addons.mozilla.org/en-US/firefox/addon/777

  • Whenever I open a new tab or window the back arrow on the navigation bar doesn't work

    When I open a new tab or window the back arrow in the navigation bar isn't highlighted and doesn't work

    Do you have already visited more than one website in a tab if that happens?
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions 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

  • Problems using right click to open in new Tab or Window. Will not work. How do you solve this. Have v5.0 installed.

    I have the latest version of Firefox installed. Version 5.0.
    When searching on Google and use right-click to open in new tab or window. Keep getting blank tab.
    Can somebody advise how to solve this.
    Thank you.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the ''Safe mode'' start window.
    You have to close and restart Firefox after each change via "File > Exit" (on Mac: "Firefox > Quit")

  • When I click on a website it opens a new tab or window with an advertisement

    When I click on a website, whether it be after doing a search to open a site or when I hit enter after entering a password or even just click on next to go to the next page, mozilla pops up a new tab or window with an advertisement in it. It has been doing this for several weeks now. I have tried running antivirus software and it hasn't helped.

    Do a malware check with some malware scanning programs on the Windows computer.<br />
    Please scan with all programs because each program detects different malware.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender: Home Page:<br>http://www.microsoft.com/windows/products/winfamily/defender/default.mspx
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *http://support.kaspersky.com/viruses/solutions?qid=208280684
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Open and Close Pop-up Window??

    Hi,
    I have to components consiider A and B.
    I want to open window B as pop-up window when I click a button on window A.
    After that again I have to close that pop-up window(i.e. B) and return back to window A.
    Thanks and Regards,
    Rahul

    Hi Rahul,
    In the onAction event of the button for component A you could use the following code :
    IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(wdComponentAPI.getComponentInfo().findInWindows("Window B"));
    window.setWindowPosition(270,120);
    ((Window)window).setTitle("My Window");
    window.open();
    wdContext.currentPopUpElement().setWindowInstance(window);
    In the onAction button event for component B to close the window you could use the following code :
    IWDWindow window = wdContext.currentPopUpElement().getWindowInstance();
    window.destroy();
    You could create a Value Node named Popup which contains a VA WindowInstance of type IWDWindow and define the context mapping.
    Hope this helps.

  • Enabling / Disabling graphs and opening a new Front Panel Window

    Hi,
      I have a simple application of showing 12 analog signals on 12 different graphs placed vertically in aligned position. I have to develop a user interface so that if user wants to display signal no. 1, 4 and 6 out of total 12 signals, he should make selection using check boxes and click a re-draw button. It should result in opening a separate window with these three signals displayed as separate graphs aligned vertically and adjusted to fit window size. Similarly later user can change his selection of displaying signals (from same acquired data) say 1, 3, 5, 6, 8, 9, 11 & 12 and click Redraw button. It should result in opening a new Window showing all these signals as separate graphs which are aligned vertically and resized to fit the window. Now I have two major issues in this context.
    1) I have been searching LabView help to locate a way to open a new window for this purpose but I failed to locate any way for it. As per my limited knowledge, it seems that we cannot have multiple "Front Panel" windows in Labview.
    2) For the graph I could not locate a control to enable/disable a graph so that it appears or vanishes. Is there any way to achieve it?
    I shall appreciate your valuable advice. I shifted from "Lab View Signal Express"  to "Lab View" in order to achieve this user interface design but I am still not successful in finding a good solution for this application.
    Regards
    Mnuet

    Hi Mnuet,
    You can do what was said above. Here is a KB on dynamically loading VIs. It looks something like this.
    Dynamically loaded VIs are loaded at the point in code while running, as opposed to being loaded when the parent VI is loaded into memory like normal subVIs. You can make a reference to them and then control the front panel appearance, their run status, etc with property nodes and invoke nodes.
    Jeff | LabVIEW Software Engineer

  • In the last few days, Firefox takes a bit longer to open and now pop-up windows take about 10-15 seconds to open.

    I'm not sure if this is on the Firefox side or my computer. The timing to open a new window and a pop-up is very delayed.

    Does the issue still occur if you start Firefox in Safe Mode? http://support.mozilla.com/en-US/kb/Safe+Mode
    How about with a new, empty profile? http://support.mozilla.com/en-US/kb/Basic%20Troubleshooting#w_8-make-a-new-profile

Maybe you are looking for

  • Help : How to import .pfx file to keystore

    Hi, I need to generate digital signature for some data string. I got the pfx file with password blank. it shows the following detailsusing keytool. keytool -list -keystore rating/ebs/scripts/MPay_certificate_11072003.p12 -storetype pkcs12 unknown att

  • Is the apple TV the product for me?

    I think what I want to get is an Apple TV - However, I am not sure, and I would be looking for different features than the norm (including what is on the info pages) I want something to play music and videos.  I have Bose Speakers hooked up to my air

  • Report for debator

    Can we have report in SAP sys for : Customer-wise Debtor Days thru SAP System. As current o/s payment & the last sales of every cust. is itself in system, I feel , it should be possible .

  • Namespaces of Subtypes and Infotypes

    Hi , I am in an implementation project. While configuring Family Info Type (21) I have to create sub types like Grand Father and Grand Mother. Client would prefer to have these carry single digit codes unlike the SAP Standard namespace provisions. I

  • In 'Between' Operator  it shows error.

    I have written this code: IF year_month_test between '%%%%02' and '%%%%12' In Compilation it not show any error but it shows run time error.