Form Focus

Hi
I have a form which is opening another form using open form, I want to set the focus back to the opener once the form has finished loading eg
Form A opens forms B in activate mode (using open form)
Form B when loaded sets focus back to form A?
Thanks

A go_form on form B seems to be a way round this issue

Similar Messages

  • What event fires when form focus comes back to calling form

    Hi,
    I need to capture the event when form focus comes back to calling form.
    I am using KFF in my custom form and want to perform a set activities when users presses "Cancel" button of KFF instead of "OK" button.
    I guess KFF screen is an another form which is being called from my custom form.
    Regards,
    Kuldeep

    I posted my question here and got answer
    Re: Event to capture when form focus comes back to calling form
    Edited by: rawat75 on Feb 6, 2013 12:54 AM

  • Parameter form focus

    Hi there,
    Application Server Forms and Reports 10.1.2.3
    Windows Server 2003 R2 SP2
    Forms Applet version is : 10.1.2.3
    Java Plug-in 1.6.0_18
    Using JRE version 1.6.0_18-b07 Java HotSpot(TM) Client VM
    After migrating to forms 10g when the parameter form is displayed to users in a browser the focus is not in the text box like it was in the 6i client.
    Is there any way to have the focus so the user doesn't have to click the mouse in the text box?
    Thanks,
    faoilean.

    Anyone have ideas as to how I might do this as of yet I cannot find a solution.
    Thanks

  • Form focus problem

    I am using 10g. when i open one form and then another form then the current form goes behind the previous form. I m using following code,
    elsif /*statement */ THEN
    open_form(b_program, ACTIVATE,SESSION);
    if i put a message before open_form then it work fine and focus is set on current form but with message its not working.
    elsif /*statement */ THEN
    MESSAGE('1'); PAUSE;
    open_form(b_program, ACTIVATE,SESSION);

    You could also try:
    elsif /*statement */ THEN
    SYNCHRONIZE:
    open_form(b_program, ACTIVATE,SESSION);
    Does this do the trick also? Message also causes a Synchronize. You don't want a message obviously, but just calling a Sycnronize might be acceptable. It updates the screen and all related buffers, etc. Remember that it does cause a network roundtrip to the client so use it sparse.

  • Form focus and validation

    If I use struts actionform, how can I get the focus of the form to one of the elements that fails validation when the form is re-displayed?

    Not quite sure what your validation is, but I prefer to use the Action Builder. I just set a condition of a field "is not" and then in the result section use "Set Focus" to and select whatever field you want. Depnding on the type of field (text field, numeric or date) you get a different set of validation parameters. For example if your field is a numeric field you can select things like "is greater than", "is not" whereas a text field only has things like "is not" or "is empty". I usually suggest that because it takes out the issue of incorrect Javascripting or other coding issues and breaks it down to the simplest functions. However without knowing the type of field you are using and what the validation you are running it is hard to figure out what the issue is.

  • Forms 6i window scrollbar focus (flickback)

    i have a requirement to make a tall/high dialog style form that can be displayed on different screen resolutions. A scrollbar needs to be used to enable users of lower resolution screens to scroll from the top of the canvas to the bottom (<b>without key press type navigation</b>). The problem is focus flicks back to the last item that had the cursor in it.
    For example:
    in forms 6i (at least) if you create a content canvas that is larger than is able to be displayed on the screen then assign it to a window that has a vertical and/or horizontal (so you can scroll down the oversized canvas) and can be maxmized. Place a text item at the top and a button at the bottom of the canvas. run the form, focus/cursor goes to text item at the top. maximize the window. use the scrollbar to view the button at the bottom....as soon as the mouse leaves the scrollbar and enters the canvas focus flicks back to that part of the canvas containing the text item which has the cursor in it. This makes it impossible to ever get to that button without a key-next-item or other navigational function.
    i have tried many different settings including using a stacked canvas with its own scrollbar and the same thing happens.
    why on earth is this? is there some way to get around this problem - i want the focus to remain in that part of the canvas that the scrollbar was used to view.
    any assistance would be appreciated.
    regards
    ps: i have not been able to locate any related discussions on this point.

    i have found a workaround, albeit not enormously satisfactory.
    The MDI window scrollbar does not seem to have this flick back problem, just forms defined canvas and form window scroll bars (at least) do. Therefore, so as long as the over-high (or over-wide) form is in a window that is Document Style (meaning it is affected by the MDIs scrollbar - unlike DIALOG style windows) then an overlarge "dialog style" called form can be scrolled down via the MDI scroll bar.
    Edited by: mojo on Dec 3, 2009 11:09 AM

  • Issues with AR Invoice form after sending barcode and tab data to PC

    Hi,
    We have a barcode system to scan ItemCodes and send 5 x tabs 'keypresses' to the checkout users PC.
    This basically populates all the required fields on the AR Invoice row and jumps down to the next row ready for the next barcode.
    We have recently upgrading to 8.8, and we have developed an annoying issue.  Intermittently, the PCs not behaving as expected.  Here are some of the bad results we have experienced:
    1. The barcode scan is done, but the tabs being sent to the PC are not registered..  The PC just sits there with the cursor at the end of the (populated) ItemCode box without recognising that tabs have been sent
    2. The barcode scan is done and the ItemCode box is populated as expected.  However SAP has not processed all the expected tabs and the cursor remains one of the next few fields awaiting user input.
    3. As above the barcode scan is done and the ItemCode box is populated as expected.  However SAP has not processed all the expected tabs.  Also, the cursor is not present within the current 'selected' field - it seems to have almost lost focus from the fields on the form.  Note: the SAP window remains the active Window.
    All of this means that the processing of Invoices is being delayed as tabs are not being processing and form focus is being lost.
    The form settings are correct as they are unchanged from being working to suddenly stopping working.  The issue is occasionally resolved by a reboot of the client PC in question. 
    Is this a known issue in 8.8?  If not, is this most likely to be caused by display issues or SAP 8.8 not being able to handle the receipt of tab commands in such quick sucession?
    Any pointers or comments from your experience would be appreciated.
    Regards
    OB

    Which patch level are you using as this should be fixxed. I would also look if there are any conflicts with the add-ons as there some major changes in the SDK.

  • Problem with custom control and focus

    I've a problem with the focus in a custom control that contains a TextField and some custom nodes.
    If i create a form with some of these custom controls i'm not able to navigate through these fields by using the TAB key.
    I've implemented a KeyEvent listener on the custom control and was able to grab the focus and forward it to the embedded TextField by calling requestFocus() on the TextField but the problem is that the TextField won't get rid of the focus anymore. Means if i press TAB the first embedded TextField will get the focus, after pressing TAB again the embedded TextField in the next custom control will get the focus AND the former focused TextField still got the focus!?
    So i'm not able to remove the focus from an embeded TextField.
    Any idea how to do this ?

    Here you go, it contains the control, skin and behavior of the custom control, the css file and a test file that shows the problem...
    control:
    import javafx.scene.control.Control;
    import javafx.scene.control.TextField;
    public class TestInput extends Control {
        private static final String DEFAULT_STYLE_CLASS = "test-input";
        private TextField           textField;
        private int                 id;
        public TestInput(final int ID) {
            super();
            id = ID;
            textField = new TextField();
            init();
        private void init() {
            getStyleClass().add(DEFAULT_STYLE_CLASS);
        public TextField getTextField() {
            return textField;
        @Override protected String getUserAgentStylesheet() {
                return getClass().getResource("testinput.css").toExternalForm();
        @Override public String toString() {
            return "TestInput" + id + ": " + super.toString();
    }skin:
    import com.sun.javafx.scene.control.skin.SkinBase;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.event.EventHandler;
    import javafx.scene.control.TextField;
    import javafx.scene.input.KeyCode;
    import javafx.scene.input.KeyEvent;
    public class TestInputSkin extends SkinBase<TestInput, TestInputBehavior> {
        private TestInput control;
        private TextField textField;
        private boolean   initialized;
        public TestInputSkin(final TestInput CONTROL) {
            super(CONTROL, new TestInputBehavior(CONTROL));
            control     = CONTROL;
            textField   = control.getTextField();
            initialized = false;
            init();
        private void init() {
            initialized = true;
            paint();
        public final void paint() {
            if (!initialized) {
                init();
            getChildren().clear();
            getChildren().addAll(textField);
        @Override public final TestInput getSkinnable() {
            return control;
        @Override public final void dispose() {
            control = null;
    }behavior:
    import com.sun.javafx.scene.control.behavior.BehaviorBase;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.event.EventHandler;
    import javafx.scene.input.KeyCode;
    import javafx.scene.input.KeyEvent;
    public class TestInputBehavior extends BehaviorBase<TestInput> {
        private TestInput control;
        public TestInputBehavior(final TestInput CONTROL) {
            super(CONTROL);
            control = CONTROL;
            control.getTextField().addEventFilter(KeyEvent.KEY_PRESSED, new EventHandler<KeyEvent>() {
                @Override public void handle(final KeyEvent EVENT) {
                    if (KeyEvent.KEY_PRESSED.equals(EVENT.getEventType())) {
                        keyPressed(EVENT);
            control.focusedProperty().addListener(new ChangeListener<Boolean>() {
                @Override public void changed(ObservableValue<? extends Boolean> ov, Boolean wasFocused, Boolean isFocused) {
                    if (isFocused) { isFocused(); } else { lostFocus(); }
        public void isFocused() {
            System.out.println(control.toString() + " got focus");
            control.getTextField().requestFocus();
        public void lostFocus() {
            System.out.println(control.toString() + " lost focus");
        public void keyPressed(KeyEvent EVENT) {
            if (KeyCode.TAB.equals(EVENT.getCode())) {
                control.getScene().getFocusOwner().requestFocus();
    }the css file:
    .test-input {
        -fx-skin: "TestInputSkin";
    }and finally the test app:
    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.control.TextField;
    import javafx.scene.layout.GridPane;
    import javafx.stage.Stage;
    public class Test extends Application {
        TestInput input1;
        TestInput input2;
        TestInput input3;
        TextField input4;
        TextField input5;
        TextField input6;
        Scene     scene;
        @Override public void start(final Stage STAGE) {
            setupStage(STAGE, setupScene());
        private Scene setupScene() {
            input1 = new TestInput(1);
            input2 = new TestInput(2);
            input3 = new TestInput(3);
            input4 = new TextField();
            input5 = new TextField();
            input6 = new TextField();
            GridPane pane = new GridPane();
            pane.add(input1, 1, 1);
            pane.add(input2, 1, 2);
            pane.add(input3, 1, 3);
            pane.add(input4, 2, 1);
            pane.add(input5, 2, 2);
            pane.add(input6, 2, 3);
            scene = new Scene(pane);
            return scene;
        private void setupStage(final Stage STAGE, final Scene SCENE) {
            STAGE.setTitle("Test");
            STAGE.setScene(SCENE);
            STAGE.show();
        public static void main(String[] args) {
            launch(args);
    The test app shows three custom controls on the left column and three standard textfields on the right column. If you press TAB you will see what i mean...

  • Internet Explorer7 cannot display the Webpage in forms 10.1.2.3

    Hi all,
    I have installed forms 10.1.2.0.2 to my laptop under Windows Vista Home Premium and followed the following steps :
    1- changed virtual memory to (minimum of 2048 and maximum of 4096)
    2- I updated forms 10.1.2.0.2 it to forms 10.1.3 using pathch 3 (patch ID 5983622)
    3- I changed the application server Url in forms builder by choosing Edit, preferences, runtime and click on "Reset to default" button and added ?config=jpi at the end of the line.
    when i run the form I got the message "Internet Explorer cannot display the Webpage"
    when I called the link http://Computer_name:8889/forms/frmservlet?config=jpi
    I got a message asking me to allow downloading java plug-in 1.4.2 ( which I know that it is not certified with Vista), So i refused downloading and updated the formsweb.cfg file as Steve Cosner said in his thread Vista Jinitiator problem
    and added these new lines to the formsweb.cfg file:
    [[jdk15]]
    jpi_classid=clsid:CAFEEFAC-0015-0000-FFFF-ABCDEFFEDCBA
    jpi_codebase=http://java.sun.com/update/1.5.0/jinstall-1_5_0_12-windows-i586.cab#Version=1,5,0,12
    jpi_mimetype=application/x-java-applet;jpi-version=1.5.0_12
    jpi_download_page=http://java.sun.com/javase/downloads/index_jdk5.jsp
    baseHTML=basejpi.htm
    baseHTMLjinitiator=basejpi.htm
    baseHTMLjpi=basejpi.htm
    baseHTMLie=basejpi.htm
    When i run the form I got the same error message "internet Explorer cannot display the Webpage "
    Again I called the link : http://Computer_name:8889/forms/frmservlet?config=jpi
    then I got a message asking to allow loading and installing JRE 1.5.0_12 , and I allowed downloading and installation
    After all of this, the form doesn't run and I get the same message "Internet Explorer cannot display the Webpage "
    Is this a forms related problem or an Internet Explorer problem
    Please help
    Mostafa Abolaynain
    Edited by: Mostafa Abolaynain on Jun 5, 2009 12:06 AM

    jemar98 wrote:
    We have a custom application built alongside Oracle Ebusiness Suite 12.
    Launch a form from the Menu Navigator
    Click in any field in the form
    Focus does not change to the field that was clicked
    Focus can be retained by pressing any keyIs this issue with all custom forms or specific ones?
    Did you use the TEMPLATE.fmb file when building your custom forms?
    Can you find any errors in the JRE Console Window?
    Please obtain the FRD log file and see if you can capture more details about the error -- https://forums.oracle.com/forums/search.jspa?threadID=&q=FRD+AND+R12&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Forms 10.1.2.0.2: Web Form does not appear at Runtime with CALL_FORM

    Hello there,
    We have a number of forms we're executing as web forms using Oracle JInitiator 1.3.1.22. We have one form in particular that, when a button is pressed, is supposed to call another form via the CALL_FORM built-in.
    We are passing a parameter list to the new form, and executing the CALL_FORM built-in with these Setting Parameters:
    CALL_FORM( formmodule_name => '<OUR_FORM_NAME>',
               display         => NO_HIDE,
               switch_menu     => NO_REPLACE,
               query_mode      => NO_QUERY_ONLY );When we run the starting form as a web form (via JInitiator 1.3.1.22), and press the button to call the other form, all buttons on the starting form are greyed-out/disabled. The called form does not appear.
    I have carried out a number of checks with my own debugging tool (stored procedure writing messages to a table via an autonomous transaction), and forms focus is definitely been transferred to the called form. For example, the WHEN-NEW-FORM-INSTANCE trigger in the called form is definitely being executed.
    I suspect this problem is JVM-related rather than Forms-specific. My current plan of attack is to request the Application Server Logs tomorrow morning (I don't currently have access to them) and see if I can find any Java-related error messages. However, if any of you reading this have experience of this type of problem and can offer any assistance, please don't hesitate to let me know your suggestions/advice.
    Cheers.
    James

    You could check the settings of the window in the calling form. If its set to "Modal" or "Dialog", and the window in the called form has other settings, the new window might be opened "behind" the old window.

  • IE settings when using Oracle Forms

    Just because this information is really useful if you are having problems running forms in IE...
    1. In the browser, select Tools > Internet Options > Advanced
    2. Uncheck the box labeled "Reuse windows for launching shortcuts"
    3. Check the box labeled "Allow active content to run in files on My Computer"
    4. Check the box labeled "Empty Temporary Internet Files folder when browser is closed"
    5. Click on OK to accept the changes.
    6. Close ALL open browsers.
    7. Retest.
    Kindly borrows from:
    http://forums.oracle.com/forums/thread.jspa?messageID=889487&#56100;&#56975;
    But with a better heading.
    Richard

    Very odd because this was a known issue that was "corrected" in 11.1.2.0. If you are certain that you are using 11.1.2.0, I would recommend the following:
    1. Verify that you are using the latest supported JRE which is 1.6.0_33. If not, uninstall ALL previous versions before installing the new. Also, be sure that ALL browsers are closed before performing the uninstallation and installation.
    2. Install patch 14037368. Be sure to read the included instructions. This patch includes numerous Forms focus, hang, and other failure fixes.
    3. Before retesting, clear the client JRE jar cache.
    If this doesn't fix the problem, feel free to prepare a test case and report the problem to Support. Be sure your test case is as simple as possible and can be easily setup in Support and run. Do not send complete applications. The test case should contain only the code necessary to reproduce the problem. It might help to also mention bug 8485711 which was supposed to be fixed in 11.1.2.0
    Edited by: Michael Ferrante (Oracle) on Aug 2, 2012 2:24 PM

  • Mouse Navigation Issue in Forms 10.1.2.3.0

    We have a custom application built alongside Oracle Ebusiness Suite 12.
    Launch a form from the Menu Navigator
    Click in any field in the form
    Focus does not change to the field that was clicked
    Focus can be retained by pressing any key

    jemar98 wrote:
    We have a custom application built alongside Oracle Ebusiness Suite 12.
    Launch a form from the Menu Navigator
    Click in any field in the form
    Focus does not change to the field that was clicked
    Focus can be retained by pressing any keyIs this issue with all custom forms or specific ones?
    Did you use the TEMPLATE.fmb file when building your custom forms?
    Can you find any errors in the JRE Console Window?
    Please obtain the FRD log file and see if you can capture more details about the error -- https://forums.oracle.com/forums/search.jspa?threadID=&q=FRD+AND+R12&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Can I traverse a set of open forms

    Lets say I have 4 open forms. Is there anyway to traverse all 4 forms in order. I found NEXT_FORM and PREVIOUS forms but they only seem to allow to go to one form and then focus stops there.
    Thanks for any help in this matter,
    Thomas

    Well.. Tough to do.. In the past I wrote some code that when the outer MDI window 'X' window was pressed the application would loop through all open forms and ask the user if they want to save the changes or not instead of just dying. If there were any changes to save, each changed form would pop up and prompt the user to save changes instead of just dying.. I think the outer X MDI window wants to just kill the app and ignore changes. The inner form X may ask to save changes. I forget. So.. We.
    1) created a table with all formnames
    2) looped through all the form names in the table.
    3) used find_form('formname') to determine if the form with that name was open
    4) kept checking for the same formname with find_form function until it returned a null value because multiple instances of the same form can be open.
    5) checked for changes and/or exited.
    I think we put the code in a pll not a form... You might have a hard time getting code to launch in one form and keep running as you navigate from form to form and each additional form gets focus. We may even of had to put some code in the when-window-activated trigger of each form that popped up to check for its own status and then recall the procedure to check for another open form. Kind of a daisy chain type of code... like this... pseudo code follows...
    user wants a pretty color...
    presses button on some form. In when button pressed code do..
    find_form;
    give form focus;
    when-window-activated fires inside form getting focus;
    set_item_property() via a parameter or global;
    find_form; (another open form);
    give_form_focus;
    when-window-activated fires...
    ..and so on...
    somehow you will have to know when to stop... :) I knew when to stop because there were no more open forms.. I closed them all :)
    Me? I set the colors when I build the application and am done with the color thing. I kinda hate foolin with colors anyway. Each form I make may toggle colors of fields depending if the field is required or not, but only within each form. I have never looped through all the forms and set colors myself.
    As far as I know there is no way of getting something like an array of all open forms. You have to check for one form at a time and you have to know the names of the forms before you check.
    As far as I know...
    Message was edited by:
    Mark Reichman

  • Changing of focus

    There is a frame with an open option in menu bar for opening a particular form. This frame is allowing user to open the form twice and when the user opens the form 2nd time it is opened in Read-only mode and provides the feedback that the form is in use by the same user at same workstation. This is confusing to some of them.
    So the desired behaviour is when the form is already open, and a second request is made to open same form , focus must be placed on the first form and it should be brought on top of all other forms. Can U suggest wat must be the coding done.
    Edited by: Devinaren on Sep 16, 2007 12:48 PM

    Create a Map<File, Window> that links the file with the window its in. Then, when you open the file again, check your map, see if it's already there, and if so call toFront() on it.
    Also, you will want a WindowListener so if a window is closed, it will remove that window from the map.

  • Unwanted focus on masked field

    I've got a cfform with a lot of fields. You have tot scroll
    down to see the whole form. My last field has a mask. Because of
    this mask the form focuses automatically on this field. This is
    unwanted as I want the clients to start at the top of the form and
    fill it out. Is there a way to undo this behavior?

    I've got a cfform with a lot of fields. You have tot scroll
    down to see the whole form. My last field has a mask. Because of
    this mask the form focuses automatically on this field. This is
    unwanted as I want the clients to start at the top of the form and
    fill it out. Is there a way to undo this behavior?

Maybe you are looking for