Forms in a seperate Window / Frame  (Tip / Solution)

Hello all,
I think I have a nice solution for the problem to start Oracle Forms in a separate window without an additional Iexplorer Window (not working for Firefox ,
Webstart is not possible because you don't get the env from default.env).
So I tell you that, I hope it helps :
What does the developer do.
He uses a javascript to open new window and copy the original webutiljpi.htm into this new window. Then he closes the main window and reload the new one.
That is all
webutiljp_wini.htm
<HTML>
<!-- FILE: webutiljp_wini.htm (Oracle Forms) -->
<!-- -->
<!-- This is the default base HTML file for running a form on the -->
<!-- web using the JDK Java Plugin. This is used for example when -->
<!-- running with Netscape on Unix. -->
<!-- and a certificate regsitration applet for the WebUtil utility -->
<!-- -->
<!-- IMPORTANT NOTES: -->
<!-- Default values for all the variables which appear below -->
<!-- (enclosed in percent characters) are defined in the servlet -->
<!-- configuration file (formsweb.cfg). It is preferable to make -->
<!-- changes in that file where possible, rather than this one. -->
<!-- -->
<!-- This file uses several extra tags that are not present in the -->
<!-- default template files. You should ensure that these are -->
<!-- present in the configuration that uses this template -->
<!-- The extra substitution Tags are: -->
<!-- %webUtilArchive% = jar file containing the WebUtil code -->
<!-- (by default this should be frmwebutil.jar) -->
<!-- %WebUtilLogging% = Defines the current logging mode. -->
<!-- Valid values: off|on|console|server|all -->
<!-- (on == console) -->
<!-- %WebUtilLoggingDetail% = Specifies the level of error logging.-->
<!-- Valid values: normal|detailed -->
<!-- %WebUtilErrorMode% = Should errors be displayed in an alert -->
<!-- as well as the programmer defined -->
<!-- locations -->
<!-- Valid values: console|server|alert|all -->
<!-- %WebUtilDispatchMonitorInterval% = Counts in second to -->
<!-- indicate how often the monitor thread -->
<!-- checks to see if the Forms session is still-->
<!-- alive. Used with the WebUtil_Session -->
<!-- package. -->
<!-- %WebUtilTrustInternal% = Should intranet without domain suffix-->
<!-- be trusted. -->
<!-- Valid values: true|yes|false|no -->
<!-- %WebUtilMaxTransferSize% = Size in bytes of file transfer -->
<!-- segments. Default and maximum allowed is -->
<!-- 16384, i.e. 16K. -->
<!-- <c> by Frank Hartmann -->
<HEAD><TITLE>Loader</TITLE>
<script language="javascript">
function create_html(){
var quellcode = ' @br@ \
<HTML>@br@ \
<HEAD><TITLE>%pageTitle% - WebUtil</TITLE>@br@ \
<BODY %HTMLbodyAttrs%>@br@ \
%HTMLbeforeForm%@br@ \
<!-- Registration applet definition (start) -->@br@ \
<OBJECT classid="%jpi_classid%"@br@ \
codebase="%jpi_codebase%"@br@ \
WIDTH="0"@br@ \
HEIGHT="0"@br@ \
HSPACE="0"@br@ \
VSPACE="0">@br@ \
<PARAM NAME="TYPE" VALUE="%jpi_mimetype%">@br@ \
<PARAM NAME="CODEBASE" VALUE="%codebase%">@br@ \
<PARAM NAME="CODE" VALUE="oracle.forms.webutil.common.RegisterWebUtil" >@br@ \
<PARAM NAME="ARCHIVE" VALUE="%webUtilArchive%" >@br@ \
<COMMENT>@br@ \
@br@ \
<EMBED SRC="" PLUGINSPAGE="%jpi_download_page%"@br@ \
TYPE="%jpi_mimetype%"@br@ \
java_codebase="%codebase%"@br@ \
java_code="oracle.forms.webutil.common.RegisterWebUtil"@br@ \
java_archive="%webUtilArchive%"@br@ \
WIDTH="1"@br@ \
HEIGHT="1"@br@ \
HSPACE="0"@br@ \
VSPACE="0"@br@ >@br@ \
<NOEMBED>@br@ \
</COMMENT>@br@ \
</NOEMBED></EMBED>@br@ \
</OBJECT>@br@ \
<!-- Registration applet definition (end) -->@br@ \
@br@ \
<COMMENT id="forms_plugin_info" @br@ \
plug_ver="%jpi_classid%" @br@ \
appheight="%Height%"@br@ \
appwidth="%Width%"@br@ \
appcodebase="%jpi_codebase%">@br@ \
</COMMENT>\
@br@ \
<!-- Forms applet definition (start) -->@br@ \
<NOSCRIPT>@br@ \
<OBJECT classid="%jpi_classid%"@br@ \
codebase="%jpi_codebase%"@br@ \
WIDTH="%Width%"@br@ \
HEIGHT="%Height%"@br@ \
HSPACE="0"@br@ \
VSPACE="0">@br@ \
</NOSCRIPT>@br@ \
<!--xx<SCRIPT LANGUAGE="JavaScript" SRC="java/forms_ie.js"></SCRIPT>xx--> @br@ \
<PARAM NAME="TYPE" VALUE="%jpi_mimetype%">@br@ \
<PARAM NAME="CODEBASE" VALUE="%codebase%">@br@ \
<PARAM NAME="CODE" VALUE="oracle.forms.engine.Main" >@br@ \
<PARAM NAME="ARCHIVE" VALUE="%archive%,%webUtilArchive%" >@br@ \
@br@ \
<PARAM NAME="serverURL" VALUE="%serverURL%">@br@ \
<PARAM NAME="networkRetries" VALUE="%networkRetries%">@br@ \
<PARAM NAME="serverArgs"@br@ \
VALUE="%escapeParams% module=%form% userid=%userid% sso_userid=%sso_userid% sso_formsid=%sso_formsid% sso_subDN=%sso_subDN% sso_usrDN=%sso_usrDN% debug=%debug% host=%host% port=%port% fontsize=%fontsize% bold=%bold% statusbar=%statusbar% fg_color=%fg_color% %otherParams%">@br@ \
<PARAM NAME="separateFrame" VALUE="%separateFrame%">@br@ \
<PARAM NAME="splashScreen" VALUE="%splashScreen%">@br@ \
<PARAM NAME="background" VALUE="%background%">@br@ \
<PARAM NAME="lookAndFeel" VALUE="%lookAndFeel%">@br@ \
<PARAM NAME="colorScheme" VALUE="%colorScheme%">@br@ \
<PARAM NAME="serverApp" VALUE="%serverApp%">@br@ \
<PARAM NAME="logo" VALUE="%logo%">@br@ \
<PARAM NAME="imageBase" VALUE="%imageBase%">@br@ \
<PARAM NAME="formsMessageListener" VALUE="%formsMessageListener%">@br@ \
<PARAM NAME="recordFileName" VALUE="%recordFileName%">@br@ \
<PARAM NAME="EndUserMonitoringEnabled" VALUE="%EndUserMonitoringEnabled%">@br@ \
<PARAM NAME="EndUserMonitoringURL" VALUE="%EndUserMonitoringURL%">@br@ \
<PARAM NAME="heartBeat" VALUE="%heartBeat%">@br@ \
<PARAM NAME="WebUtilLogging" VALUE="%WebUtilLogging%">@br@ \
<PARAM NAME="WebUtilLoggingDetail" VALUE="%WebUtilLoggingDetail%">@br@ \
<PARAM NAME="WebUtilErrorMode" VALUE="%WebUtilErrorMode%">@br@ \
<PARAM NAME="WebUtilDispatchMonitorInterval" VALUE="%WebUtilDispatchMonitorInterval%">@br@ \
<PARAM NAME="WebUtilTrustInternal" VALUE="%WebUtilTrustInternal%">@br@ \
<PARAM NAME="WebUtilMaxTransferSize" VALUE="%WebUtilMaxTransferSize%">@br@ \
<COMMENT> \
<EMBED SRC="" PLUGINSPAGE="%jpi_download_page%"@br@ \
TYPE="%jpi_mimetype%"@br@ \
java_codebase="%codebase%"@br@ \
java_code="oracle.forms.engine.Main"@br@ \
java_archive="%archive%,%webUtilArchive%"@br@ \
WIDTH="%Width%"@br@ \
HEIGHT="%Height%"@br@ \
HSPACE="0"@br@ \
VSPACE="0"@br@ \
@br@ \
serverURL="%serverURL%"@br@ \
networkRetries="%networkRetries%"@br@ \
serverArgs="%escapeParams% module=%form% userid=%userid% sso_userid=%sso_userid% sso_formsid=%sso_formsid% sso_subDN=%sso_subDN% sso_usrDN=%sso_usrDN% debug=%debug% host=%host% port=%port% %otherparams%"@br@ \
separateFrame="%separateFrame%"@br@ \
splashScreen="%splashScreen%"@br@ \
background="%background%"@br@ \
lookAndFeel="%lookAndFeel%"@br@ \
colorScheme="%colorScheme%"@br@ \
serverApp="%serverApp%"@br@ \
logo="%logo%"@br@ \
imageBase="%imageBase%"@br@ \
recordFileName="%recordFileName%"@br@ \
EndUserMonitoringEnabled="%EndUserMonitoringEnabled%"@br@ \
EndUserMonitoringURL="%EndUserMonitoringURL%"@br@ \
heartBeat="%heartBeat%"@br@ \
WebUtilLogging="%WebUtilLogging%"@br@ \
WebUtilLoggingDetail="%WebUtilLoggingDetail%"@br@ \
WebUtilErrormode="%WebUtilErrorMode%"@br@ \
WebUtilDispatchMonitorInterval="%WebUtilDispatchMonitorInterval%"@br@ \
WebUtilTrustInternal="%WebUtilTrustInternal%"@br@ \
WebUtilMaxTransferSize="%WebUtilMaxTransferSize%"@br@>@br@ \
<NOEMBED>@br@ \
</COMMENT>@br@ \
</NOEMBED></EMBED>@br@ \
</OBJECT>@br@ \
<!-- Forms applet definition (end) -->@br@ \
@br@ \
%HTMLafterForm%@br@ \
@br@ \
</BODY>@br@ \
</HTML>@br@ \
window.name='opener';
nw=window.open('','_blank','locationbar=0,toolbar=0, resizable=1');
quellcode=quellcode.replace(/<!--xx/,"");
quellcode=quellcode.replace(/xx-->/,"");
quellcode=quellcode.replace(/@br@/g,String.fromCharCode(13));
nw.document.write(quellcode);
main_window=window.open('blank:about','opener','');
main_window.opener=self;
main_window.close();
//nw.opener=self;
nw.document.location.reload();
</script>
</HEAD>
<BODY onLoad=create_html()>
</body>
</html>
Edited by: user4070147 on 30.10.2008 13:37
Edited by: Ralf Flatau on 30.10.2008 14:03

SITUATION:
Usually the forms applet can be started with either 'separateFrame=true' (which will result in an internetexplorer-window being opened, followed by a second window containg the applet) or with 'separateFrame=false' (which will result in the applet being displayed within the standard internetexplorer-window).
Disadvantages of the first method are:
- two tasks visible in windows taskbar, potentialle irritating for customers as the IE-window doesn't seem to be good for anything
- the applet will close/crash on the internetexplorer-window accidentally being closed or another URL being entered
Main disadvantage of the second method is that so far we have not been able to hide this window's locationbar, menubar etc.
SOLUTION:
Via JavaScript it is possible to open and close windows and under certain circumstances it is possible to do this without a popup asking for acknowledgement of the action being raised.
The JS-function works as follows:
1) assign the original html-code to a variable
2) assign a name (e.g. 'opener') to the current window
3) open a blank page in a new window. For this window we do not specify a name as this would prevent us from being able to open several applets in different windows (i.e. starting a second applet would cause the first applet's window to be used and thus the first applet to be closed).
4) next, we have to replace some substrings within our variable for parsing reasons
5) write the variable's content to the new window
6) open any page in the window named 'opener' (e.g. 'about:blank') and refer to this window's opener. These two steps enable us to close the window without a popup being displayed.
7) now there's only our applet window being displayed. For some yet unknown reason, the applet itself won't be executed without a reload-command.
Note: Working with IE7 (with multiple tabs), the '.close()'-operation will not close the IE-window but the current tab.
CHANGES (HTML):
Regarding the main changes, it's not really about the code of the standard HTML page but rather about displaying this page programmatically via javascript within a new window which therefore can be customized (menubar, locationbar, size, resizability etc.).
So what we're doing is mainly creating a wrapper for the original HTML page.
It might also be possible to have the standard HTML page's code in a separate file that is being loaded from within the script, but this would result in 2 files necessary (the wrapper script and the html page) and we haven't checked if the replacement of variables (%VARNAME%) that is done by forms will still work.

