How to select a row in a table of adf after double click

I have a table that displays a list of records when the user double-clicks a particular line, I want to select row. The largest part of the example has a separate button for the user to click on choose and I don't want that.

Hello

On your table have a clientListener and a serverListener:


     
     


....

Your clientListener should send a request to the server using AdfCustomEvent.queue:

function dblClickClientLstnr (event) {}
element var = event.getSource (event);
AdfCustomEvent.queue (element, "dblClickServerLstnr", (), true);

}
..............

On your support of bean, you can retrieve the selected line, for example:

{} public void getSelectRow (ClientEvent clientEvent)

DCBindingContainer dcBindings = (DCBindingContainer) ADFUtils.getBindingContainer ();
DCIteratorBinding iterBind = (DCIteratorBinding) dcBindings.get ("myViewIter");
Line = iterBind.getCurrentRow ();

}

I hope this helps.

Tags: Java

Similar Questions

  • How to select each row in a table where there is no user input?

    My order is: DUMMY_BLK. It has field: NWTFR.

    My basic block is: T_UNLDLD_BLK.
    In the palette of the property, where clause is: ULD_RPTNO =: DUMMY_BLK. NWTFR

    When the user presses the search button, it gets results according the unindexed in report. My trigger when-pressed key contains the following code:
    go_block ('T_UNLDLD_BLK');
    execute_query;


    If the NWTFR is null, I should get displays all records in the T_UNLDLD table.

    How can I do that, I need to add to the place where clause please?

    Thank you.

    Hai,

    change the where nearby

    ULD_RPTNO LIKE NVL(:DUMMY_BLK.RPTNO, '%');
    

    Kind regards

    Manu.

    If this answer is useful or appropriate, please mark. Thank you.

  • How to select all text in a table with a single click cell?

    How to select all text in a table with a single click cell? I use TextField.selectAll () when you implement a table cell factory. But when I select a line with a single click, then a click on a table cell again: see the result image

    The text in the table cell is not all selected. What I simply selects all the text in a table cell when there is a click on it. How to realize that? Thank you

    Thanks for help ~.

  • Re Windows XP: At the opening of the hearts, the window is very small. How can I increase the window to fill the screen. Double click on the top panel does not work.

    Re Windows XP: At the opening of the hearts, the window is very small.   How can I increase the window to fill the screen.   Double click on the top panel does not work.

    Hi Rosa,.

    The size of the window for Hearts is actually design in Windows XP.

    However, there is a solution. You can follow these steps:


    Step 1

    a. first of all, copy the game.

    b. click Start, all programs, games.

    c. right-click on the game of hearts .

    d. Select Properties from the list.

    e. press the button find the target on the next window.

    f. right click on the highlighted file and select copy.

    g. then paste the copy on your desktop.

    h. right click on your desktop.

    i. Select Paste from the list.

    Step 2

    Finally, we will change the resolution for the game setting:

    a. right click on the game you just pasted on your desktop.

    b. Select Properties from the list and click the Compatibility tab.

    c. put the check box marked "run in 640 x 480 screen resolution.

    d. now whenever you want to play, click on that game on your desktop and it opens in mode full screen using the widest possible cards and numbers.

    Hope the helps of information.

  • How to select a record in one table to manipulate data in a database?

    Hello community,

    Using 32-bit Labview 2015.

    I created a user interface that runs a query and retrieves my table from a sql database.

    I want to be able to manage only one record at a time by selecting the record in my table and then manipulate the data according to the needs.

    Whenever the user runs a query, I want as the first record in the table to be selected / highlighted.

    I want an indicator that is currently active.

    Then a click of a button, to be able to scroll the actively selected record.

    Once I have the selected record, I want a way to write a query to edit or delete the record.

    Is attached a photo of my query to select all of my table and connect data in my table (results).

    Attached a photo of my painting showing the timeline of my sql database.

    What is the best way to go on a record selection in a table and the modification of data with a query?

    Any help would be greatly appreciated.

    Thank you

    I guess that's not a table, but multi-column listbox.

    Right click, select--> highlight whole line selection Mode

    The value of the multicolumn listbox is the row index - you can write a local variable to highlight the line, the event structure to handle the user clicking on, etc.

    If you enable the property editable ListBox cells, you can allow users to edit the items of the listbox.

    If you want to get the data in row, you hint REF table and work with the array of strings in row - convert it to cluster, etc..

    I don't know, what type of data, it is, how you structure the database looks like, I don't even know if you use the wrapper to work with the database, I can't write queries for you.

    Something like Update Tablica Set Serial = '5' where ID = '22';

  • How to set current row in the table after use the button tab on inputText

    Hi all
    My first post.., I am beginner in ADF and I'll try to explain my problem.

    For now we use ADF 11 g (11.1.1.4), in a jsff page I have a table with a column of inputText.
    On the the inputText valueChangeListener, I invoke a method in a bean viewScope that call an EJB method, make some services to the EJB on the modified line. After that, I update the VO and the table (because other values in the row have been changed) and reset the focus on the inputText even modified by the user with javaScript, because the focus was lost after updating.
    So far, everything works fine.

    When I use the arrow keys to change the selected line in the table, this is excellent work (focus is always in the inputText next or previous), but if the user tries the key tab allows you to change the current line, the inputText on the line that has the focus, but the current row in the table is not changed (I think that is normal).

    My question: How can I change the current line after the tab key in this case?

    I don't know if it is really clear, not easy to explain, do not hesitate to ask for more details.
    Thanks in advance.

    Hello

    My question: How can I change the current line after the tab key in this case?

    Use a client event to listen to the keyboard entry and intercept the tab. Use af:serverListener to call the server to set the rowKey on the table and deliver a PPR for the table to repaint

    See example 11 on http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples

    to learn more on how to use the client listener and the receiving server

    Frank

  • Select the row of the table using radiobutton

    Dear all,

    I want to have a column that will a radiobutton and button in the page. When the user clicks the button, so I want a task by taking the data from the selected row. I kept the rows in the table to a single selection. When the user selects the row (without selecting the radiobutton control), then I can also get the current line and get the data from that. But when the user presses the button (in its actionlistener) then how can I know if the user has selected the radiobutton control or not in the current line.
    Can someone give me guidance in this problem...

    Kind regards
    David

    JDeveloper 11.1.1.4.0

    Santosh,
    where is the property of the value of the bound radio button for? It is an attribute of the line? If so you can access the value via the current line.

    Timo

  • Select the row in the table to change in a form

    Hi all

    I use Jdeveloper 12.1.3.0.0 on windows internet explore 10.

    I have the following form and the read-only table. the form and the table that are both on the same object from view.

    click_edit.png

    When the user clicks a row in the table, I want to choose this line in the form above for editing purpose.

    How would I do that? the first column of the table is a primary key.

    I followed shayjdev vedio http://www.youtube.com/watch?v=e0IcnXLJUgU

    but the problem is that when I click the button CreateInsert (5th button left in my case), never clear the form for the opening of new record, instead, he put the table in input mode.

    kindly help me with this.

    Thank you.

    To create a new line, you drag the operation createInsert of the data control on the create new"" button. This should create the new row.  If you like the new line being the last of them using the link from dvohra21 to https://blogs.oracle.com/jdevotnharvest/entry/how_to_add_new_adf

    In this case, you must change the listener to the button action to point to the generation of listener action code of Frank.

    Timo

  • How to truncate 1000 rows from a table of 7000 lines?

    Hello

    Please give me a quick answer to truncate the 1000 rows from a table of 7000 lines... I don't want to truncate the entire table

    Thank you all for the valuable support,

    My activity is still ongoing... Somehow my client was not specific about what lines are deleted. It has no date column in the table to delete records by date...

    The table contains information about the error logs, so he wanted to keep a few lines and remove the rest... and then copy the table to another database.

    So right now using this query:

    SQL > delete (select * from ) where rownum<>;

    Once again thank you to all...

  • How to adapt the rows in the table spans several pages in proportion to an image?

    Hi all

    I have a fairly large excel file (more than 2000 lines) imported, and the resulting table spans more than 150 pages.

    The problem is that the lines don't always fill the height of the text block (height of 9.5 ") on every page.

    I don't like that the lines are of different sizes. I want just the lower edges of tables on each page to be in the same place.

    By dragging the line down with the SHIFT key does not work if the table spans several pages/text blocks.

    Is it possible to force the selected lines (or stored in a block of text) proportionally fill their block of text?

    It is really not any function automatic adjustment that apply at the height of the row in the table directly, then I suspect that you're not going to find a way to do this is automatic.

    If it was my document, I would consider (something like) do this:

    Find the highest line in the table. (Or, perhaps that if there is some exceptionally high lines; unobtrusively manipulate them and use the 2nd or 3rd highest line as a reference.) Calculate the number of lines (max number of) of this size will fit in each text block. Divide the height of the block of text by this number to get a line height that adapts the same number of lines in each image. Then, select the entire table and all rows from this height. Follow up with the typographic settings that help uniform line height look resolutely.

  • Several feature selection to row in the table

    Hello

    I have a group with the style of layout table and I want to set the the "multiple" generated table rowSelection property but it seems there is no way to do unless you are using the group as LOV, which is not desirable for me to JHs. The following code shows how to set this property in tableGroup.vm:

    #if (! ($JHS.current.group.useAsLov & & $JHS.current.group.multiSelect))
    selectionListener = "#{#BINDINGS_TABLE (). collectionModel.makeCurrent}.
    rowSelection = 'single '.
    #if (! $JHS.current.group.useAsLov)
    selectedRowKeys = ' #{#TABLE_BEAN () .selectedRow} ".
    #end
    #else
    rowSelection = "multiple".
    selectedRowKeys = ' #{#LOV_PAGE_BEAN () .selectedRowKeySet} ".
    selectionListener = "#{#LOV_PAGE_BEAN () .selectionListener}".
    #end

    Is there a reason for not allowing to have several feature selection of line in the table when it is not in mode LOV?

    Thank you
    Will do

    Will do,

    No, but if you want to have multiple selection, there is typically a custom action that you want to apply to selected lines, which cannot be defined in the Jheadstart Application definition editor.
    However, it is perfectly well use a custom template tableGroup.vm and allow multiple selection.

    Steven Davelaar,
    JHeadstart team.

  • Select the row in the table to change

    I added this line on my table view
    < af:commandLink text = "#{viewcontrollerBundle.CONTINUE}" id = "cl1" action = 'download-plan' > "
    "< f: param value =" "name =" "id ="p1"/ >
    < / af:commandLink >

    so when I clicked another page opens to display the selected line

    My question is how can I get the value of the selected line in the edit page

    Check this box
    [url http://blogs.oracle.com/shay/entry/selecting_a_row_in_a_table_to] Select a field in a Table to move to another Page

  • [JS] select multiple rows in a table

    Hi guys,.

    Is it possible to select several lines in a table? If I pass a reference table of the lines to the app.select () method, it fails.

    For that which is ok, but not for two or more. The lines are next to that them not chnge a thing.

    var t = ....tables[0] //a given reference to a table
    app.select([t.rows[1], t.rows[2], t.rows[3]])
    //Error > Expected array of objects but received (Row,Row,Row)
    

    App.Select(t.Rows[1]) works very well. But when I want to select multiple lines, that is not.

    Any advice?

    TIA Loïc

    Hey!

    Try selecting each line separately:

    var myT = app.selection[0].tables[0];
    myT.rows[0].select();
    myT.rows[1].select(SelectionOptions.ADD_TO);
    

    tomaxxi

  • How to insert multiple rows in a table by the user (pl/sql)

    Hello
    I was trying to insert several rows in a table by a user by some pl/sql, but not every time entry. :/
    What is happening is that the program requires each time ask the user for the new value but the loop
    1 values inserts actually four times (the loop is run four times). can any point on what I am
    doing wrong or solutions will be fun ;)

    what I wrote here

    ---------------------------------

    Set serveroutput on
    set verify off

    declare

    EmpNo number;
    EmpName varchar2 (20);

    Start

    because loop me in 1.4
    EmpNo: = & empno;
    EmpName: = '& empname';

    insert into values(empno,empname) of the employee;

    end loop;

    end;

    -------------------------------

    do not laugh at my code, I'm new to this oracle :D

    Thank you, prospects for the future for a response

    user13371438 wrote:
    Thanks for the info, looks like a nice tool will ;) try
    but I really want (my problem) in pl/sql

    Take a quick re-read my post above.

    PL/SQL is a process running on the database server. This process cannot interact with the client computer. He can't ask for user input, and it cannot display the output to the client. Client interface tools can only do. You are eager to get feedback from a user, if you need an interface tool to do. SQL * Plus can interface and application of entry, but only as variable substition, and it does not really provide a programming construct that allows you to run a program in a loop to do. Do this using SQL * Plus you must pair it with shell/dos scripting languages, but more ideally you should use an interface appropriate as Apex.

    I was wondering if it all works in pl/sql to release cached data (as fflush (stdin) in c ++)

    PL/SQL does not a customer entry, so there is no sense to have something to release the cached data. You pass the values of PL/SQL code using procedures or functions with parameters.

  • Copy of Firefox always function adds an extra space before or after double clicking to select text

    I have just started using Firefox, but I noticed a strange "characteristic" (I don't know if this is a feature or a bug, so the quotes). I'm used to the opera, and that is where by when I double click on some text, the text will be automatically selected. Firefox does something like this, but for some reason any I don't yet understand that it adds extra space at the beginning or at the end of the selection. It is a problem for someone like me who, for work, did a lot of copy / paste. I use web software that doesn't tolerate extra spaces and this feature/bug will end up causing some problems.
    Is it possible to change this behavior so that it behaves more like all my other computer programs? Your help is greatly appreciated.

    Well, unfortunately, the solution did not work. I guess it's back to the opera, as seems to be the only browser that has the features I need. Too bad.

Maybe you are looking for