Uix forms setting default cursor location

I have a login form that works but I want to have the cursor start in the first field, called "username".
Right now the cursor is nowhere as far as I can tell and the user must click into the username field before starting to type.
I also want to have the enter key automatically activate the login button without having to click on it with the mouse.
My code is listed below.
Any help is much appreciated.
Regards, Steve
<?xml version="1.0" encoding="windows-1252"?>
<!-- This is Login.uix -->
<page xmlns="http://xmlns.oracle.com/uix/controller"
xmlns:ui="http://xmlns.oracle.com/uix/ui"
xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:bc4j="http://xmlns.oracle.com/uix/bc4j"
xmlns:myTemplate="http://www.example.org/demo/templates">
<bc4j:registryDef>
<bc4j:rootAppModuleDef name="SmartLoginAppModule"
definition="smart.Smartbc4jModule"
releaseMode="stateful" >
<bc4j:viewObjectDef name="EroUsersGetUserView1">
</bc4j:viewObjectDef>
</bc4j:rootAppModuleDef>
</bc4j:registryDef>
<content>
<header xmlns="http://xmlns.oracle.com/uix/ui"
text="SMART Login">
<contents>
<form name="form1" method="post">
<contents>
<messageTextInput name="username" prompt="Enter Name" columns="20" />
<messageTextInput name="password" prompt="Enter Password" columns="12"
secret="true" />
<submitButton ctrl:event="login" text="Login" />
</contents>
</form>
</contents>
</header>
</content>
<handlers>
<event name="login" >
     <bc4j:findRootAppModule name="SmartLoginAppModule" >
          <bc4j:findViewObject name="EroUsersGetUserView1" >
               <ctrl:method class="smart.SmartLogin" method="handleLogin" />
</bc4j:findViewObject>
     </bc4j:findRootAppModule>
</event>
</handlers>
</page>

My code looks like this
<?xml version="1.0" encoding="windows-1252" ?>
<page xmlns="....
      xmlns:pageTpl="...">
  <templates xmlns="http://xmlns.oracle.com/uix/ui">
    <templateImport source="aTemplate.uit"/>
  </templates>
  <head>
    <html:title>aTitle</html:title>
  </head>
  <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui"
               xmlns:data="http://xmlns.oracle.com/uix/ui">
      <provider>
        <data name="nls">
          <bundle class="AMsgBundle">
          </bundle>
        </data>
      </provider>
      <contents>
        <ui:body onLoad="document.LoginForm.UserName.focus()">
          <contents>
            <try>
              <catch>
                <displayException/>
              </catch>
              <contents>
                <pageTpl:aTemplate  xmlns="http://xmlns.oracle.com/uix/ui">
                  <contents>
                    <messageBox automatic="true"/>
                    <form name="LoginForm" method="POST">
                      <contents>
                        <header data:text="...@nls">
                          <contents>
                            <stackLayout>
                              <contents>
                                <labeledFieldLayout labelWidth="25%"
                                                    fieldWidth="22" columns="1"
                                                    width="44%">
                                  <contents>
                                    <spacer height="15"/>
                                    <messageTextInput name="UserName"
                                                      data:promptAndAccessKey="Username_LABEL@nls"
                                                      columns="22"
                                                      required="yes"/>
                                    <messageTextInput name="Password"
                                                      data:promptAndAccessKey="Password_LABEL@nls"
                                                      secret="true" columns="22"
                                                      required="yes"/>
                                  </contents>
                                </labeledFieldLayout>
...

