Back again - set focus

Hi again,
I've been struggling with setting focus on each instance of a field within a repeating subform. My subform is limited to 5 instances. Min of 1.
As the user exits the only textfield in the subform, I have a new instance creating. I want the focus set to the new instance but I have not been able to get anything to work. My latest attempt has been to try to pass a count using the instancemanager to a variable in the setfocus string.
Here is what I have thus far. I know I need to resolve the node but that process is confusing the heck out of me. I've read and re-read everything I've been able to find but I havent been able to wrap my head around that part successfully.
Can anyone point me in the correct direction or suggest a better solutions? TIA!
form1.Account_Client_Information.Long_Title.Account_Long_Title::exit - (JavaScript, client)
var oSubform = xfa.resolveNode("Long_Title");
var oNewInstance = oSubform.instanceManager.addInstance(1);
xfa.form.recalculate(1);
var count = (this.instanceManager.count)
xfa.host.messageBox("Text Field Index in new Subform: " + count);
var vfocindex = xfa.resolveNode("Account_Long_Title[count]");
xfa.host.setFocus(vfocindex);

Hi,
The addInstance method will return the subform that you want so you only need to do;
var oNewInstance = Subform1.instanceManager.addInstance(1);
xfa.host.setFocus(oNewInstance.Account_Long_Title)
Regards
Bruce

