Problem with Call_Form to Return to the Previous Screen with Saved Results

Hello All,
I have two forms (e.g. Form A & Form B) both forms have options to call one another with a Push Button included in the form. Our users want to be able to return to Form B from Form A with a previous search result and parameters saved in Form B. I was able to use the following code to make this happen:
1. In Form B, I added the following code in the When-Button-Pressed Trigger for the 'PB_Return_2_Form_A' item:
CALL_FORM('Form_A', HIDE,NO_REPLACE, NO_QUERY_ONLY);
2. In Form A, I used the following code in the When-Button-Pressed Trigger for the 'PB_Return_2_Form_B' item:
EXIT_FORM;
The above code works beautifully when I enter form B first and search the database with all the required parameters entered, the parameters and search results were displayed upon return from Form A. But the problem is when I enter Form A first, the form exits abruptly. I tried to use pre-condition testing in Form A such as the following code:
IF :GLOBAL.DWR01_First_Call = 'Y' THEN
NEW_FORM('DWR_SEL', NO_ROLLBACK);
:GLOBAL.DWR01_First_Call := 'N';
ELSE
EXIT_FORM;
END IF;
(BTW, I initialize the :GLOBAL.DWR01_First_Call variable to 'Y' in the 'When-New-Form-Instance' Triggers in the form level.) But the above code does not work. For some reason this :GLOBAL.DWR01_First_Call = 'Y' condition always gets executed such that the working part of code is by-passed.
If any of you can help me on resolving my problem asap, I would really appreciate it.
Thanks to you all in advance,
Jinlan
--

Thanks all for the information and help. I have read through the information provided in the links above, and modified the global variable accordingly in both the calling and called forms, but all tries failed. From my failed attempts, I realize that my current design might not work because the value of GLOBAL.DWR01_First_Call seems to be 'Y' each time when Form A is called as such the 'EXIT_FORM' statement in the ELSE condition will never be executed. This intrigues me with the following questions:
I. How do I use the debug in Forms 6i to step thru the values of a variable at a given execution state? (Although, I am pretty certain that the :GLOBAL.DWR01_First_Call value is always going to be a 'Y' each time when Form A is called, it would be nice if I could see it myself and not just guessing. :) )
II. By now, I am pretty sure my current design may not work... How do I make my code to work for the situation I described above? For your convenience, I restate my situation again below and hopefully it will clarify my needs:
Both Form A and Form B have options to call one another with a Push Button included in each form. Our users want to be able to return to Form B from Form A with a previous search result and parameters saved in Form B, and the following code works:
1. In Form B, I added the following code in the When-Button-Pressed Trigger for the 'PB_Return_2_Form_A' item:
CALL_FORM('Form_A', HIDE,NO_REPLACE, NO_QUERY_ONLY);
2. In Form A, I used the following code in the When-Button-Pressed Trigger for the 'PB_Return_2_Form_B' item:
EXIT_FORM;
But, the above code kicks the user out of the application completely if the user enter Form A first and then select Form B by pressing the 'PB_Return_2_Form_B' push button(BTW, this access mechanism is most commonly used by our users). So, how do I allow users to enter Form A first and allow them to call Form B and proceed with entering parameters and search query, without exiting the form.
Any and all the help you can provide on this will be greatly appreciated.
Thanks millions in advance,
Jinlan Tomasic
[email protected]
1(907)458-6899

