How do I place the cursor in a field programmatically?

In my application I have a sub-VI that pops up for user input. The field that the user has to fill in does not have the cursor in it by default. I would like the sub-VI to pop up with the cursor in the field that the user has to fill in. Is there a way to do that programmatically? Thanks for the help.

That did it. I was looking too deep for this one for it to be that simple. Thanks again for the help.

Similar Messages

  • How do I update the value of  a field programmatically

    I want to change a form field "modified_by" to the current sso
    user using wwctx_api.get_user before updating the record in the
    database, how is a good way to do it? p_session.set_value? not
    having much luck with that, I put it in before processesing the
    for and get this error when I hit QUERY
    Error: An unexpected error occurred: ORA-06502: PL/SQL: numeric
    or value error (WWV-16016)
    An unexpected error occurred: ORA-06502: PL/SQL: numeric or
    value error (WWV-16016)
    (WWV-00000)

    Hi,
    If you create a function to return wwctx_api.get_user you could
    call this inside an update trigger, you could put in an
    exception to return USER if there is an error, this would then
    work for users connected directly and users using Portal.
    Regards Michael
    e.g.
    CREATE OR REPLACE FUNCTION F_PORTAL_USER RETURN VARCHAR2 IS
         vRet VARCHAR2(50) := wwctx_api.get_user;
    BEGIN
         RETURN(vRet);
    EXCEPTION
         WHEN OTHERS THEN
              RETURN (USER);
    END F_PORTAL_USER;

  • How to  Place the Cursor at Specific Position with-in a Char Field ?

    Forms 4.5 ver.
    Sun Solaris / Citrix env.
    Char Field - Length 65434
    How Can I Place the Cursor at "Specific Location"
    with in a Field ?
    with GO_ITEM('field Name') I can place the Cursor at Specific Field.
    But, How Can I achieve to Place the Cursor at Specific
    Position within that Field ?
    I know, the starting position, length of string I want to hightlight with the Cursor.
    tried using :
    go_item('substr(field_name,position,length)') ;
    but didn't work !
    Is it possible ?
    Thanks, Peri

    The only cursor postion behavior that can be controled is the item property "Keep Position".
    The following is the text from the on-line help for item property "Keep Position"
    KEEP_POSITION Specifies whether the Keep Position property should be True or False. When Keep Position is True, the cursor returns to the same position it was in when it left the text item. When Keep Position is False, the cursor returns to the default position in the text item. Valid values are PROPERTY_TRUE and PROPERTY_FALSE.

  • How to make a screen field as selected when we place the cursor in the fiel

    Hi,
       I have a requirement like, needs to be automatically select a screen field value when i place the cursor in that field.
        The screen field value should be displayed in blue color as like we select the value using shift-end. when a new value is entered in that field, it should over-write the existing value.
         Any pointers would be appreciated.
    Thanks,
    Gopi.R

    Hi Gopi,
    you can look into some examples in transaction
    DWDM or BIBS
    Thanks,
    Krishan

  • How to display the link dynamically on placing the cursor on a field?

    Hello Experts,
    I have a requirement like, if i place the cursor on the prospect name in the details window of opportunity, prospects' email id should appear as a link. (Example: as tool tip appears when we place cursor on a field). I should be able to click on that email id to navigate from opportunity window to compose mail window.
    How can I achieve this functionality?
    Regards
    DNR Varma

    It's an interesting question.
    And I plan to write blog or wiki post on it.
    But right now out of time to design it in a beautiful big-post-style.
    So I'll just give you some ideas and later I'll publish detail scenario for this.
    1. First of all you need to put a javascript function in your view htm page and include jquery and cluetip in it too as described in mentioned blog.
    2. Then you need to create your own bsp element (tag) which will create a link with attributes onmouseover and rel since there is no standard element with such attributes. For this create your own bsp extension and copy bsp element Link from THTMLB bsp extension into it (enharite classes from thtmlb:link too). Then add two attributes 'rel' and 'onmouseover' to z-element and redefine DO_AT_BEGINNING method of element handler class:
    some problems with posting the code so [take a look at screenshot here|http://twitpic.com/7cp563].
    3. Then you need to implement chtmlb form iterator interface in some class. Good place is your view controller class. Put the IF_CHTMLB_FORM_ITERATOR on its interface tab. And implement the only method it has IF_CHTMLB_FORM_ITERATOR~RENDER_CELL_START (remember that this is a quick example so you need to adjust the code to your needs):
    also [take a look at another screenshot|http://twitpic.com/7cp5ot].
    4. Set chtmlb form iterator for your page.
    <%@page language="abap" %>
    <%@extension name="thtmlb" prefix="thtmlb" %>
    <%@extension name="chtmlb" prefix="chtmlb" %>
    <%@extension name="bsp" prefix="bsp" %>
    //!!! here must be jquery and cluetip includes with definition of CallTooltip function
    <%
    * Form iterator
    cl_chtmlb_config=>set_iterator( controller ). //!!! here we set iterator for chtmlb form
    %>
    <chtmlb:config mode = "RUNTIME"
                  xml  = "<%= controller->configuration_descr->get_config_data( ) %>" />
    That's it!
    Hope this will help you.

  • Place the cursor in certain indicator

    Hello all,
    I want to ask whether anyone of you knows how to place the cursor of the mouse in certain indicator automatically when the program starts so that when I read, in my case 2D Barcode, it must be displayed in this certain indicator automatically.
    Thank you in advance,
    I G. 
    Solved!
    Go to Solution.

    Solved. I was using an indicator instead of control.
    Thanks!
    And that doesnt mean you can mark this as accepted solution.
    (Just kidding  )

  • How do I stop the cursor from having a mind of its own?

    I just received this computer T400.  A mac user wswitching over to pc - not famliar with the land.  I am using a notebook and the cursor clicks on its own when I let it rest and then transports me to whatever information/page that it happens to rest upon.  needles to say this is very tiring.  I have tried to go to the help section and there is not informaiton about how to stop this from happening.  There is informaiton for mouse control.  The information I found on the cursor only spoke to the rate of blinking.
    also, I would like to incluse word in my start up programs and can't figure out how to do that.
    the cursor information would be most useful to me at the moment.  Thank you.

    onlinebabe, welcome to the forum,
    you probably need to turn off or adjust the sensitivity of tapping in the UltraNav Touchpad properties. Go to Control Panel > Mouse and select the UltraNav tab and adjust the settings.
    Do you mean that you want word to start automatically when windows starts? Right click in an empty area of the task bar and choose properties > Start Menu > Customise and add Word to your Autostarts folder.
    Hope this helps
    Message Edited by andyP on 10-11-2008 08:38 PM
    Andy  ______________________________________
    Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
    Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
      Deutsche Community     Comunidad en Español    English Community Русскоязычное Сообщество
    PepperonI blog 

  • How do I stop the cursor from spontaneously going to Line one space one in Notes?

    How do I stop the cursor from spontaneously going to Line one Space one in Notes?
    I am currently working on a MacBook Pro connected by Wi-Fi or Blue Tooth to my 16GB iPhone 4S; and supposedly to iCloud.  I install every upgrade on each computer till the computer can take no more.  My current MacBook Pro continues to accept upgrades.
    I have been dealing with Address Book foibles since it first came out and the problems seem to get worse rather than resolved.
    Problem #1: When a Company Name is checked to take precedence over a personal name the record/file does not surface during searches.  This has happened for years on all my Macs, including most recently my MacBook Pro and its predecessor PowerBook G4.  How do I fix this?
    Problem #2: The Printing Defaults for Address Book Files are not useful and I can find no way to change them to my own preferences once and for all.  I must reset them for every file every time I choose to print a file.  Is there some way to set the defaults to MY preferences and only occasionally reset them according to my needs?
    Problem #3:  When entering information in "Notes" the cursor randomly and spontaneously goes to line one space one as I am entering information.  How do I stop this?  Then when I cut and paste the misplaced text to where it belongs it may or may not return to once again begin at line one space one and following.
    Problem #4:  When Printing a Record/File from Address Book I would like to use the whole 8.5" x 11" page.  Instead it prints on an 8.5" x 11" page in three columns.  Is there a way to format the output?  I have not found one and the Mac 'Geniuses' do not know of any.
    Problem #5:  Subsequent to one of the upgrades in the last year or so, the search feature does not work.  (I have had this computer since May 2011).  No matter what I type in the search line I am stuck in the 'All' Directory.  To find anyone or anything I must scroll through the address book manually.  Is there a fix to this?
    Problem #6:  Sometimes, when I try to sync my MacBook Pro and my iPhone, the records simply duplicate.  How d I undo this without manually deleting the duplicates?
    Problem #7:  Does anyone know of a third party Address-Book-type App that is better than the Apple version and can easily import over 3000 contacts information?

    '''I had the same problem when I updated to firefox 4. This is how i fixed it:'''
    The problem seems to be caused by the 'New Tab Homepage' add on. So:
    # Disable or remove the 'New Tab Homepage' add on and restart firefox.
    # Download and install the firefox add on called 'NewTabURL' and restart firefox.
    # Click on the Options button for NewTabURL and uncheck 'Select location bar after loading new tab'
    # Under the 'Default URL for new tabs' heading, choose 'Home Page'
    # Click on the Save button.
    Hopefully, problem solved!

  • How can we take the cursor to a different sub-screen from the BADI?

    Hi,
    We have to do some validation on Header, Operation and Relationship of any work order (IW31, IW32). We have checked that validations can be done at BADI WORKORDER_UPDATE in the method u2018AT_SAVEu2019.  But user wants us to take the Cursor back to the field and screen due to which the error is coming. How can we take the cursor to a different sub-screen from the BADI?
    Thanks in Advance,
    Pranav

    You 'ran out of room' because you tried to put your entire question into what is the 'Topic line' of the post.
    This is a fairly common error, as a scan of the topic list will show, and likely due to a design flaw in the layout of the composition page.
    Most posters who make this error do so on their first post, and are able to avoid a similar misstep on their second and subsequent questions.
    Regards,
    Barry

  • How can I get the cursor's position in a opened file and display a menu?

    Hello,
    I want to make a program by which I will be able to display a panel/pops up menu at the corsor's current position, (In any text/doc file or in the desktop, we can display a menu by right click of the mouse.) Now I want my program to do the same task.
    More clearly-
    1. First I would save some words or sentences in a file(aa.txt).
    2. Then I would open another text file/ a word/ excel/ or any other editor( bb.txt / cc.doc / dd.xls / ee.html ).
    3. While editing or writing something in the opened file, if I click the right mouse button/ press a key (ctrl+space), a menu will appear containing the sentences I saved in the file(aa.txt) previously.
    My program will tell me the cursor's position in bb.txt / cc.doc / dd.xls / ee.html that i opened. And display a menu. my problem is not reading / writing in a file.
    My problem is how can I get the cursor's position in a opened file display a menu at that position by a mouse/key action*.
    Would you please help me on this regard.
    Thanks

    DrClap wrote:
    I think the OP wants to start up an application like MS Word and then operate it from a Java program.Doesn't The Monkey's Paw do that? What a second, according to Wikipedia:
    [http://en.wikipedia.org/wiki/The_Monkey%27s_Paw]
    <quote>
    ...the paw of a dead monkey is a talisman that grants its possessor three wishes, but the wishes come with an enormous price.
    The moral of the story is contained in this description of the paw: "It had a spell put on it by an old fakir," said the sergeant-major, "a very holy man. He wanted to show that fate ruled people's lives, and that those who interfered with it did so to their sorrow."
    </quote>
    So I guess that a non-sequitor ... or is it?

  • How do i change the cursor on a jtable header when clicked for sorting?

    here is my question, how do i change the cursor on a jtable header when I click the header for sorting?
    I think it is suppose to be in the fragment of code where the header listener is implemented for sorting, but I'm not quite sure what is the exact component that holds everything so that i can change the cursor...
    below is what I've tried, but it doesn't seem to work... thank you
    public void addMouseListenerToHeaderInTable(JTable table) {
    final TableSorter sorter = this;
    final JTable tableView = table;
    tableView.setColumnSelectionAllowed(false);
    MouseAdapter listMouseListener = new
    MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    TableColumnModel columnModel =
    tableView.getColumnModel();
    int viewColumn =
    columnModel.getColumnIndexAtX(e.getX());
    int column =
    tableView.convertColumnIndexToModel
    (viewColumn);
    System.out.println("column = "+column);
    if (e.getClickCount() == 1 && column != -1) {
    System.out.println("Sorting ...");
    Cursor oldCursor =
    tableView.getRootPane().getCursor();
    System.out.println("oldCursor.getType()
    = "+oldCursor.getType());
    if (oldCursor.getType() !=
    Cursor.WAIT_CURSOR){
    JComponent parentPane =
    tableView.getRootPane();
    parentPane.getContentPane().setCursor
    (new Cursor(Cursor.WAIT_CURSOR));
    parentPane.setCursor(new Cursor
    (Cursor.WAIT_CURSOR));
    Cursor newCursor =
    parentPane.getCursor();
    System.out.println("newCursor.getType
    () = "+newCursor.getType());
    int shiftPressed = e.getModifiers(
    &InputEvent.SHIFT_MASK;
    boolean ascending = (shiftPressed == 0);
    //System.out.println("tableView.getRootPane()
    is "+tableView.getRootPane().getRootPane());
    sorter.sortByColumn(column, ascending);
    tableView.getRootPane().setCursor(new Cursor
    (Cursor.DEFAULT_CURSOR));
    //System.out.println("Done sorting");
    JTableHeader th = tableView.getTableHeader();
    th.addMouseListener(listMouseListener);
    }

    Hi,
    Try setting the cursor for the table header.
    table.getHeader().setCursor(Wait_Cursor);
    Bala.

  • 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

  • Stupid question: how do i get the cursor to move in DWCS4???

    yes, dumb question i know. i'm not a web guy at all but have built a couple of sites years ago using an older version of DW. however, i just downloaded the trial of CS4 and everwhere i read it just says simply "place the cursor where you want the text" or object on the page. however, my cursor will not leave the upper left corner no matter what i do. clearly im doing something stupid. it cant possibly be that hard? help?

    The "frames" you're referring to are Absolutely Positioned Divs. "Frames" are a very different and out-of-favour tool.
    The page is constructed entirely of what used to be called Layers - now called Absolutely Positioned Divs or APDivs for short (weird name but technically more accurate and much less confusing trying to explain to newbies the difference between Layers in DW and Layers in Photoshop and Illustrator).
    If all you want to do is move elements arounds on that page, go to Window > AP Elements (F2) and you'll see your APDivs listed in the AP Div panel.
    Click on one (or all) of them and drag as desired.
    Note: AP Divs are generally a poor method for page layout for many reasons but they'll probably be OK as a very quick and dirty solution for the limited application that you have in mind.

  • After hitting Command-F, I now have to place the cursor in the text box!

    Since I upgraded to 10.5.7, when I search using Command-F, the cursor no longer defaults to inside the text entry field in the search window. After it opens, I still have to place the cursor before typing. Is there a way to change this? Why would Apple add an extra step in what should be a simple operation?

    I have had this problem; but while trying to fix another problem, I reset my preferences for Firefox and it fixed this problem as well. To reset preferences, follow this link: http://support.mozilla.com/en-US/kb/Resetting%20preferences

  • Premier After Effects... How does one places the whole movie clip into AF?

    After years of using Premiere, I’m looking at using After Effects. Premiere does most of what I need (I don’t need moving graphics and titles) but the masking and rotoscoping seems to be better in After Effects. I’ve started a great video by Tom Green at school. This is probably silly question- I don’t understand is how does one places the whole movie clip into AF? I only see 30 seconds or so of the 5 minute clip on the timeline in AF.

    Ahh, thanks. I simply add more minutes (the length of the clip) into the "new composition".
    A new problem: When I try a dynamic link with premiere AE says “Failed to connect to adobe Premiere Pro Dynamic Link”, but PP will link with AE. I just installed AF last week. Do I need to uninstall and reinstall them (along with the rest of the Creative Suite)?

Maybe you are looking for