Webutil_host.nonblocking get focus back to applet

When you launch a program using webutil_host.nonblocking(), is there a way to get the focus back to the Forms applet automatically without closing that program?
In older Client/Server versions I believe this was possible using the constant SW_SHOWNOACTIVATE but in webutil I can not find an alternative.
Thanks,
Jeroen

Controlling and external app's window focus and z-order from a java applet is not likely going to be a simple task. As I mentioned, the easiest approach would likely be to start the external app minimized or attempt to control the state of the Forms window. In other words, after calling the external app force the Forms window to the foreground. This is likely going to be the simplest place to start. You still may need to manage cursor focus, but this approach might at least get the Forms application back to the foreground where you can then figure out how to handle the cursor.
So in other words,
1. Add a java bean to your form which will control the state of the Forms applet window/frame. See the following:
http://forms.pjc.bean.over-blog.com/article-2203967.html
Understand that this will only work if Forms separateFrame=true.
2. From the form, call your external app. Immediately after making the call to WebUtil to start the external app, execute a SYNCHRONIZE then call the above bean to bring the Forms separateFrame to the foreground using an "always on top" feature.
3. Once the form is on the top of the z-order (in the foreground), disable the "always on top" option.
In theory, the above should accomplish most of what you want. However, just because you brought the form to the foreground does not necessarily mean that the cursor focus will be in any particular item of the form. In fact, it is most likely that focus will be on the title bar of the form. The user would have to click on the desired field or button to perform their next task. Controlling the cursor focus at this point may be possible by executing a GO_xxxx to an item or block. If not, another bean or modifications to this one may be necessary in order to place the cursor back on the displayed canvas.
if any of this stuff is something you are not familiar with, I suggest a google or similar search as what you are attempting to do is leaning into what many would call advanced tweaking ;)