Similar Messages

  • How to set default file location in Illustrator?

    I'm using Creative Suite CS5 in Windows Pro 64, and would like to set a default location for files in Illustrator and Photoshop when I execute the File > Open or File > Save commands.
    Yes, the program defaults to the location of the last file opened, but sometimes that file is gone, or I'm creating a new one from scratch, and the program looks for files in a distant place in my file structure.
    ** Is it possible to set a default file location for opening and saving in Illustrator CS5 (and in Photoshop CS5)?
    Thanks.

    Not that I know of. It simply reverts to the global "My Documents"/ "Documents" folder as provided by your operating system. these can of course be changed using variables and editing the Windows Registry/ Group Policies, but that affects all programs...
    Mylenium

  • Setting default cursor on LinkButton

    I want to set normal (system default) cursor while mouse is
    on LinkButton (I do not want that 'hand'),
    I do not want to use embeded graphics, I just want to get
    normal cursor.

    Hi B.O.H.R.,
    you can use the "useHandCursor" property for that and set it
    to "false".
    regards,
    Christophe

  • How can i set mouse cursor location in a vi at a particular control button

    If there are many string controls on a vi front panel,I want to set my cursor at a particular string control.
    Whenever i will give an input ,It should be typed in that string control only.
    How can I do that ?
    Solved!
    Go to Solution.

    Hi,
    there is a property node which called Key focus, you can use it for the string you want to be enabled.
    when you run the vi, the curser goes to the selected string control
    check the attached vi.
    Attachments:
    Untitled 9.vi ‏8 KB

  • Setting Default File Location

    Hi All,
    Just installed Premiere Pro CS5 and have found difficulty in locating where to set the global location for the scratch disks. The only place I have located so far is in the project file. If this is only place, to have to set the scratch disk each time is rather onerous. Hopefully someone can point me to the (hidden) location for setting this globally.
    Regards
    Andrew

    Thanks - think our situations are a bit different. I have multiple users on the single system so reminding each to set the scratch drive each time they create a project will be a mission.
    We used to have Premiere Elements which had a single scratch location, within which each project had its own subfolder. Hence my expectation that Pro would operate in the same way.
    Perhaps Adobe could provide us with the option of working both ways - a global setting which can be overridden within the project.
    Andrew

  • Set Default Save Location for All Programs

    What I need is a program that will set the default save folder (in all programs) to the same folder the current file came from.
    If I do a "Save As" I want the folder in the Save dialog box to always be the folder the file is in.
    This was brain-dead easy in OS 9 (General Control Panel, Save Location, Folder That is Set by the Application).
    I cannot find a help file, a preference pane, an add-on program, anything to allow this.
    If anyone can help me, I'd appreciate it.

    Hi,
    Not sure if this is what you want but you might want to look at it
    http://www.stclairsoft.com/DefaultFolderX/

  • Setting default download location for apps

    Ok I found one thread on this but it was never really answered. Im looking for a way to set the location that my apps download to.
    Right now I have no space on my C: drive and would like all my app files to be sent to my D: drive.
    Any help is appreciated, thanks.

    I've checked My N8 (Belle) and 808 (Belle FP1) and can't find anywhere to configure the download location.
    Sorry.

  • Cursor location in new tabs defaults to the omnibox/address bar

    I have set new tabs to open google.com (using New Tab Homeage 0.4.3). However, in new tabs, the cursor position defaults to the omnibox/address bar. I want the default cursor location to be the google search field on the web page (if you must know why, it's because I love the lightning-fast search suggestions). I want to just hit CTRL+T and start typing my search. Any thoughts on how to accomplish this would be greatly appreciated.

    this bug refers https://bugzilla.mozilla.org/show_bug.cgi?id=1107844
    For the moment don't use enter or tab to move to the next field.

  • Need to set default values for the fields plant and location in ME21N

    Hi All,
    i need to set default values for the fields plant and location in ME21N tcode.
    In accout assignment if we give 'A' then we need to create asset by clicking the Asset tab,there you have the fields plant and location.
    How to resolve this?
    Thanks in Advance

    hi .
    i needed to set default strorage location and plant in personal setting  in me21n.
    i solve it with this way.
    go to program SAPLMEPERS in se38.
    create new function in output with the sample name :MODULE ZTEST_001 OUTPUT.
    in this module write:
    if MEPOITEM_PROP-WERKS is INITIAL and  MEPOITEM_PROP-LGORT is INITIAL.
    MEPOITEM_PROP-WERKS = '1000'.
    MEPOITEM_PROP-LGORT = '0032'.
    endif.
    this is the solution.
    best regards.
    maryam

  • Android, default install location does not have any effect

    I have Just5 Spacer 2 phone running Android 4.4.2 and since I can not root it (the only application I found was supposed to support it was SRS Root, but I only managed to get partial root through it) I thought I'd at least be able to set default install location for applications to external storage, but apparently, despite the fact that adb shows those changes I made, phone continues to install to internal storage.
    [dainis@arch platform-tools]$ ./adb shell pm set-install-location 2
    [dainis@arch platform-tools]$ ./adb shell pm get-install-location
    2[external]
    Any suggestions?

    By digging deeper and deeper I found a few posts/pages somewhere (didn't save sources for some reason) mentioning that this stopped working somewhere at around Gingerbread.
    Those who know - is that true?

  • BC4J UIX How To set the cursor in a field

    Hi,
    when i display an bc4j uix edit form, i would like to set the cursor in a field and highlight the entry.
    how con i do that
    Thanks
    Achim

    Hi Adam,
    sorry but ist is not working. i get an errormessage "Object doesn't support this property or method".
    What is wrong?
    here my sourcecode
    <HTML>
    <HEAD>
    <TITLE>MBO Signon Page</TITLE>
    <uix:styleSheet/>
    </HEAD>
    <BODY onload="form1.username.focus(); form1.username.select()">
    <uix:pageLayout>
    <%-- some code here --%>
    <%-- Main page contents go here --%>
    <uix:contents>
    <uix:header text="Login to Mentoring Back Office" >
    <uix:styledText text="Enter your user name and your password to login." />
    </uix:header>
    <uix:spacer width="20" height="10" ></uix:spacer>
    <uix:form name="form1" method="POST" destination="login.jsp">
         <uix:image source="/webapp/blaf/requiredicon_status.gif" />
         <uix:styledText text="Indicates Required Field" />
         <uix:spacer width="1" height="20" ></uix:spacer>
         <uix:tableLayout cellSpacing="5" cellPadding="5" >
         <uix:rowLayout hAlign="left" >
         <uix:spacer width="40" height="1" ></uix:spacer>
         <uix:styledText text="User Name:" />
              <uix:textInput
    id="username"
    name="username"
    text="jonte"
    required="yes" >
    </uix:textInput>
         <uix:formValue name="username" valueBinding="username" />
    <uix:image source="/webapp/blaf/requiredicon_status.gif" />
    </uix:rowLayout>
         <uix:rowLayout hAlign="left" width="25">
         <uix:spacer width="40" height="1" ></uix:spacer>
         <uix:styledText text="Password:" />
              <uix:textInput
    name="password"
    text="jonte"
    required="yes"
    columns="20"
    secret="true" >
    </uix:textInput>
         <uix:formValue name="password" valueBinding="password" />
         <uix:image source="/webapp/blaf/requiredicon_status.gif" />
    </uix:rowLayout>
         <uix:rowLayout hAlign="center">
         <uix:spacer width="40" height="1" ></uix:spacer>
         <uix:submitButton name="Login" text="Login" formName="form1" />
         <uix:resetButton text="Cancel" formName="from1" />
         </uix:rowLayout>
         </uix:tableLayout>
    </uix:form>
    </uix:contents>
    </uix:pageLayout>
    </BODY>
    </HTML>
    <jbo:ReleasePageResources releasemode="Stateful" />
    Thanks
    Achim

  • Setting project default file locations and a few random interface questions

    I apologize for the randomness of this post, but it seemed better than spamming a bunch of different posts in a short period of time.  I've been using Premiere Elements 9 for about 6 months now and there are a few little things that I'd like to tweak.
    I'd like to change the default file save location for a project.  I've got different projects in different folders and it seems like I should be able to set a default save location for each project.  All I've ever been able to find in the help is how to set the scratch folder, which is different.
    I'd like to change the default encoding preset for a project.  For example, I have a custom preset for mp4 under the mobile phone category.  It would be nice to have that be the default whenever I pick the mobile phone category.
    With birthdays and concerts and plays and all that stuff I have about 50 videos and a couple hundred large photos already.  Every time Premiere loads, it takes a few extra seconds to load up all of the thumbnails.  I hide all the videos and pictures on the Organize tab and save the project, but it never sticks.  Is this just impossible?
    Finally, every so often, the end-of-clip marker acts funny.  I don't know what the proper name for it is, but it is the thing under the mouse cursor in the picture below.  It used to automatically move on the time line as I added or deleted clips.  Somehow I clicked a button and it no longer does that.  After a week or so of not working, it goes back to automatically adjusting as I add and delete clips from the timeline and then it will break again.  Ideas?
    Also in the timeline, I now have this huge gap of nothingness on top of video 1, see picture.  My ocd says that Video1 and Audio 1 should be at the very top and the gap should be on the bottom.  Ideas?
    Thanks,
    Bob

    I kind of wish you'd have spread these questions out over a couple of posts so that we could answer each thoroughly. If I answer all of them in depth in a single post, this answer would be the size of one of my books! (which, by the way, contain many of the answers to these questions.)
    1. The default save location for your videos should be the last place you've saved your video to. So that should happen automatically. Although in my books I recommend that, whenever you start a new project, you create a new folder for it. This is good housekeeping and a good way to keep your tmp and render files in the same place on your drive, which has a number of advantages.
    2. You can't create a custom project preset. The only presets available are the ones Adobe provides. And, although they are pretty extensive, some non-traditional formats (like video from some mobile phones) are not well supported. You may be able to get it to work -- but it's usually a hybrid solution and, personally, if you plan to use your phone's video as your main video source, I'd recommend you look at another video editing program. Premiere Elements doesn't do the hybrid stuff well. It's ideally suited for video from traditional camcorders.
    3. The thumbnails you see when the program loads are not in your current project. At least not until you import them into your Project panel. That Media panel is merely a preview to what's in your Organizer catalog. As I explain in my book, it's usually best to ignore this panel until you really learn your way around the basics of this program. It's very confusing. Fortunately, it adds very little load time to the program itself -- regardless of how much time it seems to add.
    4. The thing in the illustration is the Work Area Bar. It's used to isolate a segment of your timeline for rendering, etc. Usually, it will shrink and grow as you add and remove video from your timeline. Unfortunately, there's a bug in version 9 and, if you manually change it once during a project, you'll have to manually change it for the rest of the time you work on the project. But, if you drag each end of the Work Area Bar to cover your entire timeline of videos, your project shouldn't misbehave.
    5. The "gap of nothingness" on your timeline is just room for you to add more audio and video tracks if you'd like to. It's a good thing to have! BTW, as I'm sure you know (and my books, once again, explain) you can toggle the tracks on your timeline so that they display as either compressed (as in your illustration) or wide open, which allows you to see your clips and control audio and video levels. Once again, this is a very good thing!
    Happy moviemaking.

  • Default file location when calling report from Forms 10G

    I've tried this in the reports forum, but it applies equally to forms I guess..
    Hi,
    I've managed to put together a routine for running a report from a 10G Form. In 6i I specified a "relative path" to my report name as follows:-
    "Run_Product(REPORTS, '..\Reports\myreportname', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, NULL); "
    In 10G I would like to just specify the report name, rather than the full file path. Can I specify a relative file path - or alternatively can I set the default report location in a configuration file?
    At the moment I'm having to specify something like:
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,
    'c:\oracle\systemname\reports\myreportname.RDF');
    I would like to just have:
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,
    'myreportname.RDF');
    Many thanks,
    Keith.

    Do you run your application on an application server?
    If so you should use the REPORTS_PATH environment variable (in windows registry entry).
    Alternatively you could use an environmentid in the reports.conf-file:
    <server version="10.1.2.0.2">
    <environment id="YOURID">
    <envVariable name="REPORTS_PATH" value="C:\......"/>
    </environment>
    You call the report with the parameter &envid=YOURID in the URL.

  • Setting Default values in portal form

    I have a portal Master/Detail Form. I want to set some of the detail block columns value to the value of a field in the master block.
    In the formattng option of the detail column, I tried setting default value to:
    p_session.get_value_as_varchar2(p_block_name=>'MASTER_BLOCK', p_attribute_name=>'A_CLASS_CD');
    and default value type to: function (I also tried expression). It compiles, but gives me an error when I ry running form. How can you set the default value (from the value of a differnt field)?

    HI,
    You can set the default value to value of a different field. The only way is to use javascript like onFocus.
    Thanks,
    Sharmila

  • Lightroom keeps changing default import location; how to set it once and for all?

    Hi all,
    I'm on a mac, and coming from iPhoto. After migrating to Lightroom, I made is so my photos imports from my camera into "/Pictures/LightroomMasters/year/month/day".Now, suddenly, I noticed that they end up in "/Pictures/year/month/day".
    I really want Lightroom to keep importing everything inside the "Lightroom Masters"-folder, without me clicking to that location everytime I attach my camera. But going through the Preferences, and Catalouge-settings, I can not find the equivalent of "Default import location". Is there such a setting? Or is Lightroom meant to remember where is imported to last, and keep on using that?
    Thanks in advance,
    Andreas

    It seems to remember the folder structure on my system. But I'm running Windows 7. I just tested it by inserting a memory card and importing the images on it, I don't connect cameras to my computer, to my E drive and to a folder named Pictures 2015. I had LR place these images in a sub-folder of that Picture 2015 with the date in the format of 20150201 and which these picture were taken on the 30th of January so the folder was 20150130. I then closed LR and reopened it and took some more shots around the house and then imported those. LR import dialog went right back to that E drive \Pictures 2015 folder and placed those newer images in a folder named 20150201.
    So it remembered which drive and which top level folder it was supposed to. Not sure it it would work with a secondary sub-folder under the Pictures 2015 folder.
    To be honest I rarely use the import from memory card feature of LR. I don't care for the naming conventions it offers. I do use the Adobe Photo Downloader applet that comes with PS Bridge as the naming convention in that creates sub-folders with just the month and day in this format 0201. I don't need the year tacked on to the front of that sub-folder name, although it can do that, as I store all my images by years to begin with. Then I import to LR from those folders the APD app creates.
    If you are using more than one camera it might remember for each camera so from now on it will go back to the right folder.

Maybe you are looking for