Programmatically close the current sequence's window

Is there a way to programmatically close the current sequence’s window in order to reload it if it was modified or to load another sequence (programmatically)?

Do you want to close it from the UI?  Because I don't think you can do it from the Seq. Editor???? 
From TestStand Help:
CloseSequenceFile Method
Syntax
ApplicationMgr.CloseSequenceFile ( file)
Return Value
Boolean
Returns whether the sequence file was successfully closed.
Purpose
Closes a sequence file.
Remarks
The Application Manager control attempts to close the sequence file by generating a QueryCloseSequenceFile event. The QueryCloseSequenceFile event confirms whether to release the file and remove the file from the SequenceFiles collection. If the sequence file is running in an execution or if other references to the sequence file exist, TestStand does not immediately unload the file from memory.
Parameters
file As SequenceFile
[In] Specifies the sequence file to close.
OpenSequenceFile Method
Syntax
ApplicationMgr.OpenSequenceFile ( sequenceFilePath)
Return Value
SequenceFile
Returns the opened sequence file, if successful. If a type conflict occurs when loading the file and the conflict prevents TestStand from opening the file, this method returns NULL. If an error occurs while opening the file, this method throws an exception.
Purpose
Opens a sequence file.
Remarks
This method adds the sequence file to the SequenceFiles collection and generates the SequenceFileOpened and DisplaySequenceFile events.
Parameters
sequenceFilePath As String
[In] Specifies the path of the sequence file to load. If you do not pass an absolute path, this method searches for the file using the TestStand search paths.
Hope that helps,
jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~