Similar Messages

  • Setting focus on a component from backing bean

    Is there an easy way to set focus in a specific component on the jspx from a method in the backing bean? (other than javaScript coding...)

    Hi,
    did you take a look at
    About control the cursor position in a JSF web page
    It contains some links to other weblogs. The links are helpfull. Maybe you'll be able to find your solution there......
    Good luck
    Luc Bors

  • How to convert apple tv's hdmi output to cat6 and back again

    Hi,
    I have just reovated my room and have wired in 2 x cat 6 cables from the place which i have my apple tv set up to a projector on my wall. I want to know which converter would be best and usuable to convert the hdmi output on apple tv to cat6 and then back again to hdmi to connect to my projector?
    I have already bough some relitivly cheep hdmi to cat6 sender and recervers from ebay however i can only get sound to work (i.e. i can hear the sound when i press the apple tv remote) but there is no image. the projector i am usuing is a acer but will be changing this in a few weeks
    Please help.
    Regards
    Shaun

    Have a look at this, and possibly other items from this firm (though I have no experience of them):
    http://www.keene.co.uk/electronic/cyp/puma-hdmi-over-single-cat6-hdbaset-kit/pu5 06.html

  • Change and set Focus of window

    HI
    Guys
    I have encountered a problem while setting focus of my application's windows.
    i found the way i.e. by
    public void windowGainedFocus(WindowEvent wgf) {          
              if(this.isActive()){
                   VWM.theVWMDetailWindow.setAlwaysOnTop(true);
                   System.out.println(wgf.getSource());
         }by doing that there is errors came.....
    but there is no effect on the window theVWMDetailWindow to have operation setAlwaysOnTop successfully functoned
    Please help me out
    Thanks

    HI
    Yannix
    actually , i want to get the focus of my application window
    and then perform the action on it..
    The case is that::
    I have a main window..then on it a menu bar...
    when i click on one of the menu option then another separate window will be opened....and many other windows on different menu options....
    SO now i want to control their focus..... rite
    when my main window's focus lost means if i select another application
    another related opened window's must also lost their focus at that time.and when i came back to the main window another window's already opened must be on top.....
    So could you please suggest me some way , some solution to solve this
    Thanks

  • I made a mistake in my macbook air now in my macbook air showing windows how can i put it back again to macbook air

    I made a mistake in my macbook air now in my macbook air showing windows how can i put it back again to macbook air

    You need to provide a lot more detail as to what you did.
    Were you setting up bootcamp?
    Did you blindly install Windows without using bootcamp?
    If you set up bootcamp, press and hold the option key when you hear the start up bong until the screen shows both operating systems.You can then select the one that you want.

  • Problem using Setting Focus

    Hello there, can you help me on how to use the set Focus.
    For instance I have a 3 JTextField, when I run it, the focus is on the first textField, what I want is that, when I pressed the enter key on the keyBoard, the focus will be on the 2nd textField, and when I pressed again the enter key, the focus will be on the 3rd textField and so on.
    can you give me a sample code on this one, thanks.

    the last post in this thread might give you some ideas
    http://forum.java.sun.com/thread.jspa?threadID=713697&tstart=0
    note: will only work if the textfields follow each other in the focus traversal policy

  • Canon 6D Back button auto focus and ISO settings

    I was curious why when I am shooting in TV mode and I am using the back button auto focus that the camera will automatically change the ISO setting that I set. Is there something that I have missed in the settings or is this an automatic feature that can not be turned off?

    Sounds like you have safety shift set in a custom function
    Check C.Fn 1-6 Safety Shift - you may have it set to 2 - ISO Speed
    PAge 306 in the EOS 6D manual
    Canon specialist trainer, author and photographer - http://www.p4pictures.com

  • When i open iPhoto and want to share my photo on face book its popup with problem occur and ask me to repair when i repair it appears back again?

    when i open iPhoto and want to share my photo on face book its popup with problem occur and ask me to repair when i repair it appears back again?

    The Firefox Page Zoom feature does a domain by domain level of saving the users preferred zoom level settings, there is no default Page Zoom level setting in Firefox.
    Try the Default FullZoom Level extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/6965
    Or the NoSquint extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/2592/

  • Refresh ALV & set focus

    Hi,
       I have a refresh option on my screen. It will bring latest data from database. After displaying data in ALV and scrolling down (lets assume scrolled down 10 records). if I select refresh, I am reloading data to ALV. But focus is going to first record. I have again scrool down to 11th record to check the data. How I can set focus to 11th record after repopulating data on ALV. I am using classes for ALV.
    I will appriciate any inputs.
    Regards,
    Venkat.

    Hi,
    Check this example of using the method set_current_cell_via_id.
        DATA: ROWNO TYPE LVC_S_ROID.
        ROWNO-ROW_ID = 25.
    Set the focus on the row number 25.
        CALL METHOD <b>grid1->set_current_cell_via_id</b>
          EXPORTING
            IS_ROW_NO    = rowno.
    Hope this helps..
    THanks,
    Naren

  • Setting Focus Problems

    When using focusManager.setFocus(txtfield) in a module, it appears to loose its focus.
    I'm not sure why this is happening, since I am setting focus after the module has been created. The following is the code for my module:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Module
         xmlns:mx="http://www.adobe.com/2006/mxml"
         layout="absolute"
         creationComplete="mdl_init()"
    >
         <mx:RemoteObject
              id="LoginRemote"
              destination="login"
              showBusyCursor="true"
         >
               <mx:method name="sign_in" result="signin_handle(event)" />
               <mx:method name="sign_out" result="signout_handle(event)" />
         </mx:RemoteObject>
         <mx:Script>
              <![CDATA[
                   import mx.rpc.events.FaultEvent;
                   import mx.utils.ArrayUtil;
                   import mx.rpc.events.ResultEvent;
                   import mx.controls.Alert;
                   import com.brassworks.ValueObjects.CurrentUserVO;
                   import mx.events.VideoEvent;
                   [Bindable]
                   private var this_user:CurrentUserVO = new CurrentUserVO();
                   private function mdl_init():void
                        focusManager.setFocus(txt_username);
                   private function signin_handle(event:ResultEvent):void
                             this_user = event.result as CurrentUserVO;
                             if (this_user.token == null) {Alert.show("Supplied login credentials are not valid. Please try again.");}
                             else
                                  this.parentApplication.setUser(this.this_user);
                   private function signout_handle(event:ResultEvent):void
                   private function sign_in(event:Event):void
                        //Alert.show(txt_name.text + "|" + txt_password.text);
                        LoginRemote.sign_in(txt_username.text, txt_password.text);
                   private function sign_out(event:Event):void
                   private function show_error(error:Error, s_function:String):void
                        Alert.show("Method:" + s_function + "\nName: " + error.name + "\nID: " + error.errorID + "\nMessage: " + error.message + "\nStack Trace: " + error.getStackTrace() + "\nError: " + error.toString());
                   private function handleFault(event:FaultEvent):void
                        Alert.show(event.fault.faultDetail, event.fault.faultString);
              ]]>
         </mx:Script>
         <mx:Panel
              id="pnl_signin"
              title="Sign In"
              horizontalAlign="center"
              verticalAlign="middle"
         >
              <mx:Form
                   id="frm_signin"
                   cornerRadius="5"
                   defaultButton="{btn_signin}"
              >
                   <mx:FormItem
                        id="fi_username"
                        label="Username:"
                   >
                        <mx:TextInput
                             id="txt_username"
                        />
                   </mx:FormItem>
                   <mx:FormItem
                        id="fi_password"
                        label="Password:"
                   >
                        <mx:TextInput
                             id="txt_password"
                             displayAsPassword="true"
                        />
                   </mx:FormItem>
              </mx:Form>
              <mx:ControlBar>
                   <mx:LinkButton
                        id="lnk_request_password"
                        label="Forgot your password?"
                        click="currentState='RequestPassword'"
                   />
                   <mx:Spacer
                        id="spc_spacer"
                        width="100%"
                   />
                   <mx:Button
                        id="btn_signin"
                        label="Sign In"
                        click="sign_in(event)"
                   />
              </mx:ControlBar>
         </mx:Panel>
         <mx:states>
              <mx:State
                   name="RequestPassword"
              >
                   <mx:SetProperty
                        target="{pnl_signin}"
                        name="title"
                        value="Request New Password"
                   />
                   <mx:SetProperty
                        target="{btn_signin}"
                        name="label"
                        value="Submit Request"
                   />
                   <mx:RemoveChild
                        target="{lnk_request_password}"
                   />
                   <mx:RemoveChild
                        target="{fi_password}"
                   />
                   <mx:AddChild
                        relativeTo="{spc_spacer}"
                        position="before"
                   >
                        <mx:target>
                             <mx:LinkButton
                                  id="lnk_sign_in"
                                  label="Return to Sign In form."
                                  click="currentState=''"
                             />
                        </mx:target>
                   </mx:AddChild>
              </mx:State>
         </mx:states>
         <mx:transitions>
              <mx:Transition
                   fromState="*"
                   toState="*"
              >
                   <mx:Parallel
                        id="trn_default"
                        targets="{['RequestPassword']}"
                   >
                        <mx:Fade
                             alphaFrom="0.0"
                             alphaTo="1.0"
                        />
                   </mx:Parallel>
              </mx:Transition>
         </mx:transitions>
    </mx:Module>
    Ideas?
    Thanks!
    Mike

    Hi there, there's a constraint between flash player and web browsers so in order to gain focus in any object inside the flash player you must manually click inside the flash player instance.

  • HT5312 Good afternoon, I have forgotten my sequential answers to questions....how can I reset them ? Or else have the answers back again.  I am trying to purchase now and couldn't proceed because of this.  Please assist

    Good afternoon, I have forgotten my sequential answers to questions....how can I reset them ? Or else have the answers back again.  I am trying to purchase now and couldn't proceed because of this.  Please assist

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then steps 1 to 5 on the page that you posted from should work : go to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you should see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you won't get the reset option - you will need to contact iTunes Support or Apple to get the questions reset.
    e.g. you can try contacting iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management , and then 'Forgotten Apple ID security questions'
    or try ringing Apple in your country and ask to talk to the Accounts Security Team : http://support.apple.com/kb/HE57
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the page that you posted from to add a rescue email address for potential future use.

  • How do I set focus to a text field after I click a button that calls a webservice?

    I have a web service that returns back a table. In order to show the values in the table I had to check the re-merge Form Data on the Webservice Button.  My question is , How do I set focus to a field on the screen after re-merge happens.

    I was reading SetFocus documentation and it says
    You cannot use  setFocus with the form:ready, layout:ready, or initialize events.
    What I need is an event like doc:ready or someother event where I can put the set focus code in. doc:ready was triggered when the form first loads which is great and I was able to put my Initial setfocus. When I pressed the button that calls the webservice and thr re-merge happened doc:ready event was not triggered so now I am not sure where to put the set focus.

  • HT201299 My Iphone 4s wont remember the disable cellular data for certain apps as I soon as I switch on the 3g and go back to home and come back again to Cellular the all apps are being enabled..Please help

    My Iphone 4s wont remember the disable cellular data for certain apps as I soon as I switch on the 3g and go back to home and come back again to Cellular the all apps are being enabled..Please help

    First, try a reset: hold down the home button along with the power button until you see the Apple, then let go.

  • How can I get my old firmware back again?

    With firmware version 2.17 I used to have some problems with my system hanging now and then.
    With firmware 2.30 all my problems were solved and I was happy.
    Stupidly enough I upgraded to firmware verison 2.50 because MSI mentioned better support for various DVD brands.
    Since the upgrade my system again often hangs when trying to acces the drive.
    I WANT MY OLD FIRMWARE VERSION 2.30 BACK AGAIN!!!!!
    Could anyone please help my out by sending it to me or by sending a link where I can find older firware versions??
    Thanks a lot in advance!!
    Sjaak

    from my old phone?

  • TS1363 My iPod Nano 7th Generation couldn't be detected by iTunes when I plugged in. I tried resolving the issue by uninstalling the iTunes and then install it back again but yet still the same problem exist. Can you please help me to solve this issue?

    My iPod Nano 7th Generation couldn't be detected by iTunes when I plugged in. I tried resolving the issue by uninstalling the iTunes and then install it back again but yet still the same problem exist. Can you please help me to solve this issue? I have already updated to the latest version of iTunes on my Windows 8 and I cannot synchronize my iPod for the time being. Please do help me to solve this problem. Thank You.

    uninstall all iTunes,5 programes,this worked for me after reinstall them

Maybe you are looking for

  • Create FB03 attachments to external Website

    Hi Gurus, I have a requirement where my client wants to use FB03 create attachment functionality but at the same time, they don't want the attachments to store in SAP Sood table or related ones for there may be a time when the tables will be clogged.

  • Network adapter could not establish conn but something Strange

    Hi All, I use VPN to connect DB and UI. To avoid use of VPN, orgnization decided to use site-to-site. So they made some changes on my PC. So last day I was able to connect to Development and QA database. But since morning I was not able to connect DB

  • HT4623 ios 7 is not very compatiable for iphone 4!!!!!!!!

    ios 7 is not very compatiable for iphone 4!!!!!!!!

  • Can I go to West Edmonton Mall on 15th directly to buy 2 iphones?

    Hello There, Today I plan to buy two iphone 4S for my relatives, however I can't log-in apple webpage on time after 9PM and before 23:59PM, so I didn't reserve iphones successfully, while I must get the iphones on 15th, Jan 2012, because I must go ba

  • Codec Missing or Unavailable.

    PLEASE don't point me to another page elsewhere, as I think I've read everything on the internet on this. Please don't tell me to reinstall because 1 that's a ridiculous "solution" and 2 It's a work machine so I'd have to get them to do it and I need