Cursor in a perticular field

Hi experts,
I need to set cursor in a perticular field after a button click event,
How can I do that. PLease explain me in detail.
If possible provide me with code.
Thanks,
Points are sure.

Hi,
you can do it like this in the wdDoInit():
  IWDInputField input = (IWDInputField)view.getElement("<IDName>");
  input.requestFocus();
/code]
or like this somewhere else:
[code]
IWDAttributeInfo attribute = wdContext.nodeV_Data().getNodeInfo().getAttribute(IPrivateNameView.IV_DataElement.FIELD);
          wdThis.wdGetAPI().requestFocus(wdContext.currentV_DataElement(), attribute);     
Regards,
Dennis

Similar Messages

  • How to set cursor in perticular field Table Maintence generator?

    Hi
    All
    I have created a table with 2 fields  Start_date and End_date. Now my requirement is i have to validate the both date field as Start_Date must be LESS than or EQUAL to End_Date. In table maintenance maintenance generator i have created a event VALIDATE_DATE in event 21. Its validating perfectly. The issue is after the ERROR message the Cursor is going to the key field. I want to set the cursor at End_Date field.
    I used
    data:ly_pos type i.
    IF NOT start_date LE end_date.
        SET CURSOR FIELD 'TABLE_NAME-END_DATE' LINE sy-linno OFFSET lv_pos.
        MESSAGE exxx(MsgClass).
    ENDIF.
    Its working for the FIRST time i am entering the new data. Next time the cursor going to the KEY field.  I have been asked not to write code in SE80. Anyhow i have to set the cursor in table maintenance maintenance generator event.
    Can anybody help?

    Hi Sourav,
    Please follow the below method:
    Go to Maintainance Screen (where you want the cursor setting). Goto Status - > Remember the screen name -> Double click on Program name.. Open Object list and expant Screen Tree -> double click on the same screen Number -> Go to its first tab attributs -> Change Mode -> Do F4 on Cursor Position field -> Choose the field where you want the cursor.
    But this way will always set the cursor at the HardCoded Field Name.
    Thanks,
    Preyansh

  • Populating the screen field when the cursor moves to that field

    hi every one,
    I want to populate the screen field(MODULE POOL) When the cursor moves to that field.
    So can any one help me out with this.
    EXAMPLE..
    I want to populate 'S10_TOT_PRICE' (Total Price). When the fields like 'S10_PIECES' (Number of Pieces) will be entered. I want to populate 'S10_TOT_PRICE'  without pressing any button on the screen nor when enter is hit. When the field 'S10_PIECES''  will be entered with some value and the cursor moves to 'S10_TOT_PRICE' . The Total Price field should be populated. Please help me out with this.
    THANKS & REGARDS.
    Mahanta.
    POINTS WILL BE REWARDED.

    Sorry but look at this SAP documentation <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/54/0608162d0711d295520000e8353423/frameset.htm">User Actions on Screens</a>
    Extract :
    <i>User Actions on Screens
    There are various ways in which users can interact with screens.
    Filling Input Fields
    Users can enter values in any input field on the screen, or change the value using the mouse, in the case of radio buttons and checkboxes. The contents are placed in the corresponding screen field. Filling an input field does not normally trigger the PAI event. Exceptions to this are Checkboxes and Radio Buttons with Function Codes and input fields with Drop Down Boxes.</i>
    So, i fear that you cannot "take hand" when user fill a numerical field to perform calculations and update the screen.
    Regards

  • How to move cursor to a particular field in a form when the form opens

    Hi All,
    Using Forms Personalization how to move the cursor to a particular field in a form when the form opens.We are using Oracle Applications 11.5.10.2
    Please let me know as soon as possible.
    Thanks,
    --John.                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi Satya,
    Try the following
    Open the forms personalization window
    Seq: 10
    description : Move cursor
    Level : Function
    On Condition Tab-
    Trigger Event : when-new-item-instance
    Trigger Object:- (The field on which the cursor is appearing now when you open the form ) for eg : If I am working on a vendor Master form in that case it would be -VNDR.VENDOR_NAME_MIR.
    Processing Mode : Both
    Context:
    whatever context you want to do it respoansibility level or user level.
    On the Actions Tab
    Seq: 1
    Type: Bulletin
    Bulletin type : GO_ITEM
    Argument : The field to which you want to navigate to. (In my case I want to navigate to Alternate name on the Vendor master form so it would be VNDR.VENDOR_NAME_ALT_MIR).
    see if it works for you.
    cheers,
    Ankur

  • How to put cursor in a text field

    hi,
    I have a text field in my jsf page.By default I want to put the cursor into this text field.when a letter is entered into this text field,the data table below this text field must change depending upon the value entered into the text field.After this change also,the cursor must be in the same text field.
    how it is possible.
    when I entered any letter in this field,there is a call to the server.the cursor must be in that textfield after the call.

    Use DOM+JS.
    With element.focus() you can set the focus on the desired element.
    With the 'onkeypress' attribute you can execute some piece of Javascript on every key press, for example submitting the form or doing an AJAX request.

  • Number of entries in the internal table for perticular field value

    hi All,
    Is this possible to get the count of records from the internal table for a perticular field value.
    currently my requirement is to get the entries from the internal table which does not have two records for perticular field value (say a = 123) whose status is active (say b = 'X').
    also suggets should use LOOP or DELETE or DESCRIBE for a internal table to ful fill this requirement.
    Thanks in advance.
    Pradeep

    Try like this..
    Create another table itab2 with same structure as itab1 & move the contents of itab1 to itab2
    ITAB2[] = ITAB1[].
    Then delete entries from itab2
    Delete itab2 whete a = '123' and b = 'X'
    Then use Describe statement to get the no of entries
    Describe table itab2 lines v_lines.
    Hope this helps...

  • Hw to find the table name of the perticular field is stored in db,usingFM

    Dear all,
    I need to find out the table name of the perticular field is storing in database using FM (note: using Function Module or any standard program , not manually like press F1 -> technicall setting etc.. .) 
    [ Exmple: Field: "MATNR" is stored in table : MARA, so i need the program/FM  to findout MATNR is stoed in MARA table ]
    i need this  FM for update values of  material master ( mm01 ) stored in different warehouse using module pool program.
    it's very urgent , please send me reply asap.
    thanks,
    best regards
    srinivas

    hi Srinivas,
    Please use the following logic:
    types:
        begin of t_find,
           field(40),
        end of t_find.
    data:
        lt_find  type table of t_find,
        ls_find  type          t_find,
        lt_found type table of RSFINDLST.
    ls_find-field = 'MATNR'.
    append ls_find to lt_find.
    CALL FUNCTION 'RS_EU_CROSSREF'
    EXPORTING
       i_find_obj_cls                    = 'DTEL'
       I_SCOPE_OBJ_CLS                    = 'TABL'
       NO_DIALOG                          = 'X'
    TABLES
       I_FINDSTRINGS                      = lt_find
       O_FOUNDS                           = lt_found
    EXCEPTIONS
       NOT_EXECUTED                       = 1
       NOT_FOUND                          = 2
       ILLEGAL_OBJECT                     = 3
       NO_CROSS_FOR_THIS_OBJECT           = 4
       BATCH                              = 5
       BATCHJOB_ERROR                     = 6
       WRONG_TYPE                         = 7
       OBJECT_NOT_EXIST                   = 8
       OTHERS                             = 9
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    The table lt_found has the details for the tables having MATNR as a field; field lt_found-object will have the table names.
    Hope this helps,
    Sajan Joseph.

  • Table Control - Cursor placed on same field

    Hi,
       I am facing one problem in a User defined Screen that having Table control.
       I written some validations for each and every field in Screen including Table control.
       But each & every time i am pressing Enter , the cursor is going to first field in the screen . I want to restrict this one...i want to be cursor on the field which i entered value at that time or next navigation field.
       How i can achieve this...cursor should stay on the same field , it should not go to first field.
       Pls give ur suggestions...
    Thanks in Advance,
    Best Regards,
    pavan.

    Hello Pavan,
    This is the first time I'm coming across this problem and I find it quite peculiar. Anyways, I can think of one option that you can try out.
    Use the option GET CURSOR FIELD to get the cursor in the PAI event and then use the SET CURSOR FIELD statement in the PBO to set the cursor to the appropriate field.
    Regards,
    Anand Mandalika.

  • SET CURSOR in to commando field

    Hi!
    I wont set cursor in to commando field (the truncation field eg: /nSE80).
    Is it possible?
    I have tried it with SET CURSER FIELD u2018DUMMYu2019 but I donu2019t now the technical name of this field.
    Thanks
    Hermann

    hi
    even i did one table control.
    like i create the new data.
    i type some value in the table control line which in turn is the work area.
    say after one record i press enter.
    then the ok_code will have the previous value. i.e. if ok_code for the create new is say &CRE1. then after typing the data in the record the value ok_code will be &CRE1 only.
    so for that either you have to read the record st in some other internal table and flag is set when user presses the enter.
    say if the user presses the enter many times then modify the other internal tables.
    i suggest if you work with flag and internal table concept then your Table control will not change in GRAY.
    if you have any doubt then i could share with you my code as well because my problem solved like this only.
    thanks
    ekta

  • Positioning cursor in editable text-field

    It is almost impossible to position the cursor in a text-field. Even though I have very thin finger it takes me more than two tries to position the cursor. Would be nice if on a future PlayBook-update the behaviour of text-selection and cursor-positioning would be improved. Works much better on Android-devices (okey, they often have a scrollball) and iPhone.
    Check out my apps in the BlackBerry World
    Visit my developer blogs /dev/alopix and /home/alopix
    BBM Channel: C0047B612

    i dont have that issue with my fat fingers anymore with some practice. are you lightly touching or mashing while you select? i found mashing to make it less accurate. remember it is the first part that touches that makes the selection and not the top of your finger or thumb.
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • How to programmatically move the cursor to the "To" field of a new AppointmentItem?

    I need to move the cursor to the "To" field of all new AppointmentItems which are created through my Outlook Addin. How I can achieve this?
    Thanks in advance.
    Thanks Prasad

    Hello Prasad,
    The Outlook object model doesn't provide anything for that. You need to use Windows API functions or use
    Accessibility API to set the cursor programmatically.

  • How position the cursor in selected screen field insted of defualt field

    Hi All,
    Can you pls let me know , how to position the cursor in selected selection-screen filed. My requirement is i have 3 selection-screen fields, By default cursor is positioned on field screen field, but i want the cursor to be positioned at 3rd screen field to enter input, i want to do this coz i am filling first 2 screen fields with default values, so i need to position the cursor at 3 rd screen filed. let me know if it is possible to achieve this.
    Thanks in advance.
    Regards
    Vishal

    You will need to point it to the LOW field.
    report zrich_0001.
    tables: reguh.
    select-options :
    s_bukrs for REGUH-ZBUKR default 'US10',
    s_laufd for REGUH-LAUFD default sy-datum,
    S_LAUFI FOR REGUH-LAUFI .
    at selection-screen output.
    <b>set cursor field 'S_LAUFI-LOW'.</b>
    Welcome to SDN!  PLease be sure to award points for helpful answer and mark you post as solved when solved completely.  Thanks.
    Regards,
    Rich Heilman

  • Set Cursor to the next field after scanning first field in RF programming

    Hi,
    I have requirement where i need to set the cursor to the second field i.e. Purchase order after scanning the first field i.e. Material
    in RF programming with out user interaction.
    I kept the material visible length to 6 chars instead of 18 on the screen as user is having material length is occupying 6 chars.
    Thanks in advance.
    Regards,
    Suvarchala

    Hi Group,
    Finally I got the solution for this, here is the stuff we need to do:
    ***********04/03/2010
    *----Get the current cell
                CALL METHOD wa_grid->get_current_cell
                  IMPORTING
                    es_col_id = li_col
                    es_row_no = li_rows.
    **--Get Scroll Position
                CALL METHOD wa_grid->get_scroll_info_via_id
                  IMPORTING
                    es_col_info = ls_col
                    es_row_no   = ls_num.
    ***********04/03/2010
                CALL METHOD wa_grid->refresh_table_display.
               CLEAR: wa_profile1.     ", wa_pro_new.
    ********04/03/2010
    *--Set Scroll Position
                CALL METHOD wa_grid->set_scroll_info_via_id
                  EXPORTING
                    is_col_info = ls_col
                    is_row_no   = ls_num.
    *----Set the cell information
                ls_row-index = li_rows-row_id.
                CALL METHOD wa_grid->set_current_cell_via_id
                  EXPORTING
                    is_row_id    = ls_row
                    is_column_id = li_col
                    is_row_no    = li_rows.
    ********04/03/2010
    Hope this info might be useful to anyone facing the similar issue.
    Cheers,
    Jagan.

  • Cursor focus to error field.

    In APEX 3.0, when I use Validations, Type Function Returning Error Text:
    If :P1_ITEM is null then
    return 'Must enter a value';
    end if;
    Everything is fine, except the cursor goes to the first field in the page. How do I make the cursor go to the field that contains the error (back to the field that did the validation)? Thanks in advance.

    Hi Shirley
    Sorry I did not see this post but I did reply to your question you post about inserting caps.
    if you create another page item say P1_PAGE_FOCUS then as part of your validation you set its value.
    If :P1_ITEM is null then
    :P1_PAGE_FOCUS := 'P1_ITEM';
    return 'Must enter a value';
    end if;
    add this bit of javascript to your header
    function setFocus(FocusItem)
      try {
        var oFocus = document.getElementById(FocusItem);
        document.getElementById(oFocus.value).focus();
      catch(err) {
        null;
    }You should also that your pages Cursor Focus is not set to first page item. Then add the following to your HTML Body attribute
    onLoad ="setFocus('P1_PAGE_FOCUS');"
    This should then set the page item that you want to set focus to the invalid page item.

  • Move focus/cursor to FIRST errored field

    I have a page with serveral inputText fields. Most fields are validated for a date, number, currency, or just a required string. How can I move/display the cursor in the FIRST field in error. It seems the cursor just disappears, I then have to use the mouse to click on the field that is in error to correct the error. Seems that JSF should take care of this.
    Thanks for your help.

    Hi all,
    Please can any one help me i am new for java Script. It will be a great help.
    will Appreciate any other approach.
    Thank You,
    Amit

Maybe you are looking for

  • Title displaying on top of page in Dreamweaver

    Not sure why this is happening.  When I try updating the template on all of the pages I also get this.  (some regions in this document has no corresponding regions in the new template)    It's for the heading Any help would be appreciated.  Here is t

  • Function Module to obtain date

    Hi all Can anyone suggest me the function module which satisfies below scenario: Suppose i enter FROM date as :18.07.2006 and TO date as :20.07.2006 I should get number of days between these two dates as 1 and value :19.07.2006. Thanks in advance Reg

  • I use Safari with Comcast email, when I forward an email that has pictures in the email it omits them

    I use Safari with Comcast mail, whem I forward an email that has pictures in the email it omits them.

  • Lion Safari 5.1: pdf file is not opening inside the iFrame

    "When trying to open the pdf file inside the iFrame, it is opening outside the iFrame in Preview Application and leaving behind the iFrame as blank . Earlier with Safari 5.0.5 version this problem was not coming and pdf was opening properly inside iF

  • Displaying the column names in a spreadsheet

    Hello All, I am downloading data from SAP into a spreadsheet using the FM MS_EXCEL_OLE_STANDARD_DAT. The data is coming fine. But I need to display the column names too in the spreadsheet. Could anyone please tell me how to do that. Thanks in advance