Similar Messages

  • Applet loading as seperate window

    Hi,
    I'm porting jEdit's help system into an applet form. Its complete, except for an annoyance - it loads as a seperate window, leaving a dead HTML page behind. I'd like to instead embed the applet inside the HTML page, so I can have a link create a popup window. As it is now, if you close the HTML page it closes the applet.
    I used the generic jBuilder code to create the applet, and added this like to start()
    HelpViewer frame = new HelpViewer();
    The GUI is created using in the HelpViewer's constructor:
    /** HelpViewer
    * Creates a new HelpViewer for specified URL
    * @param URL
    public HelpViewer(String url)
    this.setTitle("Insight Help");
    utilities = MiscUtilities.getInstance();
    // Chack if valid URL
    try
    // Check if protocal included
    new URL(url).getProtocol();
    // Valid protocol, so if pointing to specific HTML file, remove
    Log.log(Log.ERROR, this, "Parse URL for hostname");
    catch (MalformedURLException e)
    // No protocol - therefore assume local
    if (e.getMessage().startsWith("no protocol"))
    baseURL = utilities.getRemoteURL() + "/docs/";
    else
    Log.log(Log.ERROR, this, e.getMessage());
    //Set to error page?
    // Create history
    history = new String[25];
    ActionHandler actionListener = new ActionHandler();
    // Setup tabs
    JTabbedPane tabs = new JTabbedPane();
    tabs.addTab("Contents", toc = new HelpTOCPanel(this));
    tabs.addTab("Search", new HelpSearchPanel(this));
    tabs.addTab("Glossary", new HelpGlossary(this));
    tabs.setMinimumSize(new Dimension(0,0));
    // Setup toolbar
    JToolBar toolBar = new JToolBar();
    toolBar.setFloatable(false);
    toolBar.add(title = new JLabel()); // title of current page
    toolBar.add(Box.createGlue());
    JPanel buttons = new JPanel();
    buttons.setLayout(new BoxLayout(buttons,BoxLayout.X_AXIS));
    buttons.setBorder(new EmptyBorder(0,12,0,0));
    // Add back button
    back = new JButton(utilities.loadIcon("ArrowL.png"));
    back.setToolTipText("Back");
    back.addActionListener(actionListener);
    toolBar.add(back);
    // Add forward button
    forward = new JButton(utilities.loadIcon("ArrowR.png"));
    forward.setToolTipText("Forward");
    forward.addActionListener(actionListener);
    toolBar.add(forward);
    back.setPreferredSize(forward.getPreferredSize());
    // Add home button
    home = new JButton(utilities.loadIcon("Home.png"));
    home.setToolTipText("Home");
    home.addActionListener(actionListener);
    toolBar.add(home);
    // Add toolbar to panel
    JPanel rightPanel = new JPanel(new BorderLayout());
    rightPanel.add(BorderLayout.NORTH,toolBar);
    // Setup Viewer Panel
    viewer = new JEditorPane();
    viewer.setEditable(false);
    viewer.addHyperlinkListener(new LinkHandler());
    viewer.setFont(new Font("Monospaced",Font.PLAIN,12));
    viewer.addPropertyChangeListener(new PropertyChangeHandler());
    rightPanel.add(BorderLayout.CENTER,new JScrollPane(viewer));
    // Split Pane
    splitter = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, tabs, rightPanel);
    splitter.setBorder(null);
    getContentPane().add(BorderLayout.CENTER,splitter);
    setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    getRootPane().setPreferredSize(new Dimension(750,500));
    pack(); // causes window to fit the preferred size
    setVisible(true);
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    splitter.setDividerLocation(250);
    viewer.requestFocus();
    gotoURL(url,true);
    Any advice would be appreciated!
    -Ben

    There are 2 possible solution.
    1. Do not leave that window empty. I.e. write there a message "DO NOT CLOSE THIS WINDOW"
    2. Do not open new frame. Add all components to your applet. This is not very difficult.

  • Urgent help needed to setup Forms 6i Server on Windows Server 2003

    Hello,
    I am trying to install Forms 6i Server from the Forms/Reports 6i Release 2 CD onto a server with Windows Server 2003 Standard Editon (services pack 1) installed.
    The Oracle Installer produced the following error when I tried to install the Forms 6i Server From the Forms/Reports 6i Release 2 CD:
    user1.pin(20); os_error while spawning ifsrv60 -install forms60server port=9000 mode=socket batch=yes.
    Has anyone successfully installed Forms 6i Server from Forms/Reports 6i Release 2 CD onto a Windows Server 2003 server?
    Any help is appreciated.
    Phil

    You it obtained to install the FORMS 6i SERVER in Windows 2003 ?
    I am with the same problem and not yet I obtained solution.

  • PDF launched in/out of CHM window frame

    Hi,
    I have a couple of .chms developed with RH 7.  In these, I have a couple of merged CHMs that contain topics whose only function is to launch a  PDF file.
    The HTML/JS code that does this is below.  It is not clear to me that this code has anything to do with what I am seeing.  I don't know where the script came from.  If there is a better way, please share it!
    My prefererence is to have the PDF launched within the CHM's window frame.  And it does do this, but only when the CHM is launched by another program.  So if you view the "primary layout" from withing RH and select the topic, the .pdf opens up right in the frame.   This is also the case if the .chm is launched from our application executable using HTMLHelp() from the Windows SDK.
    But, if you click on the .CHM file and open it directly from windows, when you select the topic that maps to the .PDF, the .PDF is opened in an independent launch of Adobe Reader, not in the .CHM frame.
    Does anyone know why this works this way, and if there is a way to correct it?  I would like the operator to be able to open the .CHM directly and still have the .PDF displayed within that frame.
    Thanks.
    Suzanne.
    Here is the HTML code that launches the .PDF:
    <html><head>
    <meta stuff blah blah blah...>
    <title>External PDF</title>
    <script LANGUAGE=JavaScript TYPE="text/javascript" src="SomeScripts.js"></script>
    </head>
    <body onLoad="parser('../FolderName/Filename.pdf')">
    <h1 style="font-family: Arial, sans-serif;">External PDF</h1>
    <p> </p>
    </body>
    </html>
    Here is the script:
    function parser(fn)
    var X, Y, sl, a, ra, link;
    ra = /:/;
    a = location.href.search(ra);
    if (a == 2)
      X = 14;
    else
      X = 7;
    sl = "\\";
    Y = location.href.lastIndexOf(sl) + 1;
    link = 'file:///' + location.href.substring(X, Y) + fn;
    location.href = link;

    The only other (still similar) method is to touch at the bottom of the active screen and drag SLOWLY up to place it in the corner, it will slow down the animation some, but still basically the same.
    Otherwise, there is not a way to disable that.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Rounded/curved edge/corner in page window frame/box of SAPscript

    Hello,
    Can anyone tell me whether SAP ECC6.0 has any functionality which allows a page window frame/box within a SAPscript form to have rounded/curved corners for the rectangular shape?.
    I have reviewed various documentation and forum posts, sap notes etc. but none of them even bothered to mention or explain this. Other forum posts I have seen re this topic simply said it was not possible but I hope for a more explanatory answer than that.
    It wouldn't appear to be a big ask for a form to have boxes of different shapes rather than just hard straight lines and edges but perhaps SAP have some reasoning for it which I've not seen.
    Appreciate if someone out there can elaborate about this and what alternatives there would be, for example could we upload a graphic of a rounded edge box and then place text over that?.
    Thanks in advance,
    Michael

    Thanks but my question is applicable for Smartforms too. I know SAPscript is OLD and new forms should be developed with Smartforms but at the moment we are tweaking some exisitng SAPscripts and when time permits at a future point we will move to Smartforms.
    To other people out there, do you know if there is functionality in either SAPscript or Smartforms to apply Rounded/curved edges/corners in page window frames/boxes?.
    Thanks.

  • Display XML forms in a single window-URGENT!!!!!!!

    Hi,
    I created a project with XML forms Builder. It is working but the thing is that now i just want to display all the forms in the same window. Means that when i want to edit a new item instead of a new window i want to work in the same browser.
    Is that possible by configuring a resource renderer(NewsRenderer for example)?
    Otherwise do u know another solution?
    Please i need help.
    I found a topic in the forum (thread below) https://forums.sdn.sap.com/thread.jspa?threadID=46122&messageID=466382
    But i didn't understand all the points.
    So if someone know something please answer.
    Thx in advance.
    MJ

    Hi Robert,
    I did as u said: I downloaded the file <u>YOUR_PROJECT_NewsRenderListItem.xsl</u> but i didn't find any <b>_blank</b> in the text. Let's say i have exactly the same problem than in the previous thread, i don't know where to add the URL and where to replace _blank.
    I don't know where to find the method <u>CreateXSLDocument</u>(Detlev thread) and what is its interest?
    Can u please explain where i can find "xinfo=window.open(url,'_blank',params)"? It should be (according to Detlev) in <u>com.sapportals.wcm.app.xfbuilder.server.generator.xsldocs.CreateXSLDocument</u> but i really don't know how to reach this address.
    Thx a lot!!!
    best regards
    MJ

  • Forms 10g Migration : Menu attached to form appears on MDI Window.

    Hi All ,
    On migration of forms 5/6i into forms 10g observed that the Menu Module attached to a form appears on MDI window and not attached to the main window of the form.
    How do we ensure that the Menu and the Horizontal toolbar attached to the form appear on the main window of the form and not on the MDI Window ?
    Kindly help please ...
    Thanks ,

    Hi,
    I have same issue. Did you find any solution ?
    Please let me know.
    Thanks.

  • Opening a Form in a popup window

    Hi,
    What's the easiest way to open a Form in a popup window? Do I use Javascript or is there another way? Is there a documented example either in Technet or Metalink?
    Thanks,
    Steve West

    Hi,
    For further information you can see the following reply
    Re: Fax and voice solution technical details!
    Thanks
    Vineet

  • Multiple Plots In Seperate Windows

    Attached I have created a VI that launches as selected waveforms to multiple plots all on seperate windows. The way I have wrote it causes the windows to lose and gain focus as expected. Does anyone know how to stop the focus from constantly changing? Maybe even a smarter way todo this, or example of it? I was thinking maybe having LabVIEW access some windows APIs that would allow me to control focus. If that is even possible.
    Attachments:
    LaunchPlotProtoType.zip ‏297 KB

    I don't have time to figure out xeactly what you're doing, but here's some ideas from a previous project I did - maybe they'll fit:
    The project had one main window, and six sub-windows.
    The main window had a button for each sub-window, to call it up.
    Each sub window ran on its own, offering a different view on live data being taken by the main.
    Each window operated as expected - it stays in front if you click it - you move them around like any other windows.
    You couldn't click the CLOSE box, but each window had its own DONE button which closed it.
    Here's how it worked:
    1... A "Window Manager" vi was initialized (from the main) to generate six OCCURRENCEs and store them in a shift reg.
    2... A "Window Launcher" vi is started. It first calls the WINDOW MANAGER to obtain the OCCURRENCE refnums, then launches six parallel WHILE loops.
    3... Each WHILE loop has a WAIT ON OCCURRENCE function. It waits a specific time (500 mSec in my case).
    4... If the WAIT ON OCCURRENCE timed out, we simply check the state of a global PROGRAM RUNNING variable, and loop if it's true.
    5... If the WAIT ON OCCURRENCE did NOT time out, then it was triggered, and we call our particular sub-window (there's one WHILE loop for each window). The sub-windows are set to show front panel when opened, and close when done.
    6... Each sub-window monitors the PROGRAM RUNNING global and stops if that is false.
    7... Periodically, the six main buttons are fed to the "window manager"'s CHECK function. This checks each button, and if TRUE, calls "OPEN or MOVE to FRONT" VI with the path to the associated sub-window, and the occurrence for the associated window.
    8... The OPEN or MOVE to FRONT vi opens a reference to the associated VI, and checks the FP Open property to see if it's already open. If it's already open, the FP.IsFrontmost property is set TRUE to bring it to the front (one might click on the main button while this window is hidden - this will bring it forward).
    9... If the window is NOT already open, the associated occurrence is fired. The Window Launcher vi will then start it up.
    The windows do whatever work they need within themselves - it's not like the main is doing the plotting and sending data to the windows. It's more like the main is putting data into a common pot and whichever sub-windows are open (running) go and get it.
    Hope that helps.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • Using a JToolbar as a seperate window

    Hi,
    I want to have a JToolbar floating as a seperate window to my main application.
    I've used...
    JToolBar toolbar = new JToolBar();
    toolbar.add(new JCheckBox("Checkbox "));
    add(toolbar);
    toolbar.setFloatable(true);
    But when I start the program I have to drag the toolbar out of the parent frame in order to have it in its own window.
    Is there some way that I can have it set to always be in its own window?
    Thanks for your help

    Do I achieve this by making a new frame?
    something like,
    Frame f2 = new Frame?
    and then adding my toolbar to the new one?
    Thanks for the help

  • JToolbar as a seperate window

    Hi,
    I want to have a JToolbar floating as a seperate window to my main application.
    I've used...
    JToolBar toolbar = new JToolBar();
                        toolbar.add(new JCheckBox("Checkbox "));
                        add(toolbar);
                        toolbar.setFloatable(true);
    But when I start the program I have to drag the toolbar out of the parent frame in order to have it in its own window.
    Is there some way that I can have it set to always be in its own window?
    Thanks for your help

    Why not simulate a toolbar by creating a second frame? It's not a JToolBar, but it can accomplish the same thing.

  • Open Firefox 4 in new window gives a Window frame and address bar does not refresh the current url

    Using Firefox 4 in Windows 7
    I have customised the position of tabs (Tabs on top) and which toolbar items I would like to see.
    The first window I open of firefox 4 always has the configuration as I set it.
    Whenever I open a new window of firefox either:
    - Right-click a link to open in a new window
    - Click a link anywhere (such as an email) to open a new window
    - When a website opens a page in a new window
    Bad Results:
    - The new window does not have the configuration as set in the main window (Tabs on top)
    - The new window has a windows type window frame around the firefox window (see two sets of window controls eg. "minimise", "restore" and "close")
    - The open page does not show the url - navigating to a new page within this window will not update the url :: strangely enough clicking the url page icon will update the url as it should be
    - Sometimes when restarting firefox, it will open the first main window with the remembered tabs and then open approx 8 or so blank new windows as described above

    This issue can be caused by an extension that isn't working properly.
    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
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Window 8 and Windows 8.1 Upgrade Information and Windows 8 Tips

    Need a tip on "how-to" do something in Windows 8 then the below links might provide the information that you need.
    Microsoft Windows 8 upgrade assistant and FAQs.
    HP Windows 8 Upgrade - Important Information Before You Upgrade.
    HP Windows 7 to Windows 8 conversion information for Notebooks.
    Test my HP PC for Windows 8 Compatibility.
    Windows 8 – Tutorial Index and Windows 8 Tips
    Windows 8 Apps more Windows 8 Apps
    Windows 8 System Requirements
    Additionally, if you Google "Windows 8 tips", you will find many excellent articles posted on the internet.
    Windows 8.1 upgrade suggestions:
    There are some important steps to take prior to doing the upgrade.  Review this MS posted document. Be sure to run the upgrade assistant.
    Be sure that Windows 8 has all of the latest MS updates installed. There are prerequisite patches that are required.
    Be sure that you have at least 40 GB of hard disk free space.
    Back up your data to external media.
    Make a Windows 8 recovery media to external media before doing the upgrade.  I prefer to use a third party hard drive imaging program.
    Temporarily disable the antivirus software.
    You will need to reinstall your programs after the upgrade so make note of which ones are required.
    Check the HP Support site for Window 8.1 updates for your particular PC.  If you don't see any updates then your PC has not been tested/certified with Windows 8.1.
    HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
    HP Photosmart Premium C309G, HP Photosmart 6520
    HP Touchpad, HP Chromebook 11
    Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
    Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
    Windows 7/8 UEFI/Legacy mode, MBR/GPT

    I've been running 64-bit Windows 8 Consumer Preview very nicely for several months and want to upgrade to 64-bit Windows Pro on my Pavilion a1440n. When I've tried to install from within the OS I get weird messages indicating that it can't be installed on a USB Flash drive (which I'm not trying to do). When I tried doing a clean install I got an odd message saying that certain installer files were missing and it would not complete. I called Microsoft customer support and the agent there thought my cpu would work because it wouldn't support Hyper-V, even though I understand that it optional. From running coreinfo.exe I can see that I have the PAE, NX, and SSE2 on the cpu enabled as meets requirements.
    When I ran through th HP site I saw that this machine has not been tested. Is there any way of getting confirmation that Windows 8 Pro 64-bit will or won't run on my machine? The HP Product code for it is ER904AA#ABA.
    Thanks!

  • How do I turn off the window maximizing feature when I click the top window frame?

    Clicking on the top window frame causes Firefox to maximize. This is the only program I have that does this, so I am constantly doing this accidentally. It causes me no end of annoyance, having to minimize the Firefox window every time to see the other window I am using at the same time. Is there a way of turning this "feature" off? I have looked through all controls tabs I can find, and the help files on the Firefox website, and can find no answers to this.

    Unintended consequences ... my favorite kind! New information - this appears to be a Windows issue - sorry Mozilla. Another app (Word) just started doing the same thing (previously only observed with Firefox). If the app is too close to the top of screen, and you select it, and slightly move it, it maximizes. I heard this is standard in Windows 7, but I am using XP. This is becoming typical of the annoying hubris of Microsoft that will likely make my next OS Linux. I am not blind, and in need of Microsoft making a single window maximally readable, especially at the expense of all the other windows. If I wanted my computer to make all of my decisions for me, I would have stuck with Apple!
    Sorry Mozilla help board - I just had to get it off my chest!

  • How can I call the Class and have a PDF appear in seperate window?.

    I would like to call the class/interface ZCL_UIU_PRN_ACCOUNT2, method Collect_data and have a Smartform executed to produce a PDF document in a Seperate window.
    Where I have an issue is in opening another window to display the PDF.
    I know the Standard PDF Facsheet does exactly this, but that is triggered via the Web browser and calls a Java script, avoiding and events and round-server trip processing. I would have changed the button values so that when pressed it does process the various events and eventually ends up at EH_ONPREVIEW for the BP_HEAD/Overview. I know just need to open a new window and call the process to create the PDF via Smartform.
    Any suggestions would be more than welcome. I have spent so much time on this, and have gained no real ground, so far.
    Jason

    Hi,
    in the method
    data: zcontrol TYPE SSFCTRLOP.
    zcontrol-device = 'PRINTER'.
    zcontrol-langu = sy-langu.
    zcontrol-no_dialog = 'X'.
    zcontrol-getotf = 'X'.
    data: job type SSFCRESCL.
    data: devtype type RSPOPTYPE.
    CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
    EXPORTING
    i_language = sy-langu
    IMPORTING
    e_devtype = devtype
    EXCEPTIONS
    no_language = 1
    language_not_installed = 2
    no_devtype_found = 3
    system_error = 4
    OTHERS = 5.
    data: output_options type SSFCOMPOP.
    output_options-tdprinter = devtype.
    call function FM_NAME
    EXPORTING
    *   ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
       CONTROL_PARAMETERS         = zcontrol
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
       OUTPUT_OPTIONS             = output_options
    *   USER_SETTINGS              = 'X'
    IMPORTING
    *   DOCUMENT_OUTPUT_INFO       =
       JOB_OUTPUT_INFO            = job
    *   JOB_OUTPUT_OPTIONS         =
      TABLES
        t_texto                    = t_texto
      EXCEPTIONS
        FORMATTING_ERROR           = 1
        INTERNAL_ERROR             = 2
        SEND_ERROR                 = 3
        USER_CANCELED              = 4
        OTHERS                     = 5.
    if sy-subrc <> 0.
    endif.
    data: DOCTAB_ARCHIVE type TABLE OF DOCS,
    LINES type TABLE OF TLINE.
    *CALL FUNCTION 'CONVERT_OTF_2_PDF'
    ** EXPORTING
    **   USE_OTF_MC_CMD               = 'X'
    **   ARCHIVE_INDEX                =
    ** IMPORTING
    **   BIN_FILESIZE                 =
    *  TABLES
    *    otf                          = job-otfdata
    *    doctab_archive               = doctab_archive
    *    lines                        = lines
    * EXCEPTIONS
    *   ERR_CONV_NOT_POSSIBLE        = 1
    *   ERR_OTF_MC_NOENDMARKER       = 2
    *   OTHERS                       = 3
    data:  l_pdf_len type i,
    l_pdf_xstring type XSTRING.
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    format = 'PDF'
    IMPORTING
    bin_filesize = l_pdf_len
    bin_file = l_pdf_xstring
    TABLES
    otf = job-otfdata
    lines = lines
    EXCEPTIONS
    err_max_linewidth = 1
    err_format = 2
    err_conv_not_possible = 3
    err_bad_otf = 4
    OTHERS = 5.
    IF sy-subrc is initial.
    DATA: cached_response TYPE REF TO cl_http_response.
    CREATE OBJECT cached_response
    EXPORTING add_c_msg = 1.
    l_pdf_len = XSTRLEN( l_pdf_xstring ).
    cached_response->set_data( data = l_pdf_xstring
    length = l_pdf_len ).
    cached_response->set_header_field(
    name = if_http_header_fields=>content_type
    value = 'application/pdf' ).
    cached_response->if_http_response~set_status( code = 200
    reason = 'OK' ).
    cached_response->if_http_response~server_cache_expire_rel(
    expires_rel = 180 ).
    data guid type GUID_32.
    CALL FUNCTION 'GUID_CREATE'
    IMPORTING
    ev_guid_32 = guid.
    data display_url type string.
    CONCATENATE url '/' guid '.pdf' INTO
    display_url.
    cl_http_server=>server_cache_upload( url = display_url
    response = cached_response ).
    *GV_DISPLAY_URL & GV_PRINTON are class attributes
    CLEAR: gv_display_url, gv_printon.
    MOVE display_url TO gv_display_url.
    gv_printon = 'X'.
    ENDIF.
    Send me you e-mail i cannot post the code that is used in the view.htm.
    Best Regards,
    Caíque Escaler
    Edited by: Caíque Escaler on Nov 26, 2010 5:00 PM

Maybe you are looking for

  • Item cost showing R 3 971.77 instead of R 1.88.

    Hi All We have a problem where one of the items is showing an incorrect item cost amount, instead of showing R 1.88 it has R 3 9 71.77. This might be due to the incorrect item cost entered initially by the user. When creating any marketing document t

  • Calling on a S5000???

    I wanted to replace my old Android phone with one that had a bigger screen. I got that down to two choices, the S5000 and Nexus 7. I choose the S5000 because I had a tight budget even though I like the specs on the Nexus 7 better. I really thought I

  • I have an iPhone 4 and 5 with 2 different numbers but same Apple ID and I can't set up voicemail on the 5

    i have 2 iPhones with 2 different numbers but same Apple ID, why can't I set up voicemail on one phone

  • 10.8.2 Update Causes Skype and Chrome to Crash

    I just finished the OSX 10.8.2 update and now Skype and Chrome/Rockmelt won't open on my Macbook Pro. I get the following error message: "RockMelt (or Chrome/Skype) quit unexpectedly. Click Reopen to open the application again. Click Report to see mo

  • INSTALLING ITUNES : URGENT ASSISTANCE

    Hi , well i got the new red ipod nano as a xmas present and i can tuse it yet due to the fact when i try to install itunes 7 it says "The install script engine on this machine is older than the version required to run this setup. If available, please