Similar Messages

  • Firefox lags too much when i download and close the current window, then try to open a new window. why?

    ok, everytime i download something the download window pops up, so i let it download and i like to keep it open so i can monitor my downloads. now, the problem is when i close the current firefox browser window and try to re-open a new one. my firefox browser window starts lagging/hangs very bad when i open up a new browser window. i have my settings set up to clear my history everytime i close my firefox, so i was wondering why it does this? is it because my history gets cleared and i still have my download window opened?

    Have a look at this post, see if it is of any help (though related to Vista, but same issue can be there with Window 7 also)
    http://www.vistax64.com/browsers-mail/265937-firefox-exe-still-running.html

  • Close the current UI and open another one

    Hello everyone,
    I've got the following code and I want to close the current window and open another one. When i use "System.exit(1);" it closes everything when I use "this.dispose()" it doesn't close anything what could I try to get this to work? any suggestions?
    the code is:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    //public class Equip_or_Job implements ActionListener {
    public class Equip_or_Job extends Frame implements ActionListener {
        JFrame dFrame;
        JPanel jePanel;
        JButton choice;
        JComboBox jeqid = new JComboBox();
        public Equip_or_Job() {
            //Create and set up the window.
            dFrame = new JFrame("Work with Jobid or Equipid");
            dFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the panel.
            jePanel = new JPanel(new GridLayout(2, 1));
            dFrame.getContentPane().setLayout(new BorderLayout());
            //Add the widgets.
            addWidgets();
            //Set the default button.
            dFrame.getRootPane().setDefaultButton(choice);
            //Add the panel to the window.
            dFrame.getContentPane().add(jePanel, BorderLayout.CENTER);
            //Display the window.
            dFrame.pack();
            dFrame.setVisible(true);
    Create and add the widgets.
        private void addWidgets() {
             //Create widgets.
              jeqid.addItem("Chose by Job");
              jeqid.addItem("Chose by Equipment");
              choice = new JButton("Chose");
                //Listen to events from the Convert button.
                choice.addActionListener(this);
              jePanel.add(jeqid);
              jePanel.add(choice);
        public void actionPerformed(ActionEvent event) {
              String sel = (String) jeqid.getSelectedItem();
            if("Chose by Job".equals(sel)){
                   InsertNewDates inj = new InsertNewDates();
                   //System.exit(1);
                   dispose();
              else if("Chose by Equipment".equals(sel)){
                   InsertNewDates ineq = new InsertNewDates();
                   //System.exit(1);
                   dispose();
    Create the GUI and show it.  For thread safety,
    this method should be invoked from the
    event-dispatching thread.
        private static void createAndShowGUI() {
            //Make sure we have nice window decorations.
            try {
                   UIManager.setLookAndFeel(
                        UIManager.getCrossPlatformLookAndFeelClassName());
              catch (Exception e) { }
            Equip_or_Job eorj = new Equip_or_Job();
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    thanks in advance :o)

    I'm not exactly sure what you want to do, but...:
    dFrame.setVisible(false) hides the current Frame and the application is still running
    Best reagrds, Marco

  • How can I close the current tab in Firefox v 17.0.1?

    I have used Firefox for years and have always used Tabs instead of opening new windows. I have always been able to click the little "X" on the right side of the tab to close it. I am finding now that I cannot close the current tab by doing this. I have to click on another open tab and then click on the other tab I wanted to close.
    I have looked through the Options many times trying to see if there is a setting I need to change, but have not found anything.
    Is it possible in this version of Firefox (v17.0.1) to close the current tab?

    I started Firefox in SAFE MODE and the problem went away. I checked for updates and all were up to date. I then restarted Firefox and it worked fine. Since I didn't really do anything, I am curious as to why it is now working as expected. I am glad, but still curious.
    Thank you.

  • How can I read the next e-mail when I delete or close the current one

    Is there a way to setup my preferences so that I can move to the next e-mail when I delete or close the current one?
    I could do this in Thunderbird and I really miss that feature.
    Thanks,
    Bob

    Mariah Byrne wrote:
    Hi all,
    I am so sorry to be dense on this (I just switched from PC to Mac last week), but here's my question:
    I like to read emails from the most recent to the least recent. In Outlook, you could set a preference for opening the preceding (older- going down directionally in Inbox) or following (newer- going up directionally in Inbox) email when you delete. It seems to only open "up" in Mail. Am I missing something?
    THANKS!
    -Mariah
    I'm right with you, Mariah. This is exactly my problem, too! Is there a way when viewing message (using the preview window) with the message list sorted in descending date order (most recent on top) and let's say you are view a message in the middle of the list, that when you delete that message the next oldest (further down on the list) message is what's previewed??
    Thanks!

  • How do I programmatically reference the current page in 902?

    Hello,
    How do I programmatically reference the current page in 902?
    The Portal Smart Text option for Current Page is not flexible enough, and I wish to create my own custom greeting using PL/SQL.
    Cheers,
    John

    hi,
    If you are developing a PLSQL Portlet, then you do have a way for getting the page URL.
    The page URL can be obtained from the record, portlet_runtime_record. There is a filed page_urlavailable with portlet_runtime_record.
    The portlet_runtime_record is passed as a argument to the show_portlet procedure.
    --Sriram                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How do i programmatically get the current version of a file?

    I asked this same question in the SP2013 forum and I haven't been able to determine the solution. So I posting this here, to maybe get more eyes on this issue. 
    ...I am basically trying to programmatically get the current version of a document in a library, then determine if its a major or minor version, in code. I have tried doing this, to get the current version but I keep getting an empty string returned.
    var versions = item.File.Versions;
    string currentVersion = string.Empty;
    foreach (SPListItemVersion version in item.Versions)
    DateTime lastMod = version.Created;
    foreach (SPFileVersion fileVersion in versions)
    if (fileVersion.IsCurrentVersion == true)
    currentVersion = fileVersion.ToString();
    Does anyone know what am doing wrong, and how to get this resolved? I really appreciate the help. Thanks

    Why not just get the SPListItem and look at it's Version property? That'll be the latest version.
    No need to go into the Versions collection etc. When you get a list item you get the current version as standard.
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP

  • How do I close the current web page in Safari?

    UPgraded to IOS 8 because a friend said it cured his problems, so I took the plunge.
    BIg mistake.
    THis question concerns Safari.
    how do I close the current web page?

    I just found how to do this on my iPad!  At the top right are two squares overlapping.  Click on that and you will get your page hanging in space.  There is an X on the top (I think) left.  Click on that and TaDa!  Lost of hoops, but glad I found it.

  • End-user closes the Web browser's window...

    Hi ,
    I have an Exit_Form selection on a menu.....
    Is it possible the code being there to be executed whenever the end-user closes the web-browser's window.....???
    I use Dev10g.
    Thanks , a lot
    Simon

    Unfortunately... is is not applicable....because:
    1) Many users(application users) connect via a db user to the database.... , so i cannot relate each application user to a db session.
    2) The trigger on_logoff can not be used because of the first note....
    3) As i have written in my previous post the "exit_form" is not 'pure PL/SQL' code but 'forms' code.... It contains some 'erase(global_variables)' which are unknown to the db......
    Thanks , anyway...
    Simon

  • After installing updated firefox,my speed dial will not open when I close the current tab which it did before I upgraded

    after installing updated firefox,my speed dial will not open when I close the current tab which it did before I upgraded. How do I fix this problem? Thank You, Mike Chidester

    is it up to date
    Speed Dial :: Add-ons for Firefox
    "Works with:
    Mobile 0.7 - 1.0.*
    SeaMonkey 2.0 - 2.5a1
    Firefox 2.0 - 8.0a1"
    https://addons.mozilla.org/firefox/addon/speed-dial/#detail-relnotes

  • When I only want to close the current window to return to the previous window, the whole firefox site closes down, I end up back at my desktop & have to start all over again. How can this be fixed?

    If I close a window I should be back at the previous window that I was at when I followed a link to this window. At least that's the way Internet Explorer works, which I have used for years. The only thing that prevents me from using Firefox exclusively is that it is very time consuming to have to start all over again from scratch every time I close a window. For instance, say I type "cats" into the search box. It gives me links to a list of "cats" sites. I go to a "cats" website, decide I don't like it so close the window to return to my list of sites, but instead of returning me to the list, I end up at my desktop. Then I have to start all over, just like I had not even been online. Very aggravating. I don't know how else to describe the problem, I can't believe that other people haven't had a similar complaint, unless I just have some settings wrong?

    Now up to Firefox 8 and the problem persists. Cannot go to the www.turnitin.com page and login as I used to do -- Firefox does not remember my username or password.
    Still works on Windows, and with other browsers... It would be great if a fix is available.

  • Pressing Alt+F4 closes the current window but also chages to tty4.

    Hello, I don't know what may be causing this, but I've just realized that pressing Alt+F4 changes to tty4 besides closing the current window.
    I'm running Gnome here, does anybody happen to come across this?

    MickST wrote:I thought the way to change to the different tty was Ctrl+Alt+Fn, I don't recall pressing Alt+F4 and going to a tty before :S.
    It is. Pressing Alt+F4 while in X session shouldn't bring you to tty.

  • Firefox cannot open/reload any websites after resuming from a system standby. I have to close the current window and start a new session, then it works again

    I am using Firefox v 13.0.1 (Mozilla Firefox for Ubuntu canonical 1.0) on Ubuntu 12.04 LTS. Whenever my system resumes from standby I am not able to open/load any webpages in the Firefox session that was already running before the standby. I don't get any error message, but the page doesn't load at all. If I close the session and start a new one everything works fine.

    Not necessarily: rv:1.9.2.8 indicates a Firefox 3.6.8 version
    *Mozilla/5.0 (X11; Linux i686; rv:1.9.2.8) Gecko/20100722 Firefox/4.0.1
    You can check for a possibly corrupted user agent.
    See:
    *https://support.mozilla.org/kb/Finding+your+Firefox+version
    *https://support.mozilla.org/kb/websites-say-firefox-outdated-or-incompatible
    *http://kb.mozillazine.org/Resetting_your_useragent_string_to_its_compiled-in_default

  • Firefox keeps running in the backround after closing it, it just lingers there, and when I try to restart firefox, it says that I have to close the current one or restart my system to clear the last firefox. what can I do, thanks...

    After the last update, my IBM Clone computer does not close the session of firefox when clicking on "close" it clears the screen back to the desktop but firefox continues to hang there in the backround and will not allow another session of firefox to start until the first session is closed. The only way to reconnect is to do a restart on my system, and then the old firefox session is closed and the new session will start.

    Must be the "hang at exit" problem. <br /><br />
    #Stop the Firefox process:
    #*[http://kb.mozillazine.org/Kill_application Mozillazine - Kill application]
    #*Windows 7 users click [http://www.techrepublic.com/blog/window-on-windows/reap-the-benefits-of-windows-7s-task-manager/2576 here]
    #Why Firefox may hang:
    #*[http://support.mozilla.com/en-US/kb/Firefox+hangs Firefox hangs] (see Hang at exit)
    #*[http://kb.mozillazine.org/Firefox_hangs Firefox hangs (Mozillazine)] (see Hang at exit and Closing Firefox properly)
    #*[https://support.mozilla.com/en-US/kb/Firefox+is+already+running+but+is+not+responding Firefox is already running but is not responding]
    #Use Firefox Safe Mode to find a problem with an Extension or Plugin:
    #*Don't check anything when entering Safe Mode, just continue
    #*If the problem does not occur in Safe Mode it is probably and Extension or Plugin causing the problem
    #*See:
    #**[[Safe Mode]] and [http://kb.mozillazine.org/Safe_Mode Safe Mode (Mozillazine)]
    #**[http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes Troubleshooting extensions and themes]
    #**[http://support.mozilla.com/en-US/kb/Troubleshooting+plugins Troubleshooting plugins]
    #**[http://support.mozilla.com/en-US/kb/Basic+Troubleshooting Basic Troubleshooting]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • Why do I get an error message that tells me I need to close the current session of Firefox. It is open somewhere and I must restart my computer to get past this. Why?

    I cannot open Firefox on my system as a message opens that tells me I must close the session that is currently running. However, I have not opened it and it doesn't show anywhere on my computer that it is open. The error message tells me that I must restart my computer which I have to do to get past this point. Then it works fine after that. I have been using Firefox for about 5 months and it has happened about 6 times now. A bit frustrating I must say. Thank you for your assistance on this matter.

    Open Task Manager and click on the Processes tab. Scroll down to "Firefox.exe" , click on that line and click on "End Process" button.

Maybe you are looking for