Close a form and before open a new form

Hi,
I open a new form(form B) from a form (from A), can I close "form A" before opening "form B" ?
Moreover, can I re-open a form itself ?
Thx!
Gary

Use one of following
CALL_FORM
This builds a stack of forms; exiting the current form
returns you to the previous form.
Performing a call_form('b') from FORM A will do the following:
Deactivate FORM A.
FORM A becomes MODAL.
Focus is now on FORM B.
Must Exit FORM B to return focus to FORM A.
OPEN_FORM
This allows you to have two forms open and active at the same time,
and to work on both forms at the same time.
Performing an open_form('b') from FORM A will do the following:
Both FORM A and FORM B remain open and you can use the mouse
to switch back and forth between the forms.
NEW_FORM
. This replaces the current form with a new form.
Performing a new_form('b') from FORM A will do the following:
Closes FORM A and Opens FORM B.
Regards

Similar Messages

  • Why does the tab button in Safari close safari and not open a new tab?

    Why does the tab button in Safari close Safari and not open a new tab?

    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps BEFORE doing the reset.

  • Why does right clinking on link and selecting open in new tab does not work?

    Why does right clinking on link and selecting open in new tab does not work?
    It opens up a blank page. The only way to make the link work is to click on the navigation bar in the new tab and press enter to reload the link.

    Do you have that problem when running in the Firefox SafeMode?<br/> ''A troubleshooting mode.''<br />
    1.You can open the Firefox 4.0 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut. <br />
    2. Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut to open it again.''
    If not, see this: <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • Can't open new tab by going to file/new tab (or CTRL+T or clicking on the new tab field). Only way is to right click on a link and choose open in new tab.

    Can't open new tab by going to file/new tab (or CTRL+T or clicking on the new tab field). Only way is to right click on a link and choose open in new tab.

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

  • Waiting a JInternalFrame to be closed before opening a new one

    Hello all
    I would like to wait a JInternalFrame to be closed by the user before opening a new one.
    Here is the sample code :
                   openRemote.getWindow().show();
                   Thread t = new Thread(new Runnable() {
                             public void run() {
                                  try {
                                       synchronized(openRemote.getWindow()) {
                                            System.out.println("Wait");
                                            openRemote.getWindow().wait();
                                            System.out.println("Closed");
                                       System.out.println("1111");
                                       //ChoosePhantomAction cpa = new ChoosePhantomAction();
                                       //cpa.actionPerformed(null);
                                       String phant = (String)JOptionPane.showInternalInputDialog(iFrame,"Phantom's name:", "Phantom selection",JOptionPane.PLAIN_MESSAGE,null,null, null);
                                       System.out.println("2222");
                                  } catch (java.lang.InterruptedException ie) {
                                       ie.printStackTrace();
                                  } catch (Exception exp) {
                                       exp.printStackTrace();
                   t.start();The first code line shows a JInternalFrame.
    I can see the JOptionPane on screen when i close the first frame but the message "22222" is never displayed. And i really can't understand why. Can it be due to the thread that uses Swing objects or the event dispatcher ?
    Thanks

    There are 2 files.
    The main one :
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class SSCCE extends JPanel {
        static JFrame frame;
         private JDesktopPane desktop = new JDesktopPane();
         private JInternalFrame iFrame = new JInternalFrame();
         public SSCCE() {
              setLayout(new BorderLayout());
              add(desktop, BorderLayout.CENTER);
              setPreferredSize(new Dimension(800,600));
              iFrame.setPreferredSize(new Dimension(300,200));
              JPanel panelCentre = new JPanel();
              panelCentre.setLayout(new BorderLayout());
              panelCentre.add(getMenusBar(), BorderLayout.NORTH);
              iFrame.getContentPane().add(panelCentre, BorderLayout.CENTER);
              iFrame.pack();
              iFrame.setVisible(true);
              desktop.add(iFrame);
        public JMenuBar getMenusBar() {
              JMenuBar menuBar = new JMenuBar();
              JMenu clickMenu = (JMenu) menuBar.add(new JMenu("Click here..."));
              createMenuItem(clickMenu, "...and now here", "click", new ClickAction());
              return menuBar;
        public JMenuItem createMenuItem(JMenu menu, String label,
                                                 String accessibleDescription, Action action) {
            JMenuItem mi = (JMenuItem) menu.add(new JMenuItem(label));
              mi.getAccessibleContext().setAccessibleDescription(accessibleDescription);
              mi.addActionListener(action);
              if(action == null) {
                   mi.setEnabled(false);
              return mi;
        public static JFrame createFrame() {
              JFrame frame = new JFrame();
              WindowListener l = new WindowAdapter() {
                        public void windowClosing(WindowEvent e) {
                             System.exit(0);
              frame.addWindowListener(l);
              return frame;
        class ClickAction extends AbstractAction {
            public void actionPerformed(ActionEvent e) {
                   final InternalPopUp ip1 = new InternalPopUp(desktop, "Please close to open 2nd window");
                   ip1.show();
                   Thread t = new Thread(new Runnable() {
                             public void run() {
                                  try {
                                       synchronized(ip1) {
                                            System.out.println("Wait");
                                            ip1.wait();
                                            System.out.println("Closed");
                                       System.out.println("1111");
                                       String phant = (String)JOptionPane.showInternalInputDialog(iFrame,"Enter something", "Enter something and check if 2222 is displayed in the console",JOptionPane.PLAIN_MESSAGE,null,null, null);
                                       System.out.println("2222");
                                  } catch (java.lang.InterruptedException ie) {
                                       ie.printStackTrace();
                                  } catch (Exception exp) {
                                       exp.printStackTrace();
                   t.start();
        public static void main(String s[]) {
              frame = createFrame();
              SSCCE sscce = new SSCCE();
              frame.setTitle("Sample test");
              frame.getContentPane().add(sscce, BorderLayout.CENTER);
              frame.pack();
              frame.setLocation(0,0);
              frame.setResizable(true);
              frame.setVisible(true);
    }The second one :
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.border.TitledBorder;
    class InternalPopUp extends JInternalFrame {
        private int PREFERRED_WIDTH = 250;
        private int PREFERRED_HEIGHT = 80;
         private JDesktopPane desktop = null;
         class PopupListener implements InternalFrameListener {
              JInternalFrame parent = null;          
              public PopupListener(JInternalFrame parent) {
                   this.parent = parent;
              public void internalFrameClosing(InternalFrameEvent e) {
              public void internalFrameClosed(InternalFrameEvent e) {
                   desktop.repaint();
                   synchronized(e.getSource()) {
                        e.getSource().notifyAll();
              public void internalFrameOpened(InternalFrameEvent e) {
              public void internalFrameIconified(InternalFrameEvent e) {
              public void internalFrameDeiconified(InternalFrameEvent e) {
              public void internalFrameActivated(InternalFrameEvent e) {
              public void internalFrameDeactivated(InternalFrameEvent e) {
         public InternalPopUp(JDesktopPane desktop, String text) {
              this.desktop = desktop;
              addInternalFrameListener(new PopupListener(this));
              setPreferredSize(new Dimension(PREFERRED_WIDTH,PREFERRED_HEIGHT));
              JPanel panelCentre = new JPanel();
              JButton close = new JButton(text);
              close.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                             hidePopup();
              panelCentre.add(close);
              getContentPane().add(panelCentre);
              pack();
              desktop.add(this, JLayeredPane.POPUP_LAYER);
         public void hidePopup() {
              //super.hide();
              try {
                   setClosed(true);
              } catch (Exception e) {
              desktop.repaint();
    }I never see the "2222" sting in the console ...

  • My safari is not working. Every time i click on it says to reopen or dont reopen. i press reopen i gives me this long screen and it says reopen or press okay. when i press ok it closes the box and doesnt open. when i press reopen the long screen stay

    . Every time i click on it says to reopen or dont reopen. i press reopen i gives me this long screen and it says reopen or press okay. when i press ok it closes the box and doesnt open. when i press reopen the long screen and stays like that.

    If Safari crashes on launch and you don't have another web browser, you should be able to launch Safari by starting up in safe mode.
    You may have installed the "Genieo" or "InstallMac" ad-injection malware. Follow the instructions on this Apple Support page to remove it.
    Back up all data before making any changes.
    Besides the files listed in the linked support article, you may also need to remove this file in the same way:
    ~/Library/LaunchAgents/com.genieo.completer.ltvbit.plist
    If there are other items with a name that includes "Genieo" or "genieo" alongside any of those you find, remove them as well.
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those.
    After removing the malware, remember to reset your home page in all the web browsers affected, if it was changed.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, then you may have one of the other kinds of adware covered by the support article. Follow the rest of the instructions in the article.
    Make sure you don't repeat the mistake that led you to install the malware. Chances are you got it from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad would probably have included a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

  • Safari 6.0 crash when right clicking a link and choosing open in new tab

    Hi all,  just a general question.  I admit i did not search the forums yet.  Hopefully this little annoyance can be resolved.
    When using safari on say CNN.COM i'll right click on a link and choose Open in new tab.  safari randomly disappears.  no crash warnings,  just gone.  I can open it right up and be fine sometimes all day.   This has happened to me about 5x since ML was released (i wiped my laptop the day it came out)
    This has happened on a couple of different website at different times of the day.  only safari was running. No other apple apps have this issue.
    I have a MacBook Pro from earily '08 type 4,1
    i have only apple software on this machine
    i do have adobe flash installed v11.3 updated today.
    i do have lastpass enabled
    i do have ad-block disabled
    While i'm waiting for help from you guys i'll disable all addon's and try to remove adobe to see if that is the issue.  Is there any other steps i can try like delete .plist file or maybe even trying a new user profile.  I am a IT professional and am not afraid to get my hands dirty trying to get this resovlved.
    Thanks in advance.
    P.S. i'll search the forums too and if i see a similar post i'll remove this one.
    Bill Siegfried.

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the page that opens.
    Step 1
    Enter the name of the crashed application or process in the Filter text field. Post the messages from the time of the last crash, if any — the text, please, not a screenshot.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.
    Step 2
    Still in the Console window, look under User Diagnostic Reports for crash reports related to the process. The report name starts with the name of the crashed process, and ends with ".crash". Select the most recent report and post the contents — again, the text, not a screenshot. In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.) Please don’t post shutdownStall, spin, or hang logs — they're very long and not helpful.

  • When I click on a new site I want it to AUTOMATICALLY come up in a new tab WITHOUT HAVING TO RIGHT CLICK AND PUT 'OPEN IN NEW TAB'. It used to do this but has stopped,..., how do I do this?

    Always before when I wanted to click on a new website or a location I found searching google for example, the new website or place I found ALWAYS POPPED UP IN A NEW TAB AUTOMATICALLY WITHOUT me having to right click and say 'open in new tab'. For some reason it is not doing that anymore and when I click on an item it is coming up in the tab I am currently in. How can I set FF to automatically open a new tab whenever I click on a new site like it did before? This is driving me nuts since I am not a computer person at all and had it working the way I was used to before. Please help me fix it back.
    Thank you so much.
    Celeste

    You can also hold down the Ctrl key and left-click or use an extension to force opening a link in a new tab.

  • Outlook 2010 on Exchange 2007 ~ Can no longer see Calendar in Folder List ~ Only viewable by right-clicking favorite icon and selecting 'Open in New Window'

    Office 2010, Windows 7 64 bit, BB sync, everything has been fine since forever. All of a sudden between Saturday and today, *poof* I can't get the calendar view.
    I have tried the switches, /resetfolder and all the rest, repair install Office, etc., no go.
    I can log into my OWA view and calendar shows up there, but on the local system, when you clicl on Calendar, it shows My Calendars at the top, but there is no calendar. The only way to view it is to right click Calendar and choose 'Open in New Window'.
    All my data is there, can add to it and all, but it is missing from the folder list, thereby making it very difficult to use.
    I also created a new profile, connected to Exchange ONLY and it still will only show the calendar if you select 'Open in New Window Only'. I can post a screen shot if this allows.
    Thanks in advance.
    Brian

     
    Hi ,
    I suggest you refer to the following steps to recreate the Calendar folder.
    1. Switch Outlook to Online mode.
    2. Start MFCMAPI and create a backup of the Calendar items
    a. Open the Calendar folder by double clicking it.
    b. Select all items (simple ctrl+a).
    c. Copy all items into an empty folder.
    d. Additionally you can create a backup using a PST file if you wish.
    3. Delete the Calendar folder using MFCMAPI.
    4. Close Outlook.
    5.Recreate Windows Profile and Outlook Profile.
    6. Start Outlook with “/resetfolders” switch, this will recreate the default Calendar folder.
    7. Try to set permissions on the Calendar folder to see how it works with a fresh and empty folder.
    8. Copy/Move the items back into the Calendar.
    By the way, I don’t understand “the local system” what you said, it can view My calendars at top in Outlook or OWA ?
    And it can’t view calendar list or the calendar content under My Calendar?
    Wendy Liu
    TechNet Community Support

  • Delete existing RecordStore and then open a newer one with same name

    Hey All,
    I'm working in J2Me for Nokia S40 DP2.0 SDK 1.0.
    I want to delete my existing RecordStore (i. e; Products) and then open a new RecordStore as same name(Products) But
    There is an Exception thrown that RecordStore is Open;
    my deletion process is given below :
    public void deleteRecStore(String recordName) {
    if (RecordStore.listRecordStores() != null) {
    try {        
    RecordStore.deleteRecordStore(recordName);
    } catch (Exception e) {
    e.printStackTrace();
    public void createRecStore(String recordName, Vector data, int insertType) {
    if(recordName.equals("") && (recordName != null)) {
    try {
    if(insertType == this.NEW_REC) {
    rs = RecordStore.openRecordStore(recordName,true);
    this.closeRecStore();
    this.deleteRecStore(recordName);
    rs = RecordStore.openRecordStore(recordName,true);
    Can anybody pls help me...
    why I can't open a new recordstore like this ??
    If there any process then what is that ???
    Rania...

    This question belongs in the [CLDC and MIDP forum|http://forums.sun.com/forum.jspa?forumID=76]. I'll move it there in an hour or so.
    I would suggest that in addition to printing the stack trace of any Exception, you could append the Exception.toString() to a Form (or display it in an Alert) to see whether any exceptions are being thrown.
    db

  • Camera problem: "Could not start the camera. Close other applications and try opening the camera again" error.

    Device info
    Your carrier: Etisalat
    Model info and OS version (Go to Settings, then Options, then about): Bold 9900, OS 7.1
    Apps and free space
    Did a battery pull fix your issue? No
    Apps installed and their version if possible: BBM, Facebook, Twitter, App world, Screen muncher.
    BT device model/version (you will have to look at the BT device): (Sorry, don't know what this is).
    When writing your question
    Any other details that would help us out with your issue:
    Good description of what is really wrong and how to reproduce if possible. Details of what you did before:
    What is worth a thousand words
    I simply open the camera and a pop up saying "Could not start the camera. Close other applications and try opening the camera again" appears and only lets me press okay. 
    Memory seems to be okay, can't figure out what it may be.
    Please, how can I fix this? Any help is appriciated.

     I had the same problem with my Bold and tried everything until out of frustration i just clicked the center picture taking button before the "Could not start the camera. Close other applications and try opening the camera again" message came up and believe it or not that solved the problem. Works fine now!

  • When I right-click a link, and choose "Open in new tab", it opens in a new window instead. How can I fix this?

    So I have Firefox open, and I've tried to open tabs by right clicking and choosing "open in new tabs", but it opens in a new window instead. And yes, there are no problems with being able to open new tabs by pressing the ctrl t.

    The Ask Toolbar is causing that in the Firefox 3.6.13+ versions. Uninstall that extension.
    There are a couple of places to check for the Ask toolbar:
    * Check the Windows Control panel for the Ask Toolbar - http://about.ask.com/apn/toolbar/docs/default/faq/en/ff/index.html#na4
    * Also check your list of extensions, you may be able to uninstall it from there - https://support.mozilla.com/kb/Uninstalling+add-ons

  • How do I get FF to focus on a new tab? I right-click and choose "Open in New Tab" and the Tab appears in the Tab bar but I cannot access or see the new page.

    I open FF ver.10. My Home page is Google Search. I use a Bookmark and open, say, Hulu.com. I select a link by right-clicking and choose "Open in New Tab" The little tab in the tab bar opens but I am still viewing the Hulu.com main page and cannot view the new tab.
    This happens even if I use middle-click to open a new tab. It happens with all links on any website I visit.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration 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.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Have published iweb site for five years with no problems and just opened a new site and get - 404: Page not found  This error is generated when there was no web page with the name you specified at the web site.-is the problem with iweb or with hosting?  T

    I am sorry if thie is republished-My first time doing this and I am not sure what goes where and where to hear feedback.
    Have published iweb site for five years with no problems and just opened a new site and get -
    404: Page not found 
    This error is generated when there was no web page with the name you specified at the web site.-
    Troubleshooting suggestions:
    Ensure the page you are linking to exists in the correct folder.
    Check your file name for case sensitivity . Index.htm is not the same as index.htm!
    Temporarily disable any rewrite rules by renaming your .htaccess file if it exists
    is the problem with
    iweb or with hosting?
    One Apple tech started to fix Iweb and had to end session and the next said problem with hosting at Network Solutions as it published
    to local folder. NWS has checked sttting a few times-
    Any help would be extremely appreciated as trying to fix this for about five weeks
    Thanks VG
    <Email Edited by Host>

    It's a really bad idea to post your email address - it's an invitation to spam - and I've asked the Hosts to remove it. (Even though I've now noticed you mis-spelled it! - anyway, never post your address in a forum.)
    You have a site here: http://virginiagordon.com/www.virginiagordon.com/WELCOME.html
    If that's not the page you are having trouble with, what is that page's URL?

  • I can't open a new tab unless I right click a link and hit "open in new tab"?

    I can't open a new tab unless I right click a link and hit "open in new tab."
    I click ctrl+t, click the new tab button, right click the tab bar and hit "new tab", and even click "File" and hit "New Tab", but it still won't open a tab!
    This has been going on for a week!
    I know it may not seem like too much of a problem since I can still open a tab, but it's terribly inconvenient that I can only open one by clicking a link.

    The Ask Toolbar is causing that in the Firefox 3.6.13+ versions. Uninstall that extension.
    There are a couple of places to check for the Ask toolbar:
    * Check the Windows Control panel for the Ask Toolbar - http://about.ask.com/apn/toolbar/docs/default/faq/en/ff/index.html#na4
    * Also check your list of extensions, you may be able to uninstall it from there - https://support.mozilla.com/kb/Uninstalling+add-ons

Maybe you are looking for

  • Mail yahoo download is slow

    HI, I have gmail, iCloud and yahoo e-mail accounts setup on my Mac Mail program. While iCloud and gmail new emails are immediately downloaded, it takes Mac Mail few minutes to download new yahoo emails. My iPad and iPhone don't have this problem.  I

  • SQL / XML doesn't work here

    Hi, I'm working on Oracle9i Enterprise Edition Release 9.2.0.5.0. and with SQLPLUS i try this : SELECT XMLFOREST(1 "test", 2 "test2") from dual; But it seems taht it doesn't work I jsut have this result without error : XMLFOREST(1"TEST",2"TEST2") Has

  • Soa suite without oracle application server

    Hi everybody, I'd like to know if we can use the oracle soa suite with an application server other than Oracle Application server, for example tomcat..... Thanks

  • What a horrible camera. Are there any tweaks?

    I'm not a big fan of phone cameras, as I'm a former semi-pro photographer, but I am having real problems with the Passport camera. Here is a summary of my issues, and I would appreciate if anyone is not having problems what their settings are, or if

  • Re-install photoshop cs4 to new computer

    Help