How to close and remove the current panel when loading another vi ?

Hello,
After login , I need to close and remove the login window , then launch another panel . How to do this?

save "sub" to labview's default directory
save "main" to anywhere in your PC and run it.
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010
依恩与LabVIEW
LVVILIB.blogspot.com
Attachments:
intro_self_close.vi ‏37 KB
ianf_Test001.vi ‏33 KB

Similar Messages

  • How to achieve SUBMIT for the current page when I click other tab?

    Problem: How to achieve SUBMIT for the current page when I click other tab?
    Description: I have a two-page application and each page associates with a tab. Say page1 associates tab1 and page2 associates tab2. In each page, I have a submit button, a after submit process associated to the submit button, and a tabular form. For page1, I fill out the fields and hit the button. The page1 will appear again and I can see the data I have insert. However, If I fill out the fields and click the tab2 (page 2) instead. when I come back to page1, the data I filled out are all gone. Is there any way in HTML DB to force the submit in the current page after you click other page. If use JavaScript, what is code looks like.
    Appreciate your time and your answer.
    Mike

    Scott,
    just for clarity, if I understood correctly what you said there are two possibilities:
    1) keep the standard tab branch and give up the possibility of validating page items. Below you can find an example of such cases.
    2) Replace the template substitution string and perform a "custom" button-like submit also adding a branch to the main page associated with the tab. Page items will be validated if the branch firing point is set after the validations.
    I couldn't find an example of the latter, but I found easily an example of the former:
    it's the "Report attributes", page 420 of app 4000.
    If you enter 'aaa' in the "Number of rows" form field and then you press "apply changes", htmldb correctly displays an inline error message saying that the value must be numeric. On the contrary, if you click on the "Region Definition" tab, htmldb takes you to a page showing an oracle exception:
    ORA-20001: Error in DML: p_rowid=4785927011172906402, p_alt_rowid=ID, p_rowid2=, p_alt_rowid2=. ORA-20001: Invalid numeric value aaa for column PLUG_QUERY_NUM_ROWS
    Bye,
    Flavio

  • How to know and change  the current memory settingf of a libray ?

    Hi
    is anybody know how to change the current quota setting of a library or workspace with content services api.
    and how will we change the same.
    i need to get current wuota settings of a library and need to change that settings..
    Thanks

    To determine existing quota settings, check out Attributes javadoc for
    QUOTA_ALLOCATED Quota allocated to the closest parent folder that has a QuotaConfiguration (could be the item itself, in the case of a Folder item).
    Available on: DOCUMENT , FOLDER
    Constant Field Value: QUOTA_ALLOCATED
    Data Type: Long
    QUOTA_CONSUMED Quota consumed by the subtree of the closest parent folder that has a QuotaConfiguration.
    Available on: DOCUMENT , FOLDER
    Constant Field Value: QUOTA_CONSUMED
    Data Type: Long
    Create an AttributeRequest[] for the above attributes on the appropriate item concerned.
    For example, to determine quota of my personal workspace :-
    FdkSession session = new FdkSession(....);
    SessionManager sM = Managers.getSessionManager(session);
    AttributeRequest ar1 = new AttributeRequest();
    ar1.setAttributeName(Attributes.PERSONAL_WORKSPACE);
    ar1.setRequestedAttributes(new AttributeRequest[]
    new AttributeRequest(Attributes.QUOTA_ALLOCATED,null),
    new AttributeRequest(Attributes.QUOTA_CONSUMED,null)
    AttributeRequest[] requestedAttributes = new AttributeRequest[] { ar1 };
    Item i = sM.getCurrentUser(requestedAttributes);
    log(i);
    In order to update quota of a Workspace (or potentially the domain), call
    QuotaManager.updateQuota method.
    Check out the javadoc for QuotaManager.
    cheers
    Matt.

  • How to update and use the values of variables of another class

    I can we update or use the values of the variables of another class. For example, if we have class A
    public class A //(situated in package view)
    public s0,s1;
    public void runFunction()
    ...some coding and proceedings
    s0="Hi";s1"Hello";
    ......some coding
    RequestDispatcher dispatcher = request.getRequestDispatcher("/MainUser.jsp?alert=F");
    dispatcher.forward(request, response);
    ARunner.jsp
    <jsp:useBean id="a" class="view.A" scope="session"/>
    <%
    a.runFunction();
    %>
    MainUser.jsp
    <jsp:useBean id="a" class="view.A" scope="session"/>
    <%
    System.out.println("S0:"+a.s0+" S1:"+a.s1); //should print S0:Hi S1:Hello, but printing S0:null S1:null
    %>
    A.class has some procedures and String variables which can be updated and later can be used in JSP pages. The project starts with ARunner.jsp which uses the A.class and updates the values of string variables s0 and s1of A to hi and hello respectively.And then redirects the page to MainUser.jsp.
    Now what I want is ,when I call those string variables(s0 & s1 of A.class) in any another jsp likeMainUser.jsp it should give me the value of hi and hello respectively not null as it is giving right now. Could you refine the coding for this one?

    public class A //(situated in package view)
    public String s0,s1;
    public void runFunction()
    ...some coding and proceedings
    s0="Hi";s1"Hello";
    ......some coding
    RequestDispatcher dispatcher = request.getRequestDispatcher("/MainUser.jsp");
    dispatcher.forward(request, response);
    ARunner.jsp
    <jsp:useBean id="a" class="view.A" scope="session"/>
    <%
    a.runFunction();
    %>
    MainUser.jsp
    <jsp:useBean id="a" class="view.A" scope="session"/>
    <%
    System.out.println("S0:"+a.s0+" S1:"+a.s1); //should print S0:Hi S1:Hello, but printing S0:null S1:null
    %>
    giving code again to remove the typing errors. Please guide.

  • How do I just remove the current update to 3.6.12 and go back to an earlier version as I can not take the continual freeze ups ever few mins.? If this continues I will remove Firefox totally and switch to another browser I can not take this anymore.

    I can NOT take the continual freeze ups of my entire browser even worse when updating a page let alone just opening email. I closed the browser and have had to use even just microsoft or Google since this Firefox has gotten so horrible...
    I clear my history and my cache so many times a day I can not keep track anymore and that is insane to have to do it as many times as I am even worse that it does not help in the least!
    I have used Firefox for years now but if I have to remove it and switch to a different one by the days end I will and I will post in Facebook to all my friends who I had switch to Firefox what and why though some have already just switched to other browsers.

    First, that cannot be an iBook G4 as that machine cannot run Snow Leopard let alone Mountain Lion.  To run Snow Leopard it has to be an Intel processor, not a G4.  What does it show as the Model Identifier in About This Mac, More Info, System Report, Hardware, Model Identifier?
    Second, if you have erased the hard drive there should not be remnants of any prior content.  Even though Disk Warrior is saying nothing is wrong with the hard drive, it sounds as though there are problems.  You may want to consider simply replacing the hard drive so there are no questions about faults.  A good source is OWC, http://www.macsales.com where they also have on-line videos showing how to do the replacement.
    Third, you could also try again to restart using the Snow Leopard DVD/CD and use Disk Utility on that install disk to erase again, and do it a couple times, then try to install.  If it continues to refuse, then it sounds as though there is a fault with the hard drive.

  • How do I get my iPad to open to the lock screen and NOT the passcode panel when I open my cover

    When I open the cover to my iPad Air it is open to the 4digit passcode screen and NOT my lock screen with the date and time. When I go to settings under Touch ID and passcode I see 'require passcode' immediately with a check near it.  When I click on that and try to UNcheck it, nothing happens.  How do I get my iPad to open to the lock screen

    When I open the cover to my iPad Air it is open to the 4digit passcode screen and NOT my lock screen with the date and time. When I go to settings under Touch ID and passcode I see 'require passcode' immediately with a check near it.  When I click on that and try to UNcheck it, nothing happens.  How do I get my iPad to open to the lock screen

  • How do you return to the current menu when playing dvd?

    Hello everyone,
    I am authoring a dvd that has 3 submenus with several chapters in each. How do I set it up so that if I am watching a chapter in submenu 3, I will return to it if I end it or hit "menu". Right now it keeps defaulting back to the main menu, and I have to navigate to the 2nd or 3rd, depending on what I want to watch.
    Is there a way to do this? I can't seem to find it in the manual.
    Anyhelp is greatly appreciated.
    Ymir

    A few approaches, one way is to set a variable to keep trakc of which menu you are on, then set the menu command for the track to a script
    Here is a thread where a detailed this process and there is also a link to a project you can download.
    http://discussions.apple.com/message.jspa?messageID=6585885#6585885
    You would set the menu command to the same as the end jump.
    There are also other ways, but that will work. Another way is to set the menu command action for the chapter markers themselves. Also note that you may want to consider what you want the menu command to do If you play through the first ten markers (let's say) marker 11 may be on the 2nd selection menu, and you will probably want people to go there. In that case bypass the scripts and just set the menu jumps in the connection tab

  • Why isn't Java letting me change the background color of the current panel?

    Basically, I am just trying to learn all there is about interactive mouse gestures and am attempting to build some sort of frankenstein-ish paint program.
    Here is the code:
    import java.awt.Color;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import java.awt.event.MouseMotionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    public class MyPaint extends JPanel
        JButton button;
        JFrame frame;
        int currentX;
        int currentY;
        int counter = 1;
        public MyPaint()
            createComponents();
            addComponentsToPanels();
            setFrameProperties();
            activateListeners();
        public void addComponentsToPanels()
            this.add(button);
        public void createComponents()
            button = new JButton("Button");
            button.setToolTipText("This is the first button");
        public void setFrameProperties()
            frame = new JFrame();
            frame.setSize(400,400);
            frame.setResizable(false);
            frame.setVisible(true);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.add(this);
        public void activateListeners()
            MyMouseListener listener = new MyMouseListener();
            button.addMouseListener(listener);
            button.addMouseMotionListener(listener);
        private class MyMouseListener implements MouseListener, MouseMotionListener
            MyPaint myPaint = new MyPaint();
            public void mouseClicked(MouseEvent e) throws UnsupportedOperationException
                JOptionPane.showMessageDialog(null,"The mouse was clicked!");
            public void mousePressed(MouseEvent e) throws UnsupportedOperationException
                JOptionPane.showMessageDialog(null,"The mouse was pressed!");
            public void mouseReleased(MouseEvent e) throws UnsupportedOperationException
                JOptionPane.showMessageDialog(null,"The mouse was released!");
            public void mouseEntered(MouseEvent e) throws UnsupportedOperationException
                myPaint.setBackground(Color.RED); // why isn't this working? - I want the original panel to be red (not the newly created windows on top)
            public void mouseExited(MouseEvent e) throws UnsupportedOperationException
                myPaint.setBackground(Color.BLUE); // why isn't this working? - I want the original panel to be blue (not the newly created windows on top)
            public void mouseDragged(MouseEvent e) throws UnsupportedOperationException
                currentX = e.getX();
                currentY = e.getY();
                repaint();
            public void mouseMoved(MouseEvent e) throws UnsupportedOperationException // why is this only being called once?
                System.out.println("mouseMoved: " + counter);
                counter++;
        public static void main(String[] args)
            new MyPaint();
    }I would just like to know how to make the inner class set the background of the panel of the outer class of the same window instead of doing what I want but in a newly opened window.
    Any help in fixing this would be greatly appreciated!
    Thanks in advance!

    Thanks! I just wanted to add:
    In addition to commenting out MyPaint myPaint = new MyPaint() and removing the this keyword when dereferencing setBackground() in MyMouseListener , I also changed
    button.addMouseListener(listener);
    button.addMouseMotionListener(listener);
    into
    this.addMouseListener(listener);
    this.addMouseMotionListener(listener);
    so that the colour changes when you hover the cursor in or out of the panel instead of the button.

  • How can I remove my company's iCloud Contacts account from a former employee's iPhone and have the current information removed as well?

    How can I remove my company’s iCloud Contacts account from a former employee's iPhone and have the current information removed from their iPhone at the same time as well? Will just changing the iCloud password be enough? Our company shares an iCloud account for convenience but when someone leaves we don't want the information to stay on their iPhone.

    Changing the password would only block them from accessing the iCloud information.  They would still have access to the local copy on thier phone.  To delete the local information, you would need to go to Settings>iCloud on the phone, tap Delete Account, then choose Delete from My iPhone.  (This only deletes the iCloud account and data from the phone, not from iCloud.)  This, obviously, must be done during the exit process as it requires access to the phone.

  • How to open a URL without session ID and reuse the current browser session?

    Hi All,
    I have a question about HTMLDB 2.0
    How to open a URL without session ID and reuse the current browser session?
    That was the behaviour in HTMLDB 1.6 ...
    My usecase for this is the following:
    We have written an issue tracking application, which sends e-mail to the interested users, when something happens.
    In these email we've put a link to some page, with some parameters in the URL.
    The idea is for the user to be easy to click on the hyperlink and to see the details of the ticket.
    When the user clicks on such a link he is directed to a login screen (page 101) and he enters his Username and password, and is then forwarded to the details for the ticket.
    Then he receives another email (e.g. for another ticked). He clicks on the link and :
    a) in HTMLDB 1.6 he goes to the details as he didn't close his browser and session is remembered
    b) in HTMLDB 2.0 he is prompted to enter username, password with the username populated
    Please tell me how can I achieve the same behaviour in HTMLDB2.0 as it was in HTMLDB 1.6.
    I understand this change is somehow security related, althogh I don't understand how. If you can explain this either I would be very happy?
    Best regards,
    Mihail Daskalov

    Mihail - I detailed a couple of approaches here: Re: Application Link
    Scott

  • I have just downloaded firefox 3.6.11 and adobe flashplayer update and adobe reader update. Now I cannot get firefox to open. I have tried removing the program but when I try to do that it says that I need to close firefox - but of course it is not open

    I have just downloaded firefox 3.6.11 and adobe flashplayer update and adobe reader update. Now I cannot get firefox to open. I have tried removing Firefox but when I try to do that it says that I need to close firefox - but of course it is not open. I have waited a long time but nothing has happened so I am getting desperate Thanks -- Jerry

    Do a clean (re)install:
    * Download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    * Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    * Don't remove personal data when uninstalling.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    You can initially skip the step to create a new profile, that may not necessary for this issue.
    See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • How to install windows server 2012 r2 without remove the current windows 8.1

    how to install windows server 2012 r2 without remove the current windows 8.1

    Use guide below to convert it to 'basic' disk, or install windows on another drive. The supported way is to delete all partitions and convert it to a basic disk.
    https://technet.microsoft.com/en-us/library/cc755238.aspx
    However, your windows 8.1 must be on another drive?, as windows cannot boot from a dynamic disk.
    Best Regards,
    Jesper Vindum, Denmark
    Systems Administrator
    Help the forum: Monitor(alert) your threads and vote helpful replies or mark them as answer, if it helps solving your problem.

  • How can I prevent firefox to Offer to save passwords and how to remove the tick checked when I log in to gmail?

    While using firefox I am using, private browsing and not remembering any passwords.
    When I login to Gmail, the login page shows option to type in my gmail id and then password, and at the bottom, it gives the option of checkbox to remember the password next time. NOW, the problem is that, THIS CHECK box is always TICKED (Checked). I don't want it to be checked at all.
    So How can I prevent firefox to Offer to save passwords and how to remove the tick checked when I log in to gmail?
    Thank you so much.

    Hi Imran_Afzal, if you know that setting the cookie has no effect after you close your private browsing session, is it really worth finding a hack to clear the checkbox?
    I believe in order to do that you would need to use an extension or userscript. However, I haven't searched for one.
    ''Note: When searching for a userscript on userscripts.org, be very cautious as many hacked scripts have been posted lately. Check reviews and check the code to make sure it only runs on your Google site before installing.''

  • I've changed my Apple ID on my Mac but the old Apple ID shows up when I am trying to download apps. How can I get the new Apple ID on my new Iphone and remove the old ID?

    I changed my Apple ID on my MacBook. My new Iphone5 seems to have my old Apple ID on it. Therefore I can't download apps. How do I 1) remove the old Apple ID on my Iphone and 2) install the new ID on the phone.

    http://support.apple.com/kb/HT1311 Just remember apps that were downloaded with the old Apple ID will be locked to that ID. It will ask for the old ID password when trying to update.

  • How do I find bad music files?  I have thousands of files, but some are bad.  When I try to load them into iTunes, it just spins.  I need a routine to identify and remove the bad files.  Any ideas?

    How do I find bad music files?  I have thousands of files, but some are bad.  When I try to load them into iTunes, it just spins.  I need a routine to identify and remove the bad files.  Any ideas?

    Hi ajoddo20,
    Welcome to the Apple Support Communities!
    You can use Home Sharing to import music and other media from one computer to another. Please use the instructions and information located in the attached article for information on how to complete the process. 
    iTunes 11 for Mac: Use Home Sharing to import items from another iTunes library
    Cheers,
    Joe 

