Is it possiable to navigate row by row using the down arrow key?

Hi,
The table is an ADF page table, and I want to nevigate to the next row by pressing the down arrow key. Is that possiable?
Thanks
Stephen

Let me explain things better. First of all you have to create
a javascript file , e.g: moveRow.js with the following code:
i = 0;
function moveRow()
if (window.event.keyCode== 25) // 25 is down arrow
i++;
// FormID : TableID: tableSelectOneID
document.getElementById('form1:table1:' i ':tableSelectOne1').checked=true;
if (window.event.keyCode== 24) // 24 is up arrow
i--;
document.getElementById('form1:table1:' i ':tableSelectOne1').checked=true;
Then in the jspx head, put something like this:
<afh:head title="testTable" binding="#{backing_testTable.head1}"
id="head1">
<script type="text/javascript" src="moveRow.js">
</script>
</afh:head>
// Call to the function when key is pressed:
<af:tableSelectOne binding="#{backing_testTable.tableSelectOne1}"
id="tableSelectOne1" onkeypress="moveRow();"/>
Kind Regards,
Luis R.

Similar Messages

  • Creating new row in a matrix by pressing the down arrow key

    Hi all
    i wish to cause a matrix to add rows when pressing on the down arrow key. can you provide me with the lines of code which achieve this requirement?
    appreicate the help
    Yoav

    Hi Yechiel,
    I think you can capture the moment of the pressing the down arrow key. in that moment, you can utilize this code to add the line. I used DBDataSource. it's most easy and simple way to handle matrix, I think. I can't remember the character code of down arrow. But I think, you can find it easily.
    oForm.DataSources.DBDataSources.Item("@DBS_CBP2").InsertRecord(position)
                        oForm.DataSources.DBDataSources.Item("@DBS_CBP2").Offset = oForm.DataSources.DBDataSources.Item("@DBS_CBP2").Offset + 1
    oMatrix.AddRow()
    Regards,
    Hyunil Choi

  • On Mac, need to navigate to first google search listing by keystroke, the tab key works sometimesand sometimes the down arrow works, nothing works consistently

    If I do a search using the google search engine, say of a phone number like (530) 335-5414 it results in a page with about 10 to 15 listing. Here is what the page looks like
    https://www.google.com/?gws_rd=ssl#q=%28530%29%20335-5414
    I am on a mac and I need to find a keyboard command to get me reliably to select the first listing . When the caret appears next to the listing I can press the enter key to open the underlying hyperlink.
    I have had success doing this with the tab key and sometimes it works almost 8 times in a row. Then I sometimes use the down arrow key and it occasionally gets me there. IS THERE A RELIABLE KEYBOARD NAVIGATION TO THE FIRST LISTING ON A GOOGLE SEARCH RESULT PAGE. I don't understand why my keyboard only works occasionally to navigate in this way . This is very important for me to do this and maybe someone out there knows how to get to select the first listing on a page by keyboard that works.
    Thank you very much for you

    I've called the big guys to help you. Good luck.

  • Can we create a new row in a table using a down arrow

    Hi,
    I am using jdeveloper 11.1.1.6.
    For one of my project, I have a requirement where i need to create a new row in table using a down arrow. My client does not want to use mouse clicks. They want to use keyboard as much as possible.(Fast data entry).
    Is it possible to create a new row using down arrow. Any pointers will be helpful!
    Thanks,
    Umesh

    you can try this thing
    steps
    - capture downkey event - may b this help http://www.qualitycodes.com/tip/1/capturing-keys-with-javascript.html
    if not google more
    -then call from javascript call java method - https://blogs.oracle.com/jdevotnharvest/entry/how-to_call_server_side_java_from_javascript
    -then create new row of table VO .....

  • Get selected rows using the fm REUSE_ALV_GRID_DISPLAY_LVC

    FYI ... for all those developers trying to select multiple rows in an ALV report, and get the selected rows - without using the OO approach to display to ALV, and without using checkboxes in the function module approach.  First off, you need to use the function module REUSE_ALV_GRID_DISPLAY_LVC instead of the standard REUSE_ALV_GRID_DISPLAY.  This allows you to select multiple rows using the toggle, line selection buttons, at the start of each row (with 'select all' button).  See the sample code below.  If you are converting from the one fm to the other, you will have to change the type of 2 of the structures to the 'LVC' structures and make minor code changes.  The example code below was initially using the REUSE_ALV_GRID_DISPLAY fm, and was converted to use REUSE_ALV_GRID_DISPLAY_LVC  to allow for multiple row selection.  The next step is to create a custom status, with a new custom button, that will start the processing of the selected rows.  Go to tcode SE41, press Copy Status, and copy program SAPLKKBL, status STANDARD, to your custom program (same name as the custom ALV rpt) and a new status name (ie STANDARD1).  In the new STANDARD1 status for the custom ALV program/rpt (tcode SE41), add a new button ('&EXE') at the end of the std buttons (items 29-35).  Assign the new button a Text, Icon and a Function Key. Thats it!
    Here's the code:
    FORM display_data.
    DATA:
      wa_callback_program LIKE sy-repid,
      wa_layout      TYPE lvc_s_layo,  "was  slis_layout_alv,       "D01K913690
      t_fieldcat        TYPE lvc_t_fcat,   "was  slis_t_fieldcat_alv,  "D01K913690
      wa_fieldcat    TYPE lvc_s_fcat,  "was  slis_fieldcat_alv,     "D01K913690
      t_excluding     TYPE slis_t_extab,
      wa_excluding TYPE slis_extab,
      wa_variant     LIKE disvariant.
    * Setup Field Catalog
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname  = 'ZBUKR'.
      wa_fieldcat-ref_field    = 'ZBUKR'.
      wa_fieldcat-ref_table   = 'REGUT'.
      APPEND wa_fieldcat TO t_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'BANKS'.
      wa_fieldcat-ref_field   = 'BANKS'.
      wa_fieldcat-ref_table  = 'REGUT'.
      APPEND wa_fieldcat TO t_fieldcat.
    * Setup other ALV fm parameters
      CLEAR wa_excluding.
      wa_excluding-fcode = '&F12'.
      APPEND wa_excluding TO t_excluding.
      CLEAR wa_excluding.
      wa_excluding-fcode = '&F15'.
      APPEND wa_excluding TO t_excluding.
    * Callback program
      wa_callback_program = sy-repid.
    * List layout
      wa_layout-zebra = 'X'.
      wa_layout-sel_mode = 'A'.
    * variant
      wa_variant-variant  = p_var.
    * Display the ALV report
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'                "D01K913690
           EXPORTING
                i_callback_program             = wa_callback_program
                i_callback_pf_status_set    = 'SET_PF_STATUS'              "D01K913690
                i_callback_user_command  = 'USER_COMMAND'
                is_layout_lvc                       = wa_layout                          "D01K913690
                it_fieldcat_lvc                      = t_fieldcat                            "D01K913690
                it_excluding                         = t_excluding
                i_save                                 = 'A'
                is_variant                            = wa_variant
           TABLES
                t_outtab                              = t_regut
    *      EXCEPTIONS
    *           PROGRAM_ERROR            = 1
    *           OTHERS                             = 2
    ENDFORM.                               " DISPLAY_DATA
    FORM user_command
      USING
        r_ucomm     LIKE sy-ucomm
        rs_selfield TYPE slis_selfield.
      DATA: wa_text(80) TYPE c.
      CASE r_ucomm.
        WHEN '&EXE'.   "User pressed custom Execute button
          DATA ref1 TYPE REF TO cl_gui_alv_grid.
          CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
            IMPORTING
              e_grid = ref1.
          DATA: lt_index_rows TYPE lvc_t_row,
                     lt_row_no TYPE lvc_t_roid,
                     lw_row_no TYPE lvc_s_roid.
          CALL METHOD ref1->get_selected_rows
            IMPORTING
              et_index_rows = lt_index_rows
              et_row_no     = lt_row_no.
          LOOP AT lt_row_no
             INTO lw_row_no.
             *** CODE TO PROCESS EACH RECORD FROM MULTIPLE SELECTED***
          ENDLOOP.  "loop at lt_row_no
        WHEN '&IC1'.  "User double-clicked on row
          *** CODE TO PROCESS SINGLE RECORD SELECTED ***
        WHEN '&F03' .          " back
          SET SCREEN 0. LEAVE SCREEN.
        WHEN '&F15' .          " exit
          SET SCREEN 0. LEAVE SCREEN.
        WHEN '&F12' .          " cancel
          SET SCREEN 0. LEAVE SCREEN.
      ENDCASE.
    ENDFORM.                               " USER_COMMAND
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'STANDARD1'.
    ENDFORM. " set_pf_status
    Hope this helps ...
    Regards,
    Kevin
    Moderator message - Welcome to SCN.
    However, as you can see, the forum software was unable to format this because of the 2,500 character posting limit. since this looks interesting, would you please try to edit to conform to that limitation? You may try to split it into an initial post and a response.
    Edited by: Rob Burbank on Jul 8, 2009 1:39 PM

    Hi ,
         Make it use in your code and let me know if u have any concerns...
        Use "Subtotal_text" in events table.
    here GTOTAL is field in itab on which we sortindf data, and use your own field on which field u want to sort...
    refresh gt_event.
    clear gw_event.
    call function 'REUSE_ALV_EVENTS_GET'
       EXPORTING
         i_list_type = 0
       IMPORTING
         et_events   = gt_event.
    Subtotal
    read table gt_event with key name = slis_ev_subtotal_text into gw_event.
    if sy-subrc = 0.
       move 'SUBTOTAL_TEXT' to gw_event-form.
       append gw_event to gt_event.
    endif.
         form subtotal_text using uw_subtot_line type ty_main
                    uv_subtottxt type slis_subtot_text.  "#EC CALLED
    if uv_subtottxt-criteria = 'GTOTAL'.
       uv_subtottxt-display_text_for_subtotal = 'TOTAL'.
    endif.
         *FORM build_sort .
    refresh gt_sort.
    gw_sort-spos      = 1.
    gw_sort-fieldname = 'GTOTAL'.
    gw_sort-tabname   = 'GT_MAIN'.
    gw_sort-up        = 'X'.
    gw_sort-subtot    = 'X'.
    APPEND gw_sort TO gt_sort.
    CLEAR gw_sort.
    Reward points once its useful..

  • Move over the table rows using the up and down arrows using the javascript

    i had a dynamically generated html table in jsp .
    i need to move over the rows up and down .
    when the up and down arrow keys are pressed Highlight the row and after moving when i press the enter key other required page is to be displayed .
    please help me as soon as possible what events are to be used for the arrow keys and Highlight the row

    i got the code for it
    if (navigator.appName == "Microsoft Internet Explorer") {     
         document.onkeydown = processKeys;
    } else {
         document.onkeypress = processKeys;
    function processKeys(e) {  
         var keyID = (window.event) ? event.keyCode : e.keyCode;
         switch (keyID){
         // Key up.
         case 38:
              if (parseInt(currentRow) == parseInt(0)) {
                   // reached the top of the table; do nothing.
                   return true;
              } else {
                   // move one row up.
                   currentRow = parseInt(currentRow - 1);
                   setCurrentRow (currentRow, currentRow + 1);
                   return false;
              break;
         // Key down.
         case 40:
              if (currentRow == (numRows - 1)) {
                   return true;
              } else {          
                   currentRow++;
                   setCurrentRow (currentRow, (currentRow - 1));
    if (currentRow > VISIBLE_ROWS) {
    return true;
    } else {
                   return false;
              break;
         // enter key     
         case 13:
              var curRowId = boardMemberListTable.rows[currentRow].id;          
              return false;
              break;
    //onclick
    function selectRow(row) {
         inQuad3Edit = false;
         searching = false;
         var eleTableRows = boardMemberListTable.getElementsByTagName("tr");
         for (var i = 0; i < eleTableRows.length; i++) { 
              if (eleTableRows.id != row.id){
                   eleTableRows[i].className = "board-row-normal";
              } else {
                   currentRow = i;          
         row.className = "board-row-sel";

  • Import xml data in Access when multiple rows use the same fieldname

    HI.
    First of all sorry for my english :-) I have a LiveCycle Designer ES form with multiple rows that I send via e-mail as XML data.
    example:
    Row 1
    Firstname: John  Lastname: Dow
    Row 2
    Firstname: Steve  Lastname: Austin
    The exported XML is OK but when I want to import it into my Access database, only one row is imported. I pretty sure that the problem comes from the fact that may exported XML use the same fieldname (what is important if I want to import data in the correct Access field) but I don't know what to do to be able to import all the rows of the same Form.
    Any idea?
    Thanks a lot
    Frederic

    Hi Viktor,
    In case of order recognition rules you should increase the relevancy in the newer version of the cartridge so appropriate ORR will be triggered. In other xqueries, you can try using new namespace as a model variable for each and every version of the cartridge
    Regards,
    JP

  • Selecting Multiple rows using Shift or Ctrl key

    Hi all,
            I have a requirement as given:
          Unless a user has used a shift or Ctrl key the multiple selection of rows should not be allowed in a tableview . Can anyone help me in this regard??
    Thanks in Advance,
    Chandana.

    Thank you for letting me know this. Is the reason I can use the "Shift+[letter]" shortcut key because a browser doesn't have this as a default option??
    Do you have recommendations of workarounds when trying to create courseware to exactly match what someone would do in the application? Any feedback on this topic is greatly appreciated!!!
    Thanks!

  • Styling report rows using the query result

    Hello, is it possible to style a row in a report using the values returned by the underlying sql query?
    For example, if my query returns a column called ROW_CLASS I would like to use the placeholder #ROW_CLASS# to style the row, e.g. specifying the row class.
    Apparently such row attributes are not available to the apex developer. For each single column value I can set the "Tabular Form Attributes" and "Column Formatting", but I cannot set anything on the whole row.
    In other words I can style the TDs but not the TRs.
    I think this is clearly a "missing feature" that should be there, single the APEX engine that turns the query result into the HTML that displays the table can already access the column values via their placeholders. It would be sufficient to add some "row attributes" or "row class" field in the report.
    It could be used for lots of useful things, in my particular case, highlighting rows that contain errors.
    Also there is no way to perform that operation in CSS (e.g. get the TRs which contain at least one TD of class "ROWERROR"). I know it could be done in JS, but that's very messy for such a simple declarative problem.

    GChierico wrote:
    Hello, is it possible to style a row in a report using the values returned by the underlying sql query? Yes, for standard reports, using custom report templates: +{thread:id=2493917}+
    Interactive reports require the use of Dynamic Actions/jQuery.

  • How can I navigate through tabs without using the mouse?

    I want to know how to navigate through tabs without using a mouse... just like you can navigate through multiple windows by using <alt><tab> ... because it's extremely annoying when I'm working on something to have to take my hands off the keyboard and go to the mouse.

    You can also use Ctrl + Page Up and Ctrl + Page Down to go to the next and previous tab. I prefer those because it doesn't require the Shift key (Shift + Ctrl+ Tab) to go to the previous tab.
    See also [[Tabbed browsing]]

  • Create Row Next to the current row using the enter or tab key

    hi
    May my needs is not correct with web development, so in some pages like Journal Voucher Entery, the user need to add about more than 200 row, if there is any soluation to handle such status please send to me. the user ask not to press add or create button each time.
    thanks

    Hi,
    Excel has no direct feature or option to achieve your goal. We'd better try the macro via VBA code to test. Please see the thread:
    http://excel.tips.net/T003923_Automatically_Moving_from_Cell_to_Cell_when_Entering_Data.html
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    If you have further question about code, I recommend you follow with thread which you posted in MSDN forum:
    http://social.technet.microsoft.com/Forums/en-US/6f5344cf-c1b5-485d-982a-eeec45294f9b/ms-excel-move-automatically-without-pressing-enter-or-tab?forum=exceldev
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How to avoid duplicated rows using the outer join

    Hi everybody,
    I have the following query:
    select a.usr_login, b.ugp_rolename, b.ugp_display_name from
    (select usr.usr_login, usr.usr_key, usg.ugp_key from usr,usg
    where usg.usr_key = usr.usr_key
    and usr.usr_login IN ('C01015','C01208')) a,
    (select ugp.ugp_key, ugp.ugp_display_name from ugp
    where ugp.ugp_rolename LIKE 'B-%') b
    where a.ugp_key = b.ugp_key (+)
    The first query 'a' has the following result:
    usr_login <space> usr_key <space> ugp_key
    C01015 <space> 49 <space> 565
    C01015 <space> 49 <space> 683
    C01015 <space> 49 <space> 685
    C01015 <space> 49 <space> 3
    C01208 <space> 257 <space> 3
    The usr_login on table usr is the primary key, and as you can see above, for each usr_login I can find one ore more ugp_key on the table usg.
    The query 'b' gives the list of all the usr_login's roles which have the name LIKE 'B-%' (it means '*Business Roles*'), and all the respective role's key (ugp_key)
    So, when I join the query 'a' with the query 'b', I expect to find for every usr_login the respective ugp_display_name (the Business Role name).
    Because the query 'b' contains ONLY the ugp_keys of the Business Roles, when I execute the complete query, this is the result:
    usr_login <space> ugp_rolename <space> ugp_display_name
    C01015 <space> BK005 <space> TELLER 1
    C01015 <space> BK003 <space> TELLER 2
    C01015 <space> null <space> null
    C01015 <space> null <space> null
    C01208 <space> null <space> null
    As you can see, with the outer join I obtain the Business Name (ugp_display_name) for each occurrence (and I have 2 rows duplicated with 'null' for the usr_login C01015); This beacuse the query 'b' doesn't have the two ugp_keys 685 and 3.
    Instead I'd like to have the following result:
    usr_login <space> ugp_rolename <space> ugp_display_name
    C01015 <space> BK005 <space> TELLER 1
    C01015 <space> BK003 <space> TELLER 2
    C01208 <space> null <space> null
    deleting ONLY the duplicated rows with null, when the usr_login has already at least one ugp_display_name not null.
    For example:
    1) The usr_login 'C01015' has 2 Business Roles (with ugp_key = 565 and 683) and other 2 not-Business Roles (with ugp_key = 685 and 3) --> I want to see ONLY the 2 records related to the Business Roles
    2) The usr_login 'C01208' has only one not-Business Roles (with ugp_key = 3) --> I want to see the record related to the not- Business Role
    Practically:
    1) When a usr_login has one or more Business Roles and other not-Business Roles , I'd like to see ONLY the records about the Business Roles (not the records with 'null','null')
    2) When a usr_login doesn't have Business Roles, I'd like to see the records about the same usr_login with 'null','null'
    This, because I need to show both usr_logins: with and without Business Roles.
    Anybody has any suggestions ? Any help will be appreciated.
    Thanks in advance for any help !!
    Alex

    Hi, Alex,
    So you want to display rows from a where either
    (1) the row has a match in b, or
    (2) no iwith the same usr_login has a match.
    Here's one way to do that:
    WITH     a     AS
         SELECT  usr.usr_login, usr.usr_key, usg.ugp_key
         FROM      usr
         ,     usg
         WHERE      usg.usr_key     = usr.usr_key
         AND     usr.usr_login     IN ('C01015','C01208')
    ,     b     AS
         SELECT  ugp.ugp_key, ugp.ugp_display_name
         FROM      ugp
         WHERE     ugp.ugp_rolename     LIKE 'B-%'
    ,     got_match_cnt     AS
         SELECT     a.usr_login, b.ugp_rolename, b.ugp_display_name
         ,     b.ugp_key
         ,     COUNT (b.ugp_key) OVER (PARTITION BY  a.usr_login)     AS match_cnt
         FROM      a
         ,     b
         WHERE     a.ugp_key     = b.ugp_key (+)
    SELECT     usr_login, ugp_rolename, ugp_display_name
    FROM     got_match_cnt
    WHERE     ugp_key          IS NOT NULL     -- Condition (1)
    OR     match_cnt     = 0              -- Condition (2)
    ;If b.ugp_rolename or b.ugp_display_name can not be NULL, then you could use that just as well as b.ugp_key for testing condition (1).
    By the way, you don't need sub-queries for a and b; you can do all the joins and all the filtering (except conditions (1) and (2)) in one query, but the sub-queries aren't hurting anything. If you find the separate sub-queries easier to understand, debug and maintain, then, by all means, keep them.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using.

  • I use a French bluetooth keyboard how do i lock the numbers for doing calculations? Does anybody know? i.e. the numbers are above the top row of keys and you have to use the shift key to access them.  You can't use the cap lock key to lock the numbers.

    How do I lock the numbers on a French keyboard if I'm using a small blue tooth keyboard with no number pad?

    How do I lock the numbers on a French keyboard if I'm using a small blue tooth keyboard with no number pad?

  • Navigate using arrow keys broken - 10.4.6

    Hi, I'm wondering if anyone else has this problem.
    I can no longer navigate the finder using the directional arrow keys in column mode after updating to 10.4.6. I hope this is just me because it's a real PITA if this cannot be fixed.
    The arrow keys work in other view modes (list and icon), and also within other applications open/save dialogue boxes.
    thanks,
    Greg

    OK, much to my embarrassment it seems to have fixed itself after two restarts... very strange indeed. Has anyone experienced this sort of intermittent issue before?
    I was thinking that I had discovered my first problem with any Apple software update, but alas, not to be. So other than that (non)issue, another good update, now where's Aperture 1.1?
    thanks for listening,
    Greg.

  • How to select rows or columns of tables without using the mouse?

    2nd post ever! Yeah! \m/
    In Excel, I can select entire rows or columns of data WITHIN TABLES--i.e., not selecting entire sheet rows or columns--by going to any cell on the perimeter of the table, holding down shift+ctrl, and clicking a direction arrow. So for example, if I have a table in columns D-G and rows 1-5, I can highlight row 4 by going to the first or last cell of that row, holding down the shift+ctrl, and hitting the appropriate direction arrow. You might think this is superfluous given that you can use the mouse to select cells. But that becomes cumbersome with large tables, and this method can be more efficient even with small tables.
    Similarly, it's often useful to navigate tables, particularly large ones, by moving from any cell within the table to the end or beginning of that row or column by holding down ctrl and hitting the appropriate arrow key. In Excel, this ctrl+arrow key method also allows you to skip blank cells, which is another very useful navigational feature.
    I tried numerous combos involving shift, ctrl, command, alt/option and the arrow keys. Haven't found a way to do any of this yet.
    Anyone?

    Hi Josh,
    Numbers is organized differently than Excel, and the navigation tools are different too. Many of us miss our particular favorites from spreadsheets past, but this is Numbers, not a clone. The biggest adjustment is to go from huge monolithic sheet-tables containing virtual sub-tables to a simple blank sheet with small tables, sometimes many per sheet. Navigating is no big deal in these small tables and neither is getting from one small table to another, using the Sheets pane.
    Selecting a particular Table is as easy as clicking on the table's name in the Sheets pane. Selecting a particular row, or column, or ranges of rows or columns is done by clicking on the table's row and column labels, left side and top side once a cell is selected in the table.
    Numbers is weak at handling large Tables and documents that are large overall. We know this and many of us still prefer it to the alternative when the tool fits the task.
    Jerry

Maybe you are looking for