Similar Messages

  • How can I return to the previous screen in safari?  the arrow is often grayed out.

    how can I return to the previous screen in safari?  the arrow is often grayed out.

    Try a 2 finger swipe left or right to change screens. If that doesn't work go to System Preferences/Trackpad/More Gestures and set it up.

  • Frequently, when I click on a link, try to return to the previous screen or close a tab, an option box comes up that requires a choice rather than simply doing whatever was originally requested. How can these option boxes be prevented?

    Frequently, when I click on a link, an option box will pop up asking whether to open in a new tab or new window and several other options, rather than simply opening in the same window or tab. When I try to return to the previous screen, it often will not let me, or provides options that I do not want. When I try to close a tab, an option box comes up that has several choices that I do not want and "close tab" at the bottom of the box. How to prevent these option boxes from popping up?

    Turn of JavaScript. These are "per site" and generated by the site. They are not the normal function of the browser. This usually occurs on attack sites. I'd stay away from them.
    The only "trusted" site I ever saw do something like this is Google, which asks me if I'm sure I want to close the tab that has their search results. I really pisses me off, but I have yet to find a way to stop it.
    It is certainly bad coding behavior on the part of whomever designed the site. When a user clicks an action, it should be presumed, unless the action is potentially very destructive, that they intended to perform that action. A UI should never incessantly second guess the intentions of a user.

  • Adobe asked me to update - I agreed. The fiorst 2 screens led me to a third which asked me to purchase a photo plan for $9.99 that I didn't want. I couldn't get out of that except by returning to the previous screens. I just want to download the updated v

    Adobe asked me to update and when I tried to download it I got to a screen that asked me to buy a photo program for $9.99 that I didn't want. I could only get out of it by going backwards and repeating the whole thing. So I couldn't down;ad what Adobe wanted me to do.

    There was a reply. But if you didn't get that, you won't get this one I suppose. Come back to the forum, don't rely on email.

  • HT4623 I downloaded the ios 6 on my iphone. I'm having problems with applications. When I open any application, in seconds then closes and returns to the home screen. What could be happening?

    I downloaded the ios 6 on my iphone. I'm having problems with applications. When I open any application, in seconds then closes and returns to the home screen. What could be happening?

    Did you change any AppleID accounts or anything?  I've seen this happen when changing accounts or certain restore situations.
    If you are using iCloud you should be able to reset your phone to Factory Defaults and restore from iCloud, but it always makes me nervous.

  • I just updated to Adobe Reader 11.0.07 on my Mac 10.6.8 and now the video files don't work.  How do I uninstall the update and return to the previous version?

    I just updated to Adobe Reader 11.0.07 on my Mac OS version 10.6.8 and now the video files don't work.  How do I uninstall the update and return to the previous version?

    I received a notice from Chris Campbell at Adobe that stated : "....we are aware that Macs created between 2006 and 2008 are currently running into problems using the latest release of Flash Player (version 13)."  My question is will the update of Adobe Reader 11.0.07 cause this problem with Flash Player 13 on my Mac?  Sometimes when I try to view streaming video I get sound but no video.
    >

  • How can I return to the previous browsing page in the App store?

    How can I return to the previous browsing page in the App store?

    Thanks for your reply but problem not solved. If I have reached page 5 for example, I can not go back to the previous page 4. Instead it goes back to page 1 when I use the back track arrows, gestures or the back or forward commands!! The girl at my local Apple dealer says that it can't be done. This should be a very basic browsing function in the App Store. I know other people have the same problem.

  • How to i get rid of the redirect notice it shows up on my safari whenever i try to go to a different page  it says "the previous page is sending you to: LINK if you do not want to visit this page, you can return to the previous page"

    How to i get rid of the redirect notice it shows up on my safari whenever i try to go to a different page
    it says "the previous page is sending you to: LINK
    if you do not want to visit this page, you can return to the previous page"

    Yeah, this seems to be something to do with Google, not your iPhone. A search on that error found this page:
    http://www.google.com/support/forum/p/Web%20Search/thread?tid=56a3c4b71b3dc1d9&h l=en
    which shows people using lots of browsers on different platforms suffering from it. No definitive solutions though.

  • My green arrow to return to the previous page has disappeared

    The green arrow I use to return to the previous page has disappeared
    == This happened ==
    Just once or twice

    * If, on Windows, in Firefox 3.6 the menu bar is hidden then press and hold the Alt key down or press F10, that should make the "Menu Bar" appear
    * Go to "View > Toolbars" and check-mark "Menu Bar" with a click on it to make that permanent. See [[Menu bar is missing]]).
    * Make sure that you have the "Navigation Toolbar" and the "Bookmarks Toolbar" visible: "View > Toolbars"
    * If items are missing then see if you can find them in the "View > Toolbars > Customize" window
    * If you see the item in the Customize window then drag it back from the Customize window to one of the toolbars.
    * If, in "View > Toolbars > Customize", you do not see that item then click the "Restore Default Set" button
    See also [[Back and forward or other toolbar buttons are missing]] and [[Navigation Toolbar items]]
    See http://kb.mozillazine.org/Toolbar_customization

  • IOS6 Headset / Headphone "Skip to the next chapter" & "Return to the previous chapter" functions don't work in the Music App

    "Skip to the next chapter" & "Return to the previous chapter" functions don't work in the iOS 6 Music App when listening to Podcasts and Audiobooks through Headsets (Apple & 3rd party), Speaker Docks, and in my autos handsfree bluetooth system (Ford Sync).
    Listening with the Podcasts App allows "Skip" and "Return" to work. So, this is either a bug or Apple is forcing the use of the Podcast App to get the "Skip" & "Return" controls. All the other headset functions work as designed.
    I listen to news Podcasts in chronological order. In iTunes I set up smart playlists sorted by release date for the podcasts. The Podcast App doesn't support playlists therefore I need to use the Music App.
    Is anyone able to get "Skip" and "Return" to work in the Music app?
    Thanks for any insight!

    We are fellow users here on these forums, you're not talking to iTunes Support nor Apple. If you want to leave feedback for Apple then you can do so here : http://www.apple.com/feedback/ipad.html

  • TS1702 My garage band app has crashed & keeps returning to the main screen when I try to open it... I've tried most of the trouble shooting options with the exception of re-installing the app, because I fear I will lose a number of recent projects I have

    My garage band app has crashed & keeps returning to the main screen when I try to open it... I've tried most of the trouble shooting chart (no updates available, tried restarting app, restarted device) all I have left is to re-install the app... My main fear is that if I do this I will lose a load of recent projects that are saved to the app that I've spent the last few days creating... Help...

    I have tried all those things I even updated the software to the new iOS system and it still did fix my problem.
    What happened is that my garage band looks like it will open then it shuts down.
    I have lot of important things on my garage band and I'm afraid that if I uninstall it deleting it then reinstalling it all my work on it will be gone and I can't have that happen.
    Everyday I am hoping that when i go to open the app that is will work but it doesn't it gets ready to turn on then it shuts off , the app doesn't even open all the way and turns off.
    I really hope I don't have to erase it.
    It'll say it's ,lading my songs then it shuts down .
    If I waited for the App Store to come up with an update for garage band should I wait till then to update my app so it doesn't get damaged . I don't want to erase it and all my data get erased . I figured if I wait for an update then my garage band will reset itself but won't delete my data. I'm not sure if that will help. Is there anything you or anyone else might know that can help me with this matter ?
    Thank you
    Simachyahi

  • IMovie 10.0.1 can i return to the previous version ??

    Any chance i could return to the previous version, im having c8ck up after c8ck up with 10.0.1 !
    PLease help !

    Yes.  If you upgraded to Mavericks from an OS with iMovie 9, the application will still be in your applications folder in a subfolder imovie 9.0.9.  When you imported your projects and events into iMovie 10 it should have left your iMovie 9 Projects and Events folders intact so you can launch imovie 9 and carry on where you left off.
    Geoff.

  • Suddenly the apps I downloaded won't work. The screen "blinks" for a second as if the app is loading, and then returns to the home screen. All the apps that came with the iPod seem to be working fine. How to get them all working again?

    Suddenly the apps I downloaded won't work. The screen "blinks" for a second as if the app is loading, and then returns to the home screen. All the apps that came with the iPod seem to be working fine. How to get them all working again?

    First try a hard reset.  To do this, press and hold both the Sleep/Wake and Home buttons together long enough for the Apple logo to appear.
    If still no luck, try downloading another free app from the App Store.
    More troubleshooting here.
    http://support.apple.com/kb/ts1702
    Lastly, try to restore the iPod from a previous backup or restoring it to factory settings.
    B-rock

  • My iphone 4 is stuck on the hello screen...with a white background after i tried to update it.  How do i correct this?  I have already gone to itunes and backed it up.  But after i back it up it always return to the hello screen in  different languages ?

    My iphone 4 is stuck in the setup phase with a white background.  It tells me hello in several diffrent  languages and tells me to slide to set up.  I have already backed it up on itunes several times but it always returns to the hello screen with the white back ground.  Can anyone please help me with this?  All of this happened after i updated it for the 1st time. Help pLease?
    Edward

    Hello Edward
    Follow the prompts on your iPhone and you will get either at your home screen like normal or get to a point of restoring from back up. The article below will give step by step for restoring from back up.
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • How can I return to the previous version?

    ''locking this thread which was started back in February about Firefox 26 / 27''
    Yesterday, while trying to get rid of the uninvited AVG elements in my Mozilla opening page I some how installed the latest version of Mozilla which I really dislike. Given this is on my wife's computer while she is away and she does not like changes to her computer I would really appreciate it being returned to the previous version.
    I also consider your instructions on how to do anything regarding setting up Mozilla as absolutely terribly written.

    Your current level 29 is TERRIBLE on my iMac and I want to go back a level, until you fix it!!!! Help?????!!!!!

