Using Host in Forms is not freezing the caller

I am using the Host built-in command to launch a web page from a client/server Forms6i application.  I've found there are many different ways I can do this:
I can hardcode the path of the browser executable,
     host('"C:\Program Files\Internet Explorer\iexplore.exe" http://www.oracle.com/index.html'); 
use 'Start' with or without '@' and 'cmd /c ',
     host('@Start iexplore http://www.oracle.com/index.html');
     host('cmd /c Start iexplore http://www.oracle.com/index.html');
     host('Start iexplore http://www.oracle.com/index.html');
or use ShellExecute to launch the default windows browser. 
I want the form to be frozen/unusable until the user closes the browser.  I thought that was the default behavior of the Host command.  However, that only happens in the example where I provide the path.  I'd rather not have to provide the path to the browser executable, but I can't seem to get either of the other two methods to freeze the form for me.  Any ideas?
Thanks,
Meredith

I suspect the reason you don't want to hard code the IE path if for the obvious reason that some users may have it installed somewhere else.  Good thinking
For cases like this, it may be worth investing some time in offering some configurable options to the user.  This would be a good first example.  The option to choose the default browser related to the app.  You could create a "Settings" option in your application where the user could set things like (these are just examples):
Preferred browser
Save current position (this would allow the app to start in the current position next time it was started)
Background color
And so on....
Use TEXT_IO to create a config file on the client machine that would store the values chosen by the user.  On application startup (maybe in WHEN-NEW-FORM-INSTANCE), use TEXT_IO to read the values previously set.  If no config file is found at startup, use TEXT_IO to create one with default values that the you decide.  Doing something like this would make the application more customizable for the user, but it would also solve your current problem.  With this design, you can get the path to the preferred browser based on what the user selected.  So if they wanted Firefox instead of IE, they would get it and your app code wouldn't need changing to do it.
That said, whatever you decide to do, remember that in newer versions of Forms there is no "client/server" deployment option.  Therefore the functionality of such calls will change is some cases.  Hint-hint.... Please consider upgrading to the latest Oracle Forms version.  The latest version is 11.1.2.2.  In the latest version, you can do basically the same thing I described about with the addition of WebUtil.  Therefore very little code would need to be updated when moving to the web.

