Cursor in required position

Hi experts,
My form is opening in enter query mode what i want is after performing the required action my cursor will go to a perticular item.
suppose after executing one enquiry about a empno i want that my cursor will go to join_date item.
can you please tell me in which trigger i can write.
go_item(:emp.join_date);
Regards
rajat

Hello,
Create a block-level KEY-EXEQRY trigger with the following:
Execute_Query ;
If :SYSTEM.MODE != 'ENTER-QUERY' Then
   go_item(:emp.join_date);
End if ;Francois

Similar Messages

  • 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 place the regions in required positions

    Hi
    I have a requirement like below to place the regions
    Region_Seq_10 Region_Seq_20
    Region_Seq_30
    Region_Seq_40 Region_Seq_50
    Region_Seq_60
    How Can I design exactly above mentione way of positioning the regions.
    Regards
    Kiran Akkiraju

    Region_Seq_10, 20 and 30 will need to be in "Display Point: Page Template Body (1)" with Region_Seq_10, 30 in Column 1 and Region_Seq_20 in Column 2
    Region_Seq_40, 50 and 60 will need to be in "Display Point: Page Template Body (2)" with Region_Seq_40, 60 in Column 1 and Region_Seq_50 in Column 2

  • Return the cursor to original position in ABAP List

    There is an interactive List report, clicking on the lines in the main report leads to a secondary report and clicking on the line in secondary report gives a pop up screen. Depnding upon the selection made in pop up screen the data in the seconary report is changed and it again displays the secondary report with the changes but now the cursor is at the line 1 of the seconary report.
    I am unable to set the cursor to the original position in the seconary screen from where the pop up screen was called.
    I have tried to position the curosr using SET CURSOR but it does not help are there any other techniques for setting the curosr or what could have gone in my report which is not allowing me to position the curosr correctly.

    HI Mike
    Thanks for the reply. When I apply the logic to reposition the cursor in the scale range event only one cursor is moving to the zoomed in position. The other cursor remains out of  graph scale. I tried to repeat the same logc but it didn't work.  Could you please tell me how to get the 2nd cursor also in to the scale range. Sorry i'm fairly new to labview. I have attached the pic of what I tried.  Thankyou in advance
    Regards
    Pratheek
    Attachments:
    Capture.PNG ‏18 KB

  • Utilizing the cursor's current position in an action?

    I had hoped this would be an easy thing to achieve but I have yet to find a solution after searching for many hours. Basically I want to use the current position of the cursor as a variable in an action, rather than the exact XY coordinates as recorded during the making of the action. More specifically I want to bucket fill a particular part of the image based on where my mouse is at the time of executing the action.
    Any ideas? And with something this simple, would I even need to use a script? Any kind of help would be greatly appreciated!

    Hello there,
    I'm also facing the same problem...
    Have you found any solution or work-around yet?
    The code i'm using is the following:
    IS
    CURSOR cur_autonum
    IS
    SELECT an_nr + 1
    FROM autonum
    WHERE an_kode ='ADV'
    FOR UPDATE OF an_nr NOWAIT
    RECORD_NOT_FOUND EXCEPTION;
    RECORD_IS_LOCKED EXCEPTION;
    PRAGMA EXCEPTION_INIT(RECORD_IS_LOCKED,-54);
    BEGIN
    OPEN cur_autonum;
    FETCH cur_autonum INTO :ptperson.pe_nr;
    IF cur_autonum%FOUND
    THEN
    UPDATE autonum
    SET an_nr = :ptperson.pe_nr
    WHERE CURRENT OF cur_autonum;
    CLOSE cur_autonum;
    ELSE
         CLOSE cur_autonum;
         RAISE RECORD_NOT_FOUND;
    END IF;
    EXCEPTION
    WHEN RECORD_NOT_FOUND
    THEN
    :global.rc := fnc_alert(118);
    clear_record;
    previous_record;
    RAISE Form_Trigger_Failure;
    WHEN RECORD_IS_LOCKED
    THEN
    IF cur_autonum%ISOPEN
    THEN
    CLOSE cur_autonum;     
    END IF;
    :global.rc := fnc_alert(119);
    clear_record;
    previous_record;
    RAISE Form_Trigger_Failure;
    WHEN OTHERS
    THEN
    IF cur_autonum%ISOPEN
    THEN
    CLOSE cur_autonum;     
    END IF;
    RAISE;
    END;
    greetings,
    Emiel

  • Moving cursor to Zoomed Position in waveform graph

    Hello
    I have 2 cursors in my waveform graph and I would like to have the cursors move to the zoomed in position of the graph when I zoom in or out of the graph. Could some please tell me how to do it. Thankyou in advance
    Regards
    Pratheek
    Solved!
    Go to Solution.
    Attachments:
    Failure Device.vi ‏89 KB

    HI Mike
    Thanks for the reply. When I apply the logic to reposition the cursor in the scale range event only one cursor is moving to the zoomed in position. The other cursor remains out of  graph scale. I tried to repeat the same logc but it didn't work.  Could you please tell me how to get the 2nd cursor also in to the scale range. Sorry i'm fairly new to labview. I have attached the pic of what I tried.  Thankyou in advance
    Regards
    Pratheek
    Attachments:
    Capture.PNG ‏18 KB

  • Cursor to mouse position

    I am wondering if there is a function or way that allows one to record the position of your mouse on the graph.  Currently I'm trying to reposition the X and Y cursors to where I double click on the graph.  I know how to set the position of the cursors using SetPostion().  The problem I'm encountering is that I can record the position mouse using OnMouseUp() but the coordinates do not relate to the scale of my graph.  Does anyone have any suggestions for me?  Thanks.

    R0B3RT,
    You didn't say what programming language you were using in your program, so I can't provide a specific example of doing this.  But if you are using the CWGraph ActiveX Control, you can use KB 11H7EH1J: Using the ComponentWorks Graph Cursor Events.  If you are using one of the .NET controls, let me know which language you are programming in, and I'll be able to help more.
    Josh W.
    National Instruments
    Applications Engineer
    Josh W.
    Certified TestStand Architect
    Formerly blue

  • How do I pgm place a cursor at particular position within a UITextField?

    Does anyone know how to programmatically place the cursor to a specific position
    within a UITextField; for example, within the parenthesis (...) of a telephone number?
    Ric.

    If you mean, for instance, after you type in ww.google.com and you needto come back and correct that to www... You press down your finger anywhere in the textfield until you see a big circle come up and then you drag back to the location of interest.

  • Move resultset's cursor to last position

    Hi, i want to say, if it is possible, what can i do to move the curser of resultset before the last position, because i want to read che last record.
    Thanks and excuse me for my english.
    Daniele.

    Some thoughts:
    1) why do you call next() before last() - it should not be necessary.
    2) you should test the return valiue of last() - if your resultset is empty (no rows retrieved), you get false, and this means you are not on a valid row, so getString() would fail.
    3) Where do you catch the exception - show it to us.
    What do you mean with: "i receice an exception: null" ?
    - What kind of exception? A NullPointerException?
    - print out e.printStackTrace() and post it.
    I assume your driver doesn't support this feature. Which driver is it?

  • Set cursor in specific position

    Hi everyone,
    I have a simple report which display people's name that are arrange alphabetically using the WRITE statement. The names are separated according to the starting letter group and are displayed in a separate page.
    I also have push buttons (GUI Status) above the report display
    Example:
    [ A - C ]        [ D - F ]      <b> [ G - I ]</b>   and so on.. <----
    These are push buttons
    Group A-C                            Page 1 of 3
    Alvin
    Aaron
    Barry
    Calvin
    .. and so on...
    Group D-F                            Page 2 of 3
    Dionne
    Evans
    Elliot
    Franky
    Francis
    .. and so on...
    <b>Group G-I</b>                            Page 3 of 3
    Gerald
    Harold
    Irving
    .. and so on...
    My question is: How will my cursor go to the title 'Group G-I'  when I press the push button [ G - I ]?
    There are hundreds of names being displayed and you cannot see the title 'Group G-I'  in the screen the moment I run the program unless you press page down. It is in the 3rd page. The problem is the cursor does not go to this title in page 3 when I press the push button.
    Thank you in advance!

    use this
    at user-conmmand.
    case sy-ucomm.
    when 'FIRST'.
    SCROLL LIST TO PAGE 1.
    endcase.
    regards
    shiba dutta

  • My cursor is off position

    When i play any game on facebook, my cursor is about 1/2" or so off, meaning i have to click below what i want to click on to hit where it should be originally.  It has been going on for 3 weeks and i have made sure i am running latest version, cleared cache, uninstalled chrome, and flash player and then reinstalled again.  I am getting so frustrated, plz help.  If it helps, the games work fine on IE just not chrome or dragon.  It only works right if i am in fullscreen mode on chrome, forgot to add that, ty

    Hi @gardenia1348 ,
    Thank you for visiting the HP Support Forums and Welcome. I have read about your HP Notebook and a frozen cursor on the screen. Try performing a hard reset.
    When performing a hard reset please note remove any and all USB devices. Disconnect all non-essential devices.
    Did you install any new software?
    Here is a link to Touchpad troubleshooting. The section marked TouchPad properties page on the left side has a restore defaults. Select that button if available.
    You can do a system restore. System restore will help if something automatically updated and did not go well on the Notebook.
    I would be happy to assist if needed. How Do I Find My Model Number or Product Number?
    Please let me know.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Return cursor help Required-urgent

    Hi All
    I need to show 2 column list which is a formula calculation
    these now i am getting in dbms output
    but i need return cursor , please help
    ITEM RATIO
    asd v_asd
    zyx v_zyx
    afd v_afd
    xcv v_xcv
    ITEM RATIO
    asd 23.90
    zyx 24.6
    afd 43.67
    xcv 78.67
    Regards,

    Select the variables over dual in Union query under a REF CURSOR.
    Like
    OPEN RefCursor FOR
    SELECT 'asd' col1, v_asd col2 FROM Dual
    UNION
    SELECT 'zyx', v_zyx FROM Dual
    ....

  • Flashing Typing Cursor out of position when typing in mac mail.

    Just recently when I type in mac mail and go back in to edit a bit of text already written the cursor is mis aligned.
    The cursor is 1 to 2 characters out.
    In other words if I try to put my cursor at the end of a word the cursor is 1 to 2 character to the left, becomes very awkward when moving around using arrow keys.
    Any ideas?

    Hi trentfromsa,
    Welcome to the Apple Support Communities!
    I understand that the cursor in Mail is not behaving as you would expect. To troubleshoot, I would first suggest forcing the Mail application to quit and test the cursor after opening Mail fresh. 
    OS X: How to quit an unresponsive application using Force Quit - Apple Support
    Best regards,
    Joe

  • Cursor positioning in table control: marking content of a field

    Hello everybody,
    I use a table-control for data input. For fast data input, my customers need dynamic positioning of the cursor. I'm using the set cursor field ... line ... statement and it works fine, except for one problem with a large text-field:
    Is it possible to set the cursor in a field plus mark all the content of the field? The behaviour, i'm looking for is that any input in the field will replace the existing content. Is there any other option?
    Thank you for any suggestions, regards, Kathrin!

    So you want dynamic cursor positioning within a table control. Take a look at FM SCROLLING_IN_TABLE and demo program DEMO_DYNPRO_TABCONT_LOOP. If this does not address your requirements the you can do it manually as follows:
    For example, your internal table has 30 rows, your table control displays 10 rows (value of sy-loopc) at one time. The value of <tabctrl>-top_line contains 11, meaning you are at the second page of table control. Your cursor is at 12th row and now on pressing ENTER, you want the cursor to be positioned at 13th row.
    In your PAI, issue the statement GET CURSOR LINE <lineno>. This will give you the current cursor position in the table control with reference to the top row currently displayed. So the value of <linno> will be 2.
    In your PBO, calculate the next line no to position your cursor into. This can be done by the formula:
      next_line = <tabctrl>-TOP_LINE + <linno> - 1.
    Then issue the statement SET CURSOR FIELD <field_name> LINE <next_line>.
    Hope this helps.
    Regards
    Message was edited by: Shehryar Khan

  • Position Cursor on a specific SO line in VA01 / 02

    Hi,
      I have a requirement to do some validation in the User Exit, SAVE_DOC_PREPARE for VA01 / 02. If there is a Error, I want the cursor to be positioned on the specific line item which had this error. Please note the above exit gets called the user presses the 'Save' buttn, so this can happen from any screen.
    Regards,
    SG..

    why don't you do the same thing with incompletion log procedure...system will take the user to that particular field and he can proceed with 'save' option in both VA01/02.
    Reward Points if it helps,
    Regards,
    N

Maybe you are looking for