Similar Messages

  • WHEN-WINDOW-ACTIVATED gives focus back to applet window

    Testcase:
    Form A calls form B
    Form B performs this code:
    BEGIN
    web.show_document(url);
    exit_form;
    END;
    This should open a new browser window to the URL and keep the focus on it.
    However, when form A has a WHEN-WINDOW-ACTIVATED trigger (even when the only code is NULL;), it return the focus to the forms applet browser window the first time.
    This is very annoying because the new browser window can no longer be seen as it is put on the background. Strangly enough, the following times the focus remains on the new browser window.
    Is this a known bug?
    PS: The problem is that i really need a WHEN-WINDOW-ACTIVATED trigger in my form A to perform some webutil-functions.
    Environment:
    Forms Developer 10g Release 2
    Application Server 10g Release 2
    Window 2000/Xp
    Oracle Jinitiator 1.3.1.22

    In which trigger are you calling Form B? As I said, the EXIT_FORM event would take you back to Form A after opening the browser window, so what happens next depends on what code it fires once returning to Form A.
    Have you tried it with debug messages on to see what triggers it is firing? (both first time round & subsequently). Logically, I would have actually expected focus to return to Form A following the EXIT_FORM, but maybe I'm wrong ni thinking that.
    Have you experimented with the various WEB.SHOW_DOCUMENT options (e.g. WEB.SHOW_DOCUMENT(url, '_self') to get a different behaviour?

  • Getting focus back

    Hello everybody,
    I have this situation: based on some crieterias selected by user, the result is displayed in a Data Grid; in this moment the user can click on a row and another new browser opens up containing the details about that specific row.
    So far so good; my problem is that if the user click on another row, nothing happens until the new opened browser, from the first click, is closed; in another words, the user cannot see multiple rows details (on multiple browsers) in the same time, only one at a time.
    By the way, the Detail browsers are opened by using "navigateToUrl" command.
    Is there any way to fix that?
    Thanks.

    Yes, Alex, the Navigate is called again with different URL, but... my mistake was in the parameters; instead of navigateToURL(url,"_blank");
    I had navigateToURL(url,"_new"); Duhhh moment...
    Your comment, though, triggered me to the right direction; thank you!
    Florin

  • How to avoid applet getting focus ?

    When i put an applet on a html page, it takes the focus when it starts up (in all browser, IT, Firefox, Safari). I want the focus to stay at other html object - How can I avoid the applet from getting focus ?

    Hi Me too facing the same problem.Looks Like onblur event is getting fired when applet is loaded which is taking the focus to the image applet .So how do we block the onblur from getting invoked.

  • Applet getting focus without user click

    I'm writing an applet that takes keyboard input, but I can't get it to start accepting key presses until the I click on it to give it focus.
    The applet is running in a webpage in IE.
    Can an applet in a webpage get focus on it's own, without having to have the user click on it?

    A combination of the suggested solutions gives the Applet focus about 50% of the time. I guess this is the best result I can get, and I'm satisfied with it. Thanks!
    In start()
    setVisible(true);
    requestFocus();
    requestFocusInWindow();
    requestFocus();
    In paint()
    if (mFirstPaint)
    mFirstPaint = false;
    setVisible(true);
    requestFocus();
    requestFocusInWindow();
    requestFocus();
    }

  • Firefox get for a second focus back on screen, if I swich to an other programm

    Hello,
    if I use Firefox 5.0 with Win XPpro and I swich to an ohter programm like Word etc,
    Firefox get for a second focus back on screen an then back to Word (example).

    I chk it all, but this has no influence of my problem...
    I send a pic. On the top you see the title of Outlook. I had clicked in the taskbar on outlook an firefox came back like the attached pic. If I click now once again on outlook I get outlook...
    Cheers form germany and sorry about my english

  • Call a Form using Webutil from the Menu loose focus on the applet

    Hello,
    I have the following problem:
    When calling a form using webutil from the menu the focus on the applet (I mean the Forms Application window) is lost and I have to click on the window to get back the focus on the application.
    Any advice ?
    Env: Forms 9i / Webutil 1.06
    Rgds,
    Philippe

    Try to use the NO_HIDE parameter in the CALL_FORM() built-in.
    Call_Form( 'the_form', NO_HIDE ) ;Or maybe, in the[b] When-New-Form-Instance trigger of the called form, return the focus to the calling form
    Go_Form( Get_Application_Property( CALLING_FORM ) ) ;Francois

  • How can I restore Thunderbird behavior so I can delete emails by pressing delete key multiple times (without using mouse to change focus back to message list)?

    Thunderbird 24.3.0 (latest under OpenBSD)
    I (like most people) get spam in my inbox. When there are multiple spam messages in a row in my inbox I used to click on the first message and then press the delete key repeatedly for each sequential spam message.
    After upgrading, this doesn't work. Instead, when I click a message it opens in the message preview pane and moves the focus to the message. Thus I need to click twice to even be able to press the delete key to delete one message. When I press the delete key, the message is deleted and the highlighted message becomes the next one in the list. This opens the message in the preview pane and again shifts the focus to the message. Thus I can't press the delete key again but must move the mouse to click on the message before I can delete it.
    As a result, what used to be a very fast process of weeding through spam has become a real annoyance.
    I realize I can hide the message preview pane to prevent the focus from moving, but this means I must delete solely based on the email subject/sender -- or open each message (which is even slower).
    I also realize that I can press tab multiple times (sometime 4, sometimes many more) to shift the focus back but that's not much faster than using the mouse.
    How can I prevent Thunderbird from shifting the focus away from the email list panel unless I actually click somewhere else?

    Well said! And you said it about six weeks ago. And 4 other people said "Me Too." - I guess we're screwed.
    I guess it's time to switch to GMail.
    Such a trivial thing, but it irritates me every single time.
    MOZILLA - YOU'RE GOING DOWNHILL...

  • Lost my iPhone 6 Plus images and I need help getting them back.

    I may just have to go to the apple store, but I am going to see if anyone out here can help me out.
    Oct 31st I transferred my SIM from my iPhone 5S to a new iPhone 6 Plus. On December 7th(ish) my new iPhone decided that it would no longer focus on anything that was more than one foot away.
    I was hoping that it would fix itself but it never did. So I went to the Apple Forums and there were some people suggested that wiping out the phone and restoring the system would help.
    Before I wiped out my phone I did a back up. After the phone restored all the images and information came back. The camera started working for a couple clicks then stopped. I wiped out my phone three maybe four more times and it each time the images came back I even wiped out and set it up as a new iPhone and wiped back out and restored with my iCloud and the image still came up!!! ... but the focusing would not work for more than a couple of clicks.
    On December 12 I took it into the iPhone store they said I'd needed a replacement one. Before we removed the "find my phone" and wiped out the device we made sure the phone was backed up. Because I had over  5,500 images on my phone I didn't wait around the store to make sure they all popped up and went home.
    When I got home the phone only showed the 4,200 images I had taken with my iPhone 5S up to October 31st!!! However, under my settings my replacement iPhone 6 Plus shows 5,500 images but I cannot locate them.
    The other thing that is odd is that all my "shared images" from October 31st to December 12th that I took with my 6 Plus are still showing up as well as the ones that I sent via which leads me to think that they are lost out in the iCloud Universe somewhere.
    When logged on to my iCloud.com account it would only allow me to see what is on my current iPhone 6 Plus which includes the images before October 31st and the images I have taken since the iPhone 6 Plus. I cant see any of the images that are on my iPad that are set up under the same account, but it let's me see the icon for the iPad and it also shows me the icon for my other 6 Plus. However, the iCloud website will not allow me to click on the two icons and look at the images.
    I believe that after 30 days from December 12th those images will probably by default be deleted from the iCloud system and I want to make sure that I get them back before they do.
    I understand that apple changed the layout of the images and I did go and look at all my albums... so this not the case.
    I can see my back up from Dec. 9 and Dec 12th and have tried to do the restore on this phone the text and the contacts pull up but the images do not.
    Someone please help me out. I have all the images from our recent Disney World Vacation in there and I would really like to have them back.

    cuz me too same case I have also I lost all my photos 800pics

  • How to run a batch file (.bat) from forms? WEBUTIL_HOST.NonBlocking?

    I need to execute a batch file on the clients pc. Right now, I'm using:
    WEBUTIL_HOST.NonBlocking('cmd.exe /c "' || :Test.Batch_File_Name || '"');
    where the :Test.Batch_File_Name is something like C:\run.bat.
    This works to some extent. When it runs, I see a blank cmd.exe window and when I check my processes, I can see that run.bat is running. However, I need to be able to see run.bat as it executes because it outputs messages to the screen. Is there a way to call client_host or webutil_host that will display the batch file screen?
    Thanks

    Hello,
    With the Webutil Get_Standard_Output() , you can get the output strings and display them into your own Forms canvas ;o)
    Francois

  • ADF Tree setting focus back to parent node after deletion of child node

    Hi,
    Is there a way to get the focus back to the parent node (or rather any particular node) in a tree?
    I have a use case where we need to get the focus back to the parent node after a child node is deleted.
    Currently the focus is shifted to the next node in the tree, but the need is to get the focus shifted back to the parent node. Also the parent node should be re-invoked to populate to get the latest status after deletion of the child node.
    Any help/pointers?
    Thanks

    Thanks for the reply Frank.
    I saw the link http://sreevardhanadf.blogspot.in/2012/07/showing-next-row-as-current-row-after.html
    However the issue is since I am using custom created tree using POJO tree item (composite object).
    calling myTree.getWrappedData() doesn't gives me a handle to JUCtrlHierBinding and subsequent access to JUCtrlHierNodeBinding.
    my program gives me data like -
    List<MyTreeItem> treeData = (List<MyTreeItem>)treeModel.getWrappedData();
    because my tree model is build using -
    treeModel = new ChildPropertyTreeModel(items, "children");
    where items is List of <MyTreeItem>
    Hence I am unable to get a handle using -
    List nodeParentList = nodeParent .getKeyPath();
    I am programmatically able to invoke the parent node to get the fresh data, only issue is the focus/selection of that node is not happening
    Is there a way around?
    Thanks
    Sachin

  • JTextField and JTextArea don't get focus occuasionally

    I am developing a Java Swing Applet. At edit mode, JComboBox, JCheckBox, JRadioBox, and JButton work fine, but JTextField and JTextArea can't get focus occuasionally while I click them.
    Anyone has idea?
    Thanks

    Thank you Himanshu,
    but that's not exactly what my issue is. This link describes the undesired effect of ending up outisde of the player window and in the browser.
    My problem is kind of the opposite. When I launch the page in the html file I cannot use the tab key to get to any of the controls in the captivate window. I'm stuck in the browser unless I click on the captivate window. That is not acceptable if we want it accessible without using a mouse. I found a way to make it work for chrome like I stated above, but not in FF. Do you have any ideas for this?
    Thanks!
    Monique

  • TS1702 I purchased an audiobook from itunes on my ipod touch yesterday.  Following an unsuccessful update to the ipod today, I had to restore it to factory settings and the audiobook has gone. How do I get it back without having to pay for it again?

    I purchased an audiobook from itunes on my ipod yesterday.  Following an unsuccessful update on the ipod today I had to restore factory settings and the audiobook has gone.  How do I get it back without paying for it again?

    Hi Jen.  My daughter just compleated her nursing program and is now working as a full time nurse.  Focus and study hard and soon you will be there too.  Now to the problem at hand.  I have the same problem.  I gave up on it and satisfied myself with my iPod without the upgrade.  Reason being I've read so many posts of people having problems after the upgrade.  But I'm sure other factors are involved.  Nevertheless here is the fix most say works to solve the problem:  What ever virus protection you have installed on your computer, disable it.  Then try to install the update. After that enable the protection. I had Kaspersky, and it does it's job well. The thinking is, the virus protection is blocking the upgrade.  Hope this works.   Charlie

  • Custom TextInput itemEditor not getting focus.

    I have an AdvancedDataGrid that has a custom itemEditor on an amounts field. If I do an inline textInput itemEditor everything works fine, but if I separate out the textInput itemEditor into it's own component then when I click on the amounts column it doesn't seem to get focus. What happens is I click once and it appears like the text box has appeared, but there is not cursor, so I can't start typing my amount. I need to click a second time in the cell for the cursor to appear.
    Here are my datagrid columns:
    <datagrids:columns>
            <mx:AdvancedDataGridColumn dataField="Customer" headerText="Cust" editable="false"/>
            <mx:AdvancedDataGridColumn dataField="Balance" headerText="Bal" editable="false"/>
            <mx:AdvancedDataGridColumn dataField="paymentAmountString" headerText="Amount"
                               editable="true" textAlign="right"
                               editorDataField="amountText" itemEditor="com.ihcfs.flex.renderers.AdvancedAmountTextInputRenderer">
            </mx:AdvancedDataGridColumn>
        </datagrids:columns>
    Here is my custom renderer/editor, I've tried both a spark TextInput and an mx:TextInput. They both have the same behavior.
    <?xml version="1.0" encoding="utf-8"?>
    <s:MXAdvancedDataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
                                      xmlns:s="library://ns.adobe.com/flex/spark"
                                      xmlns:mx="library://ns.adobe.com/flex/mx"
                                      focusEnabled="true">
        <fx:Script>
            <![CDATA[
                public var amountText:String;
            ]]>
        </fx:Script>
        <s:TextInput id="amountTextInput"
                     width="100%" height="100%"
                     textAlign="right"
                     change="amountText = amountTextInput.text;"
                     focusEnabled="true"
                     editable="true"
                     restrict="[0-9][.]"/>
    </s:MXAdvancedDataGridItemRenderer>
    If I do an inline item editor it works just fine, it's when I move it out to a reusable component that this behavior happens.
    Inline:
    <datagrids:columns>
            <mx:DataGridColumn dataField="customer" headerText="Cust"
                               editable="false" textAlign="center"/>
            <mx:DataGridColumn dataField="balance" headerText="Bal"
                               editable="false" textAlign="center"/>
            <mx:DataGridColumn dataField="paymentAmountString" headerText="Amount"
                               editable="true" editorDataField="text" textAlign="right">
                <mx:itemEditor>
                    <fx:Component>
                        <mx:TextInput width="100%" height="100%" textAlign="right"
                                      focusOut="textinput1_focusOutHandler(event)"
                                      focusIn="textinput1_focusInHandler(event)">
                            <fx:Script>
                                <![CDATA[
                                    import mx.controls.Alert;
                                    import mx.controls.Text;
                                    import mx.events.FlexEvent;
                                    import mx.formatters.CurrencyFormatter;
                                    [Bindable]
                                    private var originalAmount:Number;
                                    private var amountFormatter:CurrencyFormatter = new CurrencyFormatter();
                                    protected function textinput1_focusOutHandler(event:FocusEvent):void
                                        var e:TextEvent = new TextEvent("amountEntered", true);
                                        var textField:TextField = event.target as TextField;
                                        var newAmount:Number = 0;
                                        if(!isNaN(parseFloat(textField.text))){
                                            newAmount = parseFloat(textField.text);
                                        e.text = new String((newAmount - originalAmount) + "");
                                        dispatchEvent(e);
                                    protected function textinput1_focusInHandler(event:FocusEvent):void
                                        var textfield:TextField = event.target as TextField;
                                        if(!isNaN(parseFloat(textfield.text))){
                                            originalAmount = parseFloat(textfield.text);
                                        } else {
                                            originalAmount = 0;
                                ]]>
                            </fx:Script>
                        </mx:TextInput>
                    </fx:Component>
                </mx:itemEditor>
            </mx:DataGridColumn>
        </datagrids:columns>
    Thanks for the help!

    I attempted to do as you said using the following code:
    override public function setFocus():void{
         stage.focus = amountTextInput;
         amountTextInput.setFocus();
    I also tried adding an event handler to my renderer to capture the focus in event and try the same thing:
    <s:MXAdvancedDataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
                                      xmlns:s="library://ns.adobe.com/flex/spark"
                                      xmlns:mx="library://ns.adobe.com/flex/mx"
                                      focusEnabled="true"
                                      focusIn="mxadvanceddatagriditemrenderer1_focusInHandler(event)">
    protected function mxadvanceddatagriditemrenderer1_focusInHandler(event:FocusEvent):void
         amountTextInput.setFocus();
    Neither of these solutions work. I could just go back to using the inline code, but I'd prefer to not copy and paste that code into several different grids.
    Thanks again for the help.

  • Deploy; JDev grabs focus back when done.

    Is there any way to make JDEV not grab focus back when a deployment is complete?
    ISSUE: A deployment takes minutes. I use my PC to do other things while deployment ( and compiling ) is going on... like email, write on this board, etc.
    I can do this without performance pain cuz I'm running a dual processor.
    While I'm busy typing away JDEV suddenly completes the deployment, grabs focus.. and stuff I'm typing furiously into email gets dropped into wherever the cursor was last sitting in the JDEV source editor!
    For that matter, I've had deployments fail when I'm doing other things... If I deploy and do NOTHING on that PC while deployment is occurring.. it happily completes.
    My only course at the moment is to sit and stare at the screen during deployments.. twiddling my fingers ( no JDEV manuals to read through off my shelf grin ). I'm almost to the point where I need a second computer to avoid losing an hour a day of "work" outside of JDEV.
    JDEV isn't the only critter who does this sorta thing, but it'd be nice if it shared the sandbox more politely.

    Yes, there is a way to do this:
    1) Select your deployment profile.
    2) Right click and select "Properties..."
    3) Go to the "Project" tab.
    4) Click the "Advanced..." button.
    5) Under the "General" tab, UNCHECK "Redirect messages to the message view".
    This will cause messages to be accumulated in a text area that is within the modal dialog. Once you dismiss the dialog you will no longer have access to the deployment messages that were produced. But, JDeveloper will not steal the focus back when deployment finishes in this case, because that dialog stays up until you explicitly close it.
    Concerning your second issue with deployment failing while you're doing something else, can you provide additional details on what kind of deployment profile you are deploying, how you invoke deployment, and what the failure messages are?
    Hope this helps.
    --joj (JDeveloper Deployment)
    null

Maybe you are looking for