Opening new window from a pdf using Formcalc and gotourl

Hello,
I am trying to open a new browser window using Formcalc and gotourl.  We are using Livecycle Designer ES2 9.0
Previous versions of Designer had an extra parameter at the end such as :      
     xfa.host.gotoURL(<url>, 1)  or  xfa.host.gotoURL(<url>, 0)
But in 9.0 the second parameter is removed , so I'm left only with
     xfa.host.gotoURL(<url>)  and this replaces my form rather than opening a new window.
Our company restricts the use of Javascript with Adobe so I am left with Formcalc to accomplish what I need.
Does anyone know why the second parameter was removed in 9.0  and/or if there is a way to accomplish what
I need in 9.0 without using Javascript?
Thanks,
Norm.

Hi,
if you cannot use JavaScript because it is deactivated, then FormCalc won't work also.
I don't know why the 2nd optional parameter has been removed. Here is an explaination of it.
http://help.adobe.com/en_US/livecycle/8.2/lcdesigner_scripting_reference.pdf#page=382

Similar Messages

  • Opening new window from separate class

    Hello. I am currently writing a program that should be able to open a new window.
    Upon clicking a button in the first window, a second window should open up.
    The second window has to contain it's own buttons and methods, and upon
    clicking the button in the first window, it should close.
    So far I am only interested in making the button, and making the second class
    that will open when I click it. So far I've tried doing this in many different ways,
    but no matter what I do something either goes wrong, or it behaves weirdly.
    Class1: Contains the button that opens the second window
    /* Imports */
    import java.awt.Container;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    public class SecondWindowExample extends JFrame implements ActionListener {
        /* Initialization */
        private JButton xPress;
        /* My main method */
        public static void main (String[] Args) {
            SecondWindowExample frame = new SecondWindowExample();
            frame.setSize(200,120);
            frame.createGUI();
            frame.setVisible(true);
        /* The interface */
        private void createGUI() {
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            Container window = getContentPane();
            window.setLayout(new FlowLayout());
            /* Button to open new window */
            xPress = new JButton("Press me");
            window.add(xPress);
            xPress.addActionListener(this);
        /* The actionPerformed for my actionlisteners
         * This only works when you press the button with your mouse */
        public void actionPerformed(ActionEvent e) {
            Object source = e.getSource();
            if (source == xPress) {
                /* Code to open and close second window */
    }Class2: Contains the second window to be opened by the first class
    It has to be able to contain it's own buttons and components
    import java.awt.*;
    import javax.swing.*;
    public class calcFunctions extends JFrame {
    public calcFunctions(){
            createNewGUI();
            setVisible(false);
            setTitle("Functions");
            setSize(300, 300);
            setLocation(200, 200);
            setResizable(false);
          private void createNewGUI() {
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            Container window = getContentPane();
            window.setLayout(new FlowLayout());
    }Thanks in advance, any help is greatly appreciated.
    Sincerely, Ulverbeast

    I would make the second "window" a JPanel (or better a class that is able to create a JPanel), and display it in a modal JDialog. For e.g.,
    import java.awt.Container;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.*;
    public class SecondWindowExampleB extends JFrame implements ActionListener {
      /* Initialization */
      private JButton xPress;
      private JTextField sumField = new JTextField(10);
      /* My main method */
      public static void main(String[] Args) {
        SecondWindowExampleB frame = new SecondWindowExampleB();
        frame.setSize(200, 120);
        frame.createGUI();
        frame.setVisible(true);
      /* The interface */
      private void createGUI() {
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        Container window = getContentPane();
        window.setLayout(new FlowLayout());
        /* Button to open new window */
        xPress = new JButton("Press me");
        window.add(xPress);
        xPress.addActionListener(this);
        sumField.setEditable(false);
        window.add(sumField);
      public void actionPerformed(ActionEvent e) {
        Object source = e.getSource();
        CalcSumPanel calcSumPanel = new CalcSumPanel();
        JDialog dialog = new JDialog(this, "Calculate Sum", true);
        dialog.getContentPane().add(calcSumPanel);
        dialog.pack();
        dialog.setLocationRelativeTo(null);
        if (source == xPress) {
          sumField.setText("");
          dialog.setVisible(true);
          double sum = calcSumPanel.getSum();
          if (Double.compare(sum, Double.NaN) != 0) {
            sumField.setText(String.format("%.4f", sum));
    import java.awt.Window;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.*;
    class CalcSumPanel extends JPanel {
      private JTextField field1 = new JTextField(10);
      private JTextField field2 = new JTextField(10);
      private double sum = Double.NaN;
      public CalcSumPanel() {
        JButton calcSumBtn = new JButton("Calculate Sum");
        calcSumBtn.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent arg0) {
            calcSumActionPerformed();
        add(field1);
        add(field2);
        add(calcSumBtn);
      private void calcSumActionPerformed() {
        try {
          double d1 = Double.parseDouble(field1.getText());
          double d2 = Double.parseDouble(field2.getText());
          sum = d1 + d2;
        } catch (NumberFormatException e) {
          sum = Double.NaN;
          JOptionPane.showMessageDialog(this, "Non-numeric data entered", "Input Error",
              JOptionPane.ERROR_MESSAGE);
          field1.setText("");
          field2.setText("");
        Window win = SwingUtilities.getWindowAncestor(this);
        win.dispose();
      public double getSum() {
        return sum;
    }

  • Opening new links in a new window from a pdf document

    Is there a setting I can set it up for new pdf documents that are linked in a pdf document to open in a new window.

    Cannot.

  • How can I open new window from a link in another window?

    Hello everyone!
    Can anyone help me with my problem. I need to open a child window from a link in the mother/master window. Actually, the link that would open the child window is directed to a servlet that retrieves data from the database. The data will then be displayed in the child window. I don't how to open a new window with the data retrieve (thru the servlet) displayed in it. I'm using model 2 architecture (Servlet-JSP).
    Thank you in advance and more power!
    nicoleangelisdaddy
    [email protected]

    Or you can use something like this,
    Click and in your test()
    <script language="javascript">function test()
          document.form_name.target="_blank";
          document.form_name.action="/test/servlet/LoginServlet";
          document.form_name.method="post"
          document.form_name.submit();
    }</script>
    Here "/test" is your application context path.
    If you want to open the link in the named window then use,
    document.form_name.target="your_own_name";

  • Opening new window from applet does not pass session

    I have an applet which has a function where it opens some jsp pages in a new window. The jsp page checks for a session variable to very the user is logged in and some other variables that are required on the page. My problem is in IE 6/7 the new window does not have the session variables from the parent window.
    I'm using
    context.showDocument(new URL(host + "?" + params.toString()), "_blank");
    to open the new windows.
    How can I open a jsp age in a new window while carrying over the session variables from the parent/applet window?
    Thanks for any assistance!

    We experienced the same thing with Java 6 Update 18 on IE 7. As for IE 8, if the user is a local administrator, then the session is kept in the new browser windows opened via showDocument. Check out the following URL for related discussions:
    http://stackoverflow.com/questions/1324181/ie8-losing-session-cookies-in-popup-windows
    Our clients are forced to roll back to Java 6 Update 17. Firefox works fine.

  • Firefox opens new window on taskbar when using yahoo as the browser

    when i use yahoo as the browser, a new window opens on the taskbar when web results are listed. also if I open yahoo mail a new window opens when i read messages. this things only happen when using yahoo. only sites such as google dont have this issue.
    == URL of affected sites ==
    http://
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3

    Hello Frank.
    First of all, take a look at this article: http://en.wikipedia.org/wiki/Web_browser It will help you understand what the browser really is.
    Now, as for your issue, if I understand it correctly, the only way to prevent this from happening (that I know of) is to go into Tools > Options > Tabs and select "Open links that open in a new window in:" as "New Tab".
    Of course, you can always drag and drop tabs from window to window, no problem.

  • Open new window from label link

    Hello,
    I have a table with url-s adresses.
    I want to build a report region with a link to open a new window for each line from table.
    I made that following code:
    select ''||DESCRIPTION||''
    from     url_table
    It's not working.
    I am a beginner.
    Thanks you.

    Hi,
    Use this SQL:
    select '--< '||DESCRIPTION||'' as "DESCRIPTION" from     url_table
    Remove --< from SQL Query
    and in report attribute for DESCRIPTION column:
    Display As: Standard Report Column
    Regards,
    Kartik Patel
    http://patelkartik.blogspot.com/
    http://apex.oracle.com/pls/apex/f?p=9904351712:1

  • Firefox opens up every 5 min a new window, if I am using firefox and also if I am not using it

    using firefox 6.01, but if I am using my laptop the firefox opens up a window, about 5 min later it continues open a new window and so on even I am not using firefox or using it. Not sure what it is but it can be anouying.

    Sounds like a bug to me.
    I would go to my task manager and make sure all web browsers are closing. I would also do a full scan with some good Virus and Trojan software. I suspect an intruder in your system.

  • Firefox 29.0 opens new windows from clicking links that are in a smaller window, should open as maximized window. How to change?

    How do I click a link on a web page, and not have to maximize the window every time? Firefox 29 seemed to add this additional click annoyance and I can't see how to change that. I do not want full screen mode which is what Firefox calls it when it removes an additional row of menu items. I mean maximizing the window so I don't have to do it each time! Please tell me how to change the settings and restore this normal feature.

    Go to
    About:Config
    Change
    browser.link.open_newwindow
    value from 2 to 1
    Works for me now. Every new window is max size

  • Opens new window from link rather than new tab

    I had Firefox set to open links in the same window. It has started opening them in a new window.

    see [[Reset Firefox – easily fix most problems|Reset Firefox – easily fix most problems]]
    [[Firefox does not work - Common fixes to get you back up and running|Firefox does not work - Common fixes to get you back up and running]]

  • When I open new window browser has inverted color scheme and no window title.

    When I open 1st window in FF top of the page looks usual - like this http://imagestun.com/hosting/kartinki/ff1.jpg
    But when I try to open something in a new window, this new window has strange color scheme at the top and no title, like this
    http://imagestun.com/hosting/kartinki/ff2.jpg
    If I switch from window mode to full screen mode and vice versa everything gets to look normal.
    I've used Classic Theme Reestorer addon, but the same problem occurs when this addon is uninstalled. Restaring computer, reinstalling firefox etc didn't help, I still get these annoying white letters in the main menu when I try to open 2 or more firefox windows.
    Is there any way to fix it?

    Thanks, I followed your advice and disabled everyting then started turning addons one by one. The problem was caused by Hola Unblocker, now everything is ok.

  • Open new window from standard tab

    I searched the forum for my question but didn't have any success.  Sorry if this question was already been discussed.
    Is there a way to open a new browser window when you click on a standard tab?  My client wants a separate window to open when you click on a standard tab, similar to a pop-up window.  I'm sure this has been done but I don't see a way to do it directly.  Basically I need to go to a new page in the application and include "target=_blank" in the link for the tab.
    I am using APEX 4.2.1
    Thanks in advance,
    John F

    This is not a standard functionality of the tabs. Since tabs do an apex.submit('TAB_NAME') you will have replace that code with your own (with jQuery for example) to make this happen.
    Perhaps a better approach is to use a list for your tabs.  Many people (myself included) we replace the APEX tabs with a list. Once you do this, your requirement becomes trivial because you can navigate to any page or URL and control the attributes of the link.
    The technique is not hard at all and the tabs will look identical as the standard tabs (or you can make them look different of course).
    This is an excellent presentation on how to do this *:
    https://www.enkitec.com/about/presentations/alt_tab
    Now...I would be remiss if I didn't say... this is an absolutely terrible idea from a UI stand point. I would strongly suggest using a Nav Bar element for this, for example.  Or some link somewhere else, use the Global Page (a.k.a. Page 0) to display it everywhere.
    Thanks
    -Jorge
    http://rimblas.com/blog/
    * Disclaimer: I do work for Enkitec, but the solution is very popular.

  • Opening new window on button click from pdf without loosing session

    Hi,
    In my Java web applicaion on click of a link, we are opening a new window in which we are displaying a pdf. There are 5 buttons on this pdf.
    On clicking of this button again we are opening a application link in new window. But in this window we are not gettting our session, which is there in first two window.
    For opening new window from pdf button click we are using
    var dynamicUrl3 = myappurl;
    app.launchURL(dynamicUrl, true); 
    How can i open new window with the same sesion from the pdf button.
    Please help for the same.
    Thanks,
    Abhijit Mohite.

    Yes, with target="_blank" in a link or a form.Thanks for ur valuable suggestion. I changed the button to link.
    Its working fine now without JavaScript.
    Now i got another requirement. When user select some items and press a button in the new popup window, the window must close on button click and the parent window must refresh. This must also be done without using JavaScript.
    Is this possible? Please give me an idea to do this.
    Thanks.

  • 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

  • Is there a way to open a new window from the "Go" menu in Mavericks?

    Before Mavericks, I was able to go from the Finder to the top menu "Go" -> "Utilities", or Applications or Home… and a new window would open.
    Now I have to manually open a new window to avoid loosing my existing window.
    Is there a way to open a new window from the "Go" menu?

    Before Mavericks, I was able to go from the Finder to the top menu "Go" -> "Utilities", or Applications or Home… and a new window would open.
    Now I have to manually open a new window to avoid loosing my existing window.
    Is there a way to open a new window from the "Go" menu?
    First, as others have already stated.....make sure the checkbox is deselected for "open folders in tabs instead of windows" in Finder Preferences.
    If you're like me and don't like tabs very much, there is a way to make folders always open in windows with a simple click (I'm using Mavericks 10.9.5).  Go to a root folder (for example, the Documents Folder), open it, and select View > Hide Toolbar, then all folders within that root folder will open in a new window.
    As an alternative method, any folder can be opened in a new window by holding down either Command Key while clicking the folder. But sooner or later you will forget to hold down that key, and then clicking on a folder will open in a tab (which will automatically resize the window and cause much aggravation).
    The Hide Toolbar trick will also work with any folder present on the Desktop. It will make all folders inside that folder open in new windows.
    To make the Applications Folder open in a new window when opening it from the menu bar at the top of the screen, you will have to open the main hard drive folder and use the Hide Toolbar trick. This will cause all folders inside it to open in new windows.
    Hope this helps.

Maybe you are looking for

  • Can't upload "put" files to remote server unless they are in a folder. Please help.

    I have done many searches on this and found no solutions. Here is the problem: When I upload a file from my local site to the remote server it works fine as long as that file is contained in a folder. Example: I can upload an image from my images fol

  • Transfer Posting upon UD of HU linked to inbound delivery

    I have configured the system to [create inspection lots upon packing inbound deliveries|http://help.sap.com/erp2005_ehp_04/helpdata/En/2d/584bcba70f11d2b44e006094b9b9dd/frameset.htm] and this is working well.  However, when making a usage decision on

  • Error message when creating a recordset :-(

    Hi! I am working with DW since years, now with version 8.02 and first time i have the following problem: When I want to create a recordset (PHP/MySQL) I always get the following message: "The Recordset script does not define the applyServerBehaviour

  • Found DAG object in Active Directory

    Dear Friends, Today i have detected an Object called 'DAG' in Active Directory. I am not aware of these objects. Please some one could elaborate? It might be a silly question. But still i am feeling free to learn. Regards, Jay.

  • Installing WebLogic 6.1 on Linux?

    I have a few rather basic questions regarding installing WebLogic 6.1 on Linux. 1. What should I use as a home directory? I know that we use C:\BEA in the Windows world. I've seen a number of people referring to /usr/local/bea. Is there a general con