Maybe you are looking for

  • Red light problem 8900

    I forgot my password on my phone last week, and i lost all my contacts and that on my phone, since then the red light has stopped working so it doesnt flash when i get messages or emails, the only thing i have yet to set backup on my blackberry is my

  • Refurbrished! (Dont know if I spelt it right!)

    I have to questions. So okay first of all, I am getting a laptop for my birthday. I dont know if I want a refurbrished Powerbook G4 (15 inch, 1.67 GHz, 512 MB, 80 GB) or a new Macbook (13 inch, 2.0 GHz, 1 GB, 80 GB). My first question is should I get

  • My phone does not open anymore, after the battery has been empty.

    My phone?s battery turned off, it was empty. I plugged it and it never came back to life It's been 72 hours though... What could I do??

  • Can Premiere Elements 12 Burn to a RW Disc?

    Is Premiere Elements 12 capable of using a DVD+RW?  Despite setting the DVD Player on the iMac to NOT play a DVD when inserted, whenever I insert a  DVD+RW to have Premiere burn a DVD the DVD player starts and the burn always fails.  I can use a neve

  • Smartview XML Load Error

    Recently when connecting to SmartView, some users are receiving the following error: XML Load Error: Invalid XML Declaration Do you want to connect with Username/Password Yes No If you hit yes, sometimes it lets you log in after 2 or 3 tries, other t