Maybe you are looking for

  • How to make the message choice as non-editable thru personalization

    Hi, I have one requirement to make the messageChoice field as non-editable, how to do this thru personalization for particular page. because the same region available in some other pages also, so i need to do only for that page. How to do? Thanks in

  • How do I determine the interrupt detection sequences for an HP 82350A PCI GPIB card?

    I am trying to install an HP 82350A PCI GPIB card in CentOS 6.4. I have installed NI-VISA 5.4. I tinkered around and found driverwizard in /usr/local/bin. It creates an ini file to control the PCI GPIB card. I had somehow succeeded in detecting the c

  • Illustrator CS 5 and Mac OS Lion

    After I installed Mac Os Lion on my computer, I can't get the clipping mask to work anymore in Illustrator. I am running Mac OS 10.7.2 the latest. Anyone have any ideas on how to fix this? Also, Illustrator is running real slow now. Any help would be

  • ORA-12154(Urgent PLZ)

    I have installed oracle app. server Rel2 on winXP professional, after installation when i try to connect through PLSQL editor it says error ORA-12154 unable to resolver service name. I have checked for tnsnames.ora file in ORA_HOME/network/admin and

  • Recovery not working and couldn't able to make recovery partition active (HP DV6 2124el)

    Product Name and Operating system: DV6 21124el (windows 7 ultimate 32bit) Hi,     I have this laptop for the last 3 years and never used the recovery option as I didn't need to, the recovery partition is there never been formated, now my windows is t