Similar Messages

  • Hitting F11 in the form does not change the colour to blue

    Hi All,
    Hitting F11 in the form does not change the colour of the queryable fields to blue. Those fields remain white in color. The query functionality is working properly. The problem is only with the color not changing to blue. Is there any form property that needs to be checked? Other forms in this instance are working as expected.
    Thanks in Advance

    F11 is not generally thought of as the key to make fields blue, is it? Are you using E-Business Suite? If so you should probably ask this question in the apps Forum: General EBS Discussion

  • Form will not print the typed information?

    My forms will not print the typed information only the form itself as a blank form.
    I have Acrobate 8 Professional V. 8.3.1
    Please advise on how to correct this annoying problem that started with the latest update.
    Thanks

    For Macintosh the AdobeViewer Plugins does not function and Hasn't since Acrobat 8. Adobe has no intention of fixing  it, I received a nasty reply:  what feature do you want removed in order fix the problem.  Its not worth it and we have no intention of ever fixing it. However its shipped and installed on the Mac version
    The only PDF Plugin that works  is PDFBrowser Plugin by Schubert of Germany, and it appears he has discontined updating although Thankfully It works in OSX.8  with most mdern Updates.  You can Only fill out forms by opening Chrome, iCab , and OperaNext only Safari doesn't work and any product using the Gecko Rendering engine (Mozilla Products , FireFox and SeaMonkey  Form Fields don't work or crash the browser. (depending upon version of the pdfBrowser Plugin).

  • Getting an error when using adobe photoshop CC, "Could not move the data because of a program error". Any idea on what this means?

    Getting an error when using adobe photoshop CC, "Could not move the data because of a program error". Any idea on what this means?

    Have no idea of what you were even doing in Photoshop my crystal ball is out for repairs so I can not see.  

  • Using lightroom 5.7.1 not all the meta-information is copied when exporting pictures

    using lightroom 5.7.1 not all the meta-information is copied when exporting pictures: city and country are not copied, although this information appears if i open the original file in photoshop. if i export this file via lightroom, the information dissappears.
    does anyone know how to solve this problem?

    thank you!
    although i did not change anything updating from lightroom3 to lightroom5, this box was automatically checked in all presets. now i unchecked it and everything works fine.

  • My University email uses outlook and firefox will not let the page open once i log into the university login. It used to work, but now just shows a completely white tab. My email works fine in other browsers. Why?

    My University email uses outlook and firefox will not let the page open once i log into the university login. It used to work, but now just shows a completely white tab. My email works fine in other browsers. Why?

    Make sure that you haven't left a profiles.ini file.
    * http://kb.mozillazine.org/profiles.ini_file
    *http://kb.mozillazine.org/Profile_folder_-_Firefox

  • I have lost my iPad 3 (3G). I do not use iCloud and I do not have the 'Find my iPad' app installed. What can I do to find it? Is there another way to bring up a map of where it is?

    Although I have Telstra 3G
    I do not use iCloud and I do not have the 'Find my iPad' app installed. What can I do to find it? Is there another way to bring up a map of where it is?
    I dont know the opperating system but I only got it recently...
    I also have a mac book pro also without iCloud.

    Without Find My iPad having been enabled on it then there isn't any way to locate it - and that would only work if it's connected to a network and hasn't been wiped or had Find My iPad disabled on it.
    If you think that it was stolen then you should report it to the police. You should also contact your carrier and change your iTunes account password, your email account passwords, and any passwords that you'd stored on websites/emails/notes etc.

  • Using windows xp and do not see the bookmark button

    using windows xp I do not see the bookmarks button to the right side of the screen. Is this normal? If not , how do I fix it.

    Thanks for your help, after reading your post I really didn't understand what you were saying. I did however figure it out and realized your instructions were right on.

  • I am facing problem in using viber...can not receive  any call from Viber whn keypad is locked and whn i unlock phone thn on opening viber i can see the missed call notification... kindly guide me there is any setting so0 tht i can receive viber calls

    I am facing problem in using viber...can not receive  any call from Viber whn keypad is locked and whn i unlock phone thn on opening viber i can see the missed call notification... kindly guide me there is any setting so0 tht i can receive viber calls whn my phone is locked even as i can receive calls on HTC

    Hi,
    This is an official representative of Viber Media.
    Unfortunately we cannot change this feature due to Apple's restrictions. :/
    For more questions or technical support, please visit our official HelpDesk.
    Thanks,
    Viber

  • My computer temp runs at 120 degrees. I used scmfancontrol but it did not lower the temp much. Can you tell me what I can do to make it work or any other suggestions to fix this would be most appreciated.

    My computer temp runs at 120 degrees. I used scmfancontrol but it did not lower the temp much. Can you tell me what I can do to make it work or any other suggestions to fix this would be most appreciated.

    To get rid of "pop-up ads and other crap on my computer when I am on the internet", click on Safari in the Menu bar, and select Preferences. Next select Extensions. Delete all of them. Restart Safari.
    The first step in addressing the black screen is an SMC reset.
    Shut down the computer.
    Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
    On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
    Release all the keys and the power button at the same time.
    Press the power button to turn on the computer. 
    Note: The LED on the MagSafe power adapter may change states or temporarily turn off when you reset the SMC.
    Excerpt from
    http://support.apple.com/kb/ht39

  • HT204380 How can I make a face time call from one country to another( supporsing both parties using iphone 4s). What will be the caller charges. If there is no charges as we use wifi, will there be a charge till connecting the call?

    How can I make a Face Time call from one country to another( supporsing both parties using iphone 4s). What will be the caller charges. If there is no charges as we use wifi, will there be a charge till connecting the call?

    FaceTime is free to use. You will not be charged for using FaceTime.

  • FXO not receiving the call

    Hello,
    I'm using a 1760 router with 1 FWO port, and a PVDM of 256.
    The FXO ports are connected to a PABX with 4 extensions. And three of them are working correctly. The fourth one is not receiving any call when using the extension. And when conncting the PABX directly to an analog phone, it receives the call.
    What can be the problem ?
    To be clearer, only one port is not receiving the call, and sometimes the same port works with another extension.
    Any suggestion ?
    Regards,
    Omar

    Omar,
    I don't think so. In case you are using PVDM-256K-4 then you can use 4 lines of G.729a Medium Complexity. Would you please test making a call to that port? Does it work? To make sure that the 4th can work correctly.
    This is a useful link.
    http://www.cisco.com/en/US/products/hw/routers/ps221/products_tech_note09186a00800c3399.shtml
    Toshi

  • Why dose not see the call waiting notification when other party in a call with some one ?

    why dose not see the call waiting notification when other party in a call with some one ?

    Because that is not a feature of the iPhone (or of most phones). If someone does not answer when you call, it means they do not want to or cannot talk to you at that time. They could be on another call or they could be simply busy doing something else. Why does it matter which?

  • TA38607 how do i deactivate call waiting while i could not find the call waiting in the Phone folder

    how do i deactivate call waiting while i could not find the call waiting in the Phone folder

    If you have a CDMA phone, there is no way to deactivate Call Waiting from the phone. You'll need to contact your carrier.

  • In the restrictions you can not put the call to voicemail?

    with the next update, in the restrictions you can not put the call to voicemail?

    so I have to delete the message?

Maybe you are looking for

  • Photoshop Load CPU

    Hello, photoshop used CPU system tried: change the settings in the performance put on a clean system in guest mode cleaning fonts I formatted the hard drive and install a clean OS, and only photoshop install cuba driver, Some inline Adobe Photoshop V

  • Mobile App Best Practice When Using SQLite Database

    Hello, I have a mobile app that has several views. Each view calls a different method of a Database custom class that basically returns the array from a synchronous execute call. So, each view has a creationComplete handler in which I have something

  • Process Chain Bug

    Hello experts, Perhaps this subject was already treated, I canu2019 find any answer in SDN, for this reason I am posting my question here. I have an issue with a process chain, when I launch it, I see the job in transaction SM37, it is reported like

  • Screen of my desktop hangs when switching to other desktop or mission control

    Screen of my desktop hangs when switching to other desktop or mission control. There is tearing of graphics while switchin to different desktops or mission control or while scrolling a webpage. I wish to know the problem and its solution.

  • Master detail detail relation

    Hi, I have 3 tables. C_ORDR_HDR --> A C_ORDR_DTL --> B C_ORDR_SCHDLE --> C. In A, B, C tables A is Master, B is chield in A, B tables B is Master, C is chield in B, C tables. For single transaction in C_ORDR_HDR multiple items in C_ORDR_DTL. For sing