Set Cursor to next row Field in Table

Hi Experts,
I have a requirement in WDA table, when user click on Enter button from key board, cursor should move to the next row in table and without clicking on that columns user should type the message,
Right now user is able to type the message only after clicking on that cell.
Please guide me

Hi Rohit,
Please check with following code.
LO_NODE   = WD_CONTEXT->GET_CHILD_NODE( 'DIAGNOSE' ).
lv_index = lo_node->GET_LEAD_SELECTION_INDEX( ) .
lv_index = lv_index + 1.
LO_NODE->SET_LEAD_SELECTION(  lv_index ).
   LO_ELEMENT = LO_NODE->GET_ELEMENT( ).
   LO_RUNTIMEAPI = WD_THIS->WD_GET_API( ).   LO_RUNTIMEAPI->REQUEST_FOCUS( ATTRIBUTE = 'ICDDESC' CONTEXT_ELEMENT =LO_ELEMENT ).
Thank You,
Harsha

Similar Messages

  • How  to set focus on next row inputfield in table

    Hello all,
    How  to set focus on next row input field in table
    Please help.
    Thanks in advance.
    CSP

    Hi,
    use the following code
    wdThis.wdGetAPI().requestFocus(nodeElement, attribute)
    Ex:
    Provide the attribute and replace the nodeElement with that of yours
    IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute("Your attribute");
           wdThis.wdGetAPI().requestFocus(wdContext.currentContextElement(), attributeInfo);
    Regards
    Ayyapparaj

  • 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

  • Can I use action build to fade one table row as I move to the next row in the table?

    I have built a table with 6 rows.  Right now,I am building the table row by row when I play the slide. Is there a way to fade or dissolve one row when I move to the next row in the table? I want to be able to de-emphasize the row I just discussed when I move to the next row in the table. I can fade the entire table by invoking that action but I do not seem to be able to use this action one row at a time. Thanks for your comments and assistance.

    you will have to use a workaround to get the exact effect you described
    create a table with out any text
    use text tool to add text and position in each table cell
    select the text boxes( command click) in the first row and group them (arrange > group)
    use a, build in, to display text and then a, build out, to remove it
    repeat the above for the other rows

  • How to set max. number of rows in a table?

    Hi,
    I'm working on a SCADA interface. In this application there are different tables with vertical scroll bar.
    I prefer to make visible only the initialized rows (I've initialized 40 blank rows of a table with a string array). Since the window not contain all 40 rows but only 20 rows, I set the rows number of "table properties window" to 20; so I added a vertical scroll bar.
    Now, when a user scroll the scroll-bar, he can view not only the 40 rows initializated, but an undefined number of rows.
    There's a way to visualize only a limited number of rows?
    Thanks in advance!

    duplicate
    LabVIEW Champion . Do more with less code and in less time .

  • Setting cursor to appropriate row and column in JTextArea

    Hi
    this is kranthi from Hyd
    iam unable to point out the cursor to the appropriate row and column in the JTextArea
    are there any methods to do so
    plz help me

    Yup, look at setCaretPosition(int pos)

  • Error when i set primary key to a field in table

    I created a table. with one primary key field
    on saving it following error happened 
    at Microsoft.SqlServer.Management.DataTools.Interop.IDTDocTool.Save(Object dsRef, String path, Boolean okToOverwrite)
    at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDataDesignerNode.Save(VSSAVEFLAGS dwSave, String strSilentSaveAsName, IVsUIShell pIVsUIShell, IntPtr punkDocDataIntPtr, String& strMkDocumentNew, Int32& pfCanceled)
    then i removed primary key. Table was saved successfully.
    I need to make primary key field.. how can i solve it?

    CREATE TABLE tblname (c INT NOT NULL PRIMARY KEY) 
    Have you ran the above statement successfully?  Do you create a table in VS?  
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Set cursor in table control field

    I have developed module using table control have done validation for one field on Enter key press.In change mode if user changes value in table control field and presses Enter key then system is showing Error message on status bar and table control gets gray out.
    if user again hits Enter key then this error message clears and Table control is in Edit mode.
    Here I wan that Cursor should go to same filed from which error message occurred.
    I have written Get Cursor In PAI event and Set Cursor in PBO after Loop at table control. I tried Set cursor within Lop at Table control in PBO.
    But cursor is not coming on that field of table control.
    I have written set cursor as below:
    Set Cursor Field itab-fieldname Line lineno Offset offsetval.
    Here itab is internal table assigned to table control.
    Please let me know why cursor is not setting on particular field on table control.

    Hi Ganesh,
       A simpler way would be to include the fields of the table in a chain-endchain block.
    in PAI section.
    PROCESS AFTER INPUT.
      loop at IT_FINAL.
        chain.
          field WA_FINAL-JOBCARD.
          field WA_FINAL-MATIDTAG.
          field WA_FINAL-VORNR.
          field WA_FINAL-ARBPL.
          field WA_FINAL-ZZPULLCONTNRQTY.
          field WA_FINAL-NOOFTAGS.
          field WA_FINAL-ROUTE_TO.
       module validate.
        endchain.
      endloop.
    you can issue your error messages in the module validate.
    REgards,
    Ravi

  • Help to set selected row in adf table!

    Hello,
    I have a problem with adf table, when I select one row in table, I want to set selecte to next row or first row , or end row . . .
    How can I do that.
    If anyone know it, please help me
    Thanks in advance.

    <af:table value="#{bindings.BuddyView1.collectionModel}" var="row" partialTriggers="id"
    rows="#{bindings.BuddyView1.rangeSize}"
    emptyText="#{bindings.BuddyView1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.BuddyView1.rangeSize}"
    rowBandingInterval="0"
    selectedRowKeys="#{bindings.BuddyView1.collectionModel.selectedRow}"
    *selectionListener="#{bindings.BuddyView1.collectionModel.makeCurrent}"*
    rowSelection="single" binding="#{backing_untitled1.t1}"
    id="t1">
    You will have to create your own selection listener method.
    Cheers
    Venkat
    Edited by: Venkat81 on Jun 10, 2010 11:12 AM

  • Move the cursor to next input values

    Hi
    I  have one input  screen  which will save the vaule in z_ table  .
    when i am giving input values and press enter it should go next input values
    but it is going same field.
    how i can move the cursor to next input values.
    Thanks
    Kumar

    Hi,
    Use the "set cursor" command followed by the field name.
    By triggering PAI only, we can set the CURSOR in some other field.
    By just pressing ENTER button and like that.
    In PBO, you have to check the first field is filled i.e. NOT INITIAL, you have to set CURSOR in next field and so on...
    If he fills any other fields, then you have to message.
    Also try SET CURSOR in the PBO.
    For your information:
    1. http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dbac0b35c111d1829f0000e829fbfe/content.htm
    2. Changing the cursor position on selection screen.
    3. http://help.sap.com/saphelp_bw/helpdata/en/9f/dbabbd35c111d1829f0000e829fbfe/content.htm
    May this helps you.
    Regards.
    Deepak Sharma.

  • How append field to table?

    Hello all.
    Have.
    DATA  wa_table TYPE TABLE OF mytable  WITH HEADER LINE.
    need appnd field to wa_table in abap.
    how?

    see the full code  how the data is   select  into  work area  and then to your internal table  .
    "first example
    TYPES: BEGIN OF t_bseg,
    *include structure bseg.
      bukrs     LIKE bseg-bukrs,
      belnr     LIKE bseg-belnr,
      gjahr     LIKE bseg-gjahr,
      buzei     LIKE bseg-buzei,
      mwskz     LIKE bseg-mwskz,         "Tax code
      umsks     LIKE bseg-umsks,         "Special G/L transaction type
      prctr     LIKE bseg-prctr,         "Profit Centre
      hkont     LIKE bseg-hkont,         "G/L account
      xauto     LIKE bseg-xauto,
      koart     LIKE bseg-koart,
      dmbtr     LIKE bseg-dmbtr,
      mwart     LIKE bseg-mwart,
      hwbas     LIKE bseg-hwbas,
      aufnr     LIKE bseg-aufnr,
      projk     LIKE bseg-projk,
      shkzg     LIKE bseg-shkzg,
      kokrs     LIKE bseg-kokrs,
    END OF t_bseg.
    DATA: it_bseg TYPE STANDARD TABLE OF t_bseg INITIAL SIZE 0,
          wa_bseg TYPE t_bseg.
    SELECT bukrs belnr gjahr buzei mwskz umsks prctr hkont xauto koart
           dmbtr mwart hwbas aufnr projk shkzg kokrs
      FROM bseg
      INTO wa_bseg.
      APPEND wa_bseg TO it_bseg.
    ENDSELECT.
    "second example :
      DATA  : lt_bsik      TYPE  TABLE OF txi_bsik ,
              ls_bsik      LIKE  LINE OF  lt_bsik.
      DATA : ld_cursor   TYPE cursor.
    OPEN CURSOR ld_cursor  FOR
          SELECT * FROM bsak
            WHERE budat LE ls_butab-keydt
            AND   augdt GT ls_butab-keydt
            AND   bukrs  = ls_butab-bukrs.
        DO.
          FETCH NEXT CURSOR ld_cursor
                INTO CORRESPONDING FIELDS OF TABLE lt_bsik
                PACKAGE SIZE txilm_package_size.
          IF sy-subrc NE 0.
            CLOSE CURSOR ld_cursor.
            EXIT.
          ENDIF.
          SORT lt_bsik BY bukrs gjahr belnr.
          LOOP AT lt_bsik INTO ls_bsik.
    "if change   in ls_bsik   move to lt_bsik .
            MODIFY lt_bsik FROM ls_bsik.
          ENDLOOP.
    ENDDO.
    reward  points if it is usefull...
    Girish

  • Delete a row in a table

    Hi,
    My requirement in OAF is to delete a row in a table if the row doesn't have mapping to another table.
    If there is a mapping then the row must not be deleted.
    I have created two VO and formed two ROW.
    While using my code if there exists a mapping for a row in two tables, then the row doesnt get deleted.
    But i want to DELETE when there exists no reference in second table.
    The Code used in AM is
    *public void deleteOU(String ReferenceId1) {*
    OAViewObject VOB=getBLTARBOUMAPEOView1();
    Row row=VOB.getCurrentRow();
    Boolean flag=false;
    *while(row!=null) {*
    OAViewObject VOB1=getBLTINVMAPVO1();
    Row row1=VOB1.first();
    *while(row1!=null) {*
    *if((row1.getAttribute("OuReffId").equals(ReferenceId1))){*
    flag=true;
    throw new OAException("Can't delete because Inventory is Assigned for this Operating Unit",OAException.ERROR);
    *else{*
    row1=VOB1.next();
    *if(flag==false){*
    System.out.println("Remove");
    row.remove();
    Ex:
    Table1
    ReferenceId OU
    1 ABC
    2 DEF
    Table2
    ReferenceId OUID
    2 567
    In the example my code must not allow to delete the 2nd ReferenceId in Table 1.
    Please advice.
    Thanks in Advance,
    Jegan

    Hi,
    I have modified the Query, now the row deletes the next row in the table.
    For ex:
    If i click 1st row second row is deleted.
    *public void deleteOU(String ReferenceId1) {*
    OAViewObject VOB=getBLTARBOUMAPEOView1();
    Row row=VOB.getCurrentRow();
    Boolean flag=false;
    *while(row!=null) {*
    System.out.println(ReferenceId1);
    OAViewObject VOB1=getBLTINVMAPVO1();
    Row row1=VOB1.first();
    *while(row1!=null) {*
    *if((row1.getAttribute("OuReffId").equals(ReferenceId1))){*
    flag=true;
    throw new OAException("Can't delete because Inventory is Assigned for this Operating Unit",OAException.ERROR);
    *else{*
    row1=VOB1.next();
    *if(row1==null){*
    row.remove();
    *//getOADBTransaction().commit();*
    throw new OAException("Deleted Successfully",OAException.CONFIRMATION);
    Please help to solve this issue.

  • 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

  • How to set focus on a input field in a selected row of a table?

    In a previous discussion (http://scn.sap.com/thread/3564789) I asked how to access an input (sap.m.Input) field of a selected row in a table. In the answer that was supplied I was shown how to get the items of the table. Then using the selected index to get the selected item get the cells. Then I could set editable on the proper cell(s). This worked fine.
    Now I need to set the focus on one of the fields. I tried something like this:
                var oNewLink = table.getSelectedItem();
                var oNewLinkName = oNewLink.getCells()[1];
                oNewLinkName.focus();
    But this doesn't seem to work.
    I have searched through other discussions and have seen this technique for putting focus on a field if you have its ID:
    sap.ui.getCore().byId(id_of_the_input_field).$().focus();
    In my case though I do not have an ID since the row and its cells are generated. How can I set focus on the cell of a certain row in a table?

    Hello Venkatesh. Yes that code does work. First I tried it on a table cell that was already rendered and it did work. The next time I tried it on a table row that was being added and it did not work there. So I added an on after rendering function for the table and added that code there. That did not work until I added a delay (timeout) to do a context switch before calling the focus and that worked.
    Once last thing though sometimes when I call focus on an input field (actually in a table row cell) if the field has text in it already the flashing cursor is at the beginning of the text and other times it is at the end of the text (which is the desired way). It depends on where I click in the row. Is there anyway to make sure the flashing cursor is at the end of the text when the focus is applied to a field that contains text?

  • 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

Maybe you are looking for