Keeping menu tree form session connected to DB, while other forms are open

When our application starts, a menu tree module is opened, which contains a list of modules that users can open. When a user click on a module to open, the code will issue the command open_form (…,…., session). So every form is opened in its own session. The maximum idle time allowed in a session is 45 minutes. Therefore after setting idle for more than 45 minutes any module including menu tree module will lose connection to the database. So if a user open a module from the menu tree module and spend more than 45 minutes working on that module, when the user go back to the menu tree module, they get an error that menu tree module lost connection to the database. So the question is, how to keep the menu tree module session connected to the database, even if it exceed the maximum idle time as long as other modules sessions are still connected to the database.
1. set maximum idle time allowed in the database for 5 minutes
2. open form A
3. open form B from form A in it own session (OPEN_FORM (...,...,SESSION)
4. work on form B for more than 5 minutes
5. go back to form A,
6. fom A has been disconnected from the database
I have tried to use the timer, but the problem with timer is when a timers fire in forms that
do not currently have focus, and a context switch is performed. The form flickers when the context switch is made, and the current item text becomes selected when focus returns to the
current form, which will cause problem to the users.
Our client setup the database timeout for security reason, and therefore, it cannot be replaced by TIMEOUT PJC.
Keep in mind that we have 600 forms and the application is already in production.
Thanks

Thank you Manu
I added the following code logic to when-window-activated
if menu-tree still connect to the DB then
do nothing
elsif lost of connection is due to exceeded maximum idle time then
if the global.last_closed_forms_transaction < 45 minutes
or if there is form that is still connected to DB then
logout;
login;
else
messagebox ( exceeded maximum ideal time allowed )
end if;
else
messagebox ( lost connection due to network error)
end if;
Thanks
Edited by: user7591510 on Aug 7, 2009 4:58 AM

Similar Messages

  • IPhone 4 not connecting to WiFi while other iDevices are!

    My mum's iPhone 4 8GB is being extremely tempermental, If I'm 1 or 2 meters near the router, It'll connect. If i move away it loses signal. My other iDevices(iPod Touch, iPad ) can still get reception from the other side of the house which is a good 25 meters away from the router.
    Anyone encountered this problem before? Any solutions
    Btw, it's relatively new and has had the fault since it was brought. My mums just been to lazy to go to book an appointment at the genius bar.

    Hello HeatherO,
    Thanks for using Apple Support Communities.
    From your post I understand that you are connected to your Wi-Fi network but are unable to access the internet.  It is possible you may have a self-assigned IP address from your modem/router.  Take a look at the information below for troubleshooting steps.
    Unable to access the Internet while connected to Wi-Fi
    If you're using a public or commercial network, you may need to log in or subscribe.
    Check to see if you have a self-assigned IP address:
    Tap Settings > Wi-Fi and locate the Wi-Fi network to which you're connected and tap .
    If your IP address is 169.254.xxx.xxx, you may not be able to access the Internet.
    If you do not have a self-assigned IP address, see if other Wi-Fi devices on your network have Internet access.
    If they do not, consult with your network administrator or ISP for further assistance.
    If they do, reset network settings on your device by tapping Settings > General > Reset > Reset Network Settings. Note: This will reset all network settings including:
    previously connected Wi-Fi networks and passwords
    recently used Bluetooth accessories
    VPN and APN settings
    iOS: Troubleshooting Wi-Fi networks and connections
    Take care,
    Alex H.

  • I got my code but when i try downloading it it says retry as net connection is slow, but i am on a high spee broadband and all the other sites are opening simultaneously then why this problem?

    I got my code but when i try downloading it it says retry as net connection is slow, but i am on a high speed broadband and all the other sites are opening simultaneously then why this problem?

    Because Apple's not spent those billions of bucks lying around on a modern, high-speed delivery system or providing DVDs for those who don't have high-speed connections or uncapped DL capabilities.

  • Server Admin refuses to connect, servermgrd runs but no ports are open

    Server Admin refuses to connect to server when run locally or remotely. Upon investigating, servermgrd seems to run but when I run network utilities and port scan the server, neither port 311 or 687 are open. All other services appear to be running fine. No firewall is running. Server Monitor also has the same problems but WorkGroup Manager seems to work fine.
    About 3 weeks ago, I had the problem and after trying many things, I did a clean install but the problem has reappeared after a few days/weeks.
    At some point, servermgrd was crashing with a message about NSURL.... (lost and forgot the exact message).
    -Tried to remove all the files in /private/var/servermgrd/
    This solved the crashes but it now runs without opening the ports. After starting, it doesn't run away and consume any CPU.
    Could not locate in system.log, console.log and servermgr.log any error messages indicatind something is wrong with servermgrd.
    The log does show that server names are coherent.
    Apr 18 23:06:31 server-1 servermgrd: servermgr_dns: hostname and DNS entries for this server are synchronized
    - Tried rebooting.
    - Tried running servermgrd with various flags, including alternate port but nothing happen. In fact the alternate ports do noot seem to get open. Even passing faulty options, it runs without complaining !
    - Tried to reinstall the admin tools
    - Tried to remove keychain paswords entries
    - Tried Disk Utilities repair permissions.
    Searching the posts, found somebody talkingabout servermgr_ctl
    I'm starting to suspect some hardware failure (RAM).
    Any suggestion how to test the ram.
    Running out of idea.
    Desperate for solution.
    Background
    OS X Server 10.4.9
    Server Admin version Version 10.4.7 (157.8)
    Xserve Dual G4 with 2 GB ram.   Mac OS X (10.4.9)  

    Ok, I ran memtest 4.2 and discovered the ram was failing, In replacing the dimm, they started working again so it may have been a mis-seated dimm module or some oxidation on the contact. My file system was already corrupt despite it being a fresh install. Then I checked and notice that the file com.apple.servermgrd.plist in Library preferences was gone. Either I stuppidly deleted it trying to fix the problem or it was hosed by the memory/file system corruption. Anyway, I copied it from another server and Both Server Admin and Server Monitor are now working.
    SOLVED.
    PS: in view of this event, once I'm satisfied the memory issues is solved, I'll do again a clean install. Who know what else was corrupted.

  • I have just brought my new mac book air home from the store and cannot get onto the internet even although correct password entered for wifi and signal strong and it says it is connected to network , all other devices are working in the house

    Hi
    I have just brought my mac book air home from apple store and it won't connect to internet although correct wifi password entered and all other devices are connecting ok and signal strengh strong and it says it is connected !

    A new Mac comes with 90 days of free tech support from AppleCare.
    AppleCare: 1-800-275-2273
    Call AppleCare.
    Best.

  • Macbook Pro won't connect to wifi but other computers are working perfectly

    Hi,
    I have a 2012 MacBook Pro that connects to WiFi no problem anywhere else - except for my parent's house (who I am currently visiting).  There are 2 other PCs in the house that connect to the WiFi without a problem, as does my iPhone.  When I try to connect, the Network Setup Assistant keeps saying "Connection Timeout" and then when I go into "Assist Me" the error comes up as "The password you entered is invalid."   I know that the password is correct, but I can't get passed this step...tried restarting computer and router but no luck.
    Help!!

    Click the Advanced button in the Network preference pane, then the TCP/IP tab. Type something (anything, as long as it's unique) in the DHCP Client ID text box. Click OK, then Apply. Reopen the TCP/IP tab and click Renew DHCP lease.

  • Staying connected to AIM while app is NOT open. Possible?

    So I just got my iPhone today after having the touch for awhile. My only complaint with AIM on the two systems is that the application logs you off your screen name the moment you hit the home key and open up safari, or any other application for that matter. Is there any program, or service (preferably free but I would be willing to pay for this feature) that will keep me connected to my AIM (msn wouldnt hurt too but not priority) while I do not have the application open at that time?
    Thanks in advance folks.

    Apple doesn't allow 3rd party apps to run in the background.
    Apple is working on a Push server for developers to access for such apps. When leaving such an app, the app won't be actively running in the background, but notification will be possible with a badge on the app's icon when receiving an IM with the AIM app and for others like it.
    Apple's Push server for access by the developers of such apps was originally scheduled to be available by the end of September but has been delayed. After the problems with the MobileMe launch, the delay is probably due to being sure the launch of this Push server is much smoother.

  • My 320GB external drive for Time Machine now only has enough capacity to keep a backup of one day. All my other backups are gone.  What can I do to fix this situation?

    I've been using a 320GB external drive for time machine for the last several years.  The backups always worked fine and when necessary I was able to look at & restore older data from the time capsule.  Recently, I keep getting the message that a backup cannot be completed and an older backup will be deleted. Usually this wasn't an issue because I still had several months of information on disk.  Now a one-time backup takes up 315GB and therefore I only have a backup of the previous day.  I don't understand this because I thought that the backup only saves information that has changed and doesn't copy everything everytime.  What do I need to do to get my backups to a reasonable size so that I can keep at least 1 month data stored on it.?  Please don't tell me I need a larger drive ... that would be too easy. 

    Get a larger drive for your TM backups.
    The recommended size is 3 times what you are backup. So if 315 GB is a backup then you need a 1 TB drive.
    Allan

  • V4.0.1 suddenly stopped working ("unable to connect to server") while other browsers still work

    Dell Dimension desktop, running Windows XP Pro, sp3; Pentium 4 2.8 GHz; 1 GB RAM; DSL on home LAN.
    Have used Firefox almost exclusively, but it just stopped working today. No new applications installed. Downloaded and reinstalled Firefox to no avail.
    Am able to access all sites using both Safari and Windows Explorer on the same machine.
    When requesting a page, it immediately gives the error:
    "Unable to connect
    Firefox can't establish a connection to the server at..."
    Doesn't take any time to try to connect, to find the server, etc.

    That is an indication that a firewall is blocking the new version of Firefox. For details see [[Firefox cannot load websites but other programs can]].

  • TS3274 I pad was working fine then started to to get a message I pad not connected to internet. Other devices are working in our home. wireless is working. Help

    I pad was working fine then when tring to access safari or facebook recieved a message Safari cannot open page because your I pad is not connected to the internet. How do I correct?

    1. Turn router off for 30 seconds and on again
    2. Settings>General>Reset>Reset Network Settings

  • Javabean-Timer to control the whole Forms-Session

    Hello !
    I am looking forr a solution to supervise the whole Forms-session with a javabean-Timer.
    I know the available javabean-timer on [http://forms.pjc.bean.over-blog.com|http://forms.pjc.bean.over-blog.com/].
    But i am searching for an answer/solution to define a timer once in a Forms-Dialog
    which fires for the whole Forms-Session and not only in the Forms-Dialog where he is defined/activated !
    I am pleased to see your suggestions...
    Thanks - Thomas

    Please post your question to the forms forum.
    otn.oracle.com/products/form and click on the discussion forums.
    Regards
    Grant Ronald

  • OEM not displaying Forms Session Details

    Windows 2000/Server & Desktop SP4, ora9ias 9.0.2
    In the Forms Session Detail display, it says that there are seven sessions, but only displays three and the Previous/Next links are greyed out. Any fixes to this? It is appreciated.

    EM_MODE is set. To clarify, the OEM is displaying some sessions, but not all that it says it had detected.
    Thanks for your reply

  • Problem while running forms in the application server

    Hai,
    My forms were developed using oracle 10g in Windows platform.I have to deploy it in the LINUX application server 10g.I compiled all the forms at AS.One of my form calls another form and it passes parameters to other form.During development I gave the complete path like C:\foldername\formname.fmb in the OPEN_FORM
    statement.Whether it is the problem for the run time error 'FRM 47009' with the error message 'cannot create parameter list' !!! If so how should I give the path in the linux AS.
    I also want to know how to give the path in linux AS to include .mmx menu in my form.
    Thanks.........

    I am using Oracle 10g9.0.4 or 10.1.2 ? There are small differences between them, so it could be helpful to know the exact version.
    or it does nothing.For the moment don't use forms with parameter list, to avoid one more possible cause. Did you check sensitivity ? For example, if a form is called with name 'My_Form.fmx', and its name, on disk, is my_form.fmx or MY_FORM.fmx. or anything different, then it won't work.
    On form property page activate console window, to see errors, if any.
    Of course I'm assuming that test form works correctly....

  • Sharepoint 2010, InfoPath 2010 with Custom Workflow. Error Message: InfoPath cannot submit the form. An error occured while form was submitted...

    I have created an InfoPath form that submits to a Sharepoint library with custom workflow attached. The workflow is initiated when the user submits the form. An email is sent to the supervisor who clicks the "Encoded Absolute URL" and approved
    the form via the emailed form. Then, based on certain criteria the form is either emailed to the VP or the workflow is complete. The VP is sent an email and clicks the "Encoded Absolute URL" and sumbits the form via the emailed form. This is
    how I would like it to work. The reality is, the form submits and is emailed to the supervisor and the supervisor is able to approve but when the form is sumbitted I get an error. The error is "InfoPath cannot submit the form. An error occured while
    this form was being submitted. The form cannot be submitted to the following location: <URL> The file <URL> is checked out for editing by <me> The operation completed successfully." The operation did not complete successfully and it
    is not checked out. I have read in previous posts that the file is locked. Since I am in the testing faze of the project there is no one else using the form. I have waited 24 hours and the lock has not been released. Please help!!! My deadline is growing short.

    I ran into your post while having a similar issue.  I don't have a 'full' fix for you, but I noticed at least in our case if you made sure you opened the Infopath form through the browser instead of the client Infopath program (use the drop-down menu
    and open in browser) the error doesn't occur.  Hope that helps some....

  • Re: Connecting though internet when client Macs are on office network

    I have a small company with two iMacs at work which are on a network with several other PC's. I have a home office with a Power Mac G5 (not intel based) and a satellite office 1500 miles away in PHX with a MacBook (brand new). I am trying to be able to access and control my main office computers using Apple Remote Desktop.
    When I am at the main office with the MacBook and connected to the internet in the office I can use the ARD to control the two iMacs. But when I go home or down to Phoenix I cannot.
    I have searched the forums high and low, but I must be computer illiterate. I cannot understand how to make it work. I assume there are some firewalls in the main office? Please help!!!

    To be able to connect to a workstation from outside it's network, the ports that ARD uses must be open on both ends of the connection. ARD uses ports 3293 and 5900 so those must be open.
    If your workstations get their addresses from an NAT device rather than being "real", the ports also need to be forwarded in the router to the workstation's internal IP address. ARD uses port 3283 for the reporting and updating function, so if your Macs are getting their IP addresses through NAT, since you can only forward a port to a single workstation, you can only get reports, push package/files to etc. for a single workstation.
    ARD uses the VNC protocol for observation and control, though, and there are a range of IP addresses for that protocol, starting with 5900. ARD uses 5900 by default, so that port would be forwarded to the first workstation. You would, I believe, need to install VNC servers on the systems (since the ARD client cannot listen on any port other than 5900 while VNC servers can be set for other ports such as 5901, 5902, etc. You would then forward 5901 to the second workstation (and on to 5902, 5903, etc.). You can then use the following information:
    Remote Desktop 2: How to specify a port number for a VNC client
    to connect.
    The only other options are: 1) to run the ARD administrator on a workstation on the network, and then take control of that system from outside, either via VNC or another copy of ARD, or 2) set up a virtual private network (VPN) so that when you connect from outside, your admin system is officially part of the local network.
    Hope this helps.

Maybe you are looking for

  • IPOD TOUCH 4TH GENERATION CAN'T UPDATE!!!!!!!!

    I have been trying for a while to update my iPod Touch 4th Generation to iOS 6. My iPod is in good condition hasn't been jail broken& hasn't had any recent history of it not working. I have iTunes 10.7, which i belive is the latest version. It comes

  • HT201359 can i talk to a person

    i have been billed and i need to know what that was for? and i would like to be able to log in and see charges on my account with apple?

  • Transport Web Dynpro Java Application

    Hi All!!!             I want to know, how can we transport Web Dynpro JAVA application fron one server to another (Dev-> QA -> Prd) in NWDI and Non - NWDI Landscape. Cheers!!! Umang

  • Adobe AIR 2.0.2 / AS3 - Remove or change headers in NetStream

    Hello, I have problem with modify headers in NetConnection/NetStream functions (NetConnection.AddHeaders) doesn't work. How I can change headers when I usage NetStream.play(URL) ? At this moment any request from AIR enviroment is marked with Referer

  • ITunes 8 shuts down (error pop-up) when iPod plugged in.

    I recently updated to itunes 8 on a Windows XP. I can run iTunes and play music, except when I plug in my iPod. When I plug it in iTunes freezes and comes up with "iTunes has encountered an error and needs to shut down". Conversely, my iPod is recogn