the selection of lines handling af:table

Dear all,

I have a table of the ADF, when the line is selected, then I want to get the content of the current line, to run logic...
I have following code but in the fact that it only returns the contents of the first line...
< inlineStyle = af:table ' height: 200px; "width ="100% "value =" #{bindings. " Var Entries_VO1.collectionModel}"="row ".
lines = ' #{bindings. " Entries_VO1.rangeSize}.
emptyText = "#{bindings." Entries_VO1. Viewable? "{'No data to display.': 'Access Denied.'}".
fetchSize = "#{bindings." Entries_VO1.rangeSize}.
rowBandingInterval = '0 '.
filterModel = "#{bindings." Entries_VO1Query.queryDescriptor}.
queryListener = ' #{bindings. " Entries_VO1Query.processQuery}.
filterVisible = "true" varStatus = "vs."
selectedRowKeys = ' #{bindings. " Entries_VO1.collectionModel.selectedRow}.
selectionListener = "#{backingBeanScope.main.tableRowSelected} '"
rowSelection = "single" id = "t1" >

{} public void tableRowSelected (SelectionEvent selectionEvent)
Add the code in the event here...
RowKeySet rs = selectionEvent.getAddedSet ();
Iterator it = rs.iterator ();
DCBindingContainer links =
(DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
DCIteratorBinding = empIter
bindings.findIteratorBinding ("Entries_VO1Iterator");
RowSetIterator empRSIter = empIter.getRowSetIterator ();
While (it.hasNext ()) {}
Key = (Key) ((List) it.next () .get (0);
Line currentRow = empRSIter.getRow (key);
System.out.println (CurrentRow.GetAttribute ("XmlContent"));
}

}

in the above code I selectionListener "# {bindings." Entries_VO1.collectionModel.makeCurrent}"to the one above.

and also, when the page first loads everything, I want the rows in the table deselection...

Could someone help me with this please...

-Thank you.
Kind regards.

jdev version: 11.1.1.4.0

Published by: Santosh Vaza on March 7, 2011 15:40

Thanks nini! Your solution worked for me.

Tags: Java

Similar Questions

  • ADF: How to avoid the selection of lines of default table by the ADF

    Hello

    My Version of JDeveloper is 11.1.1.5

    Scenario, I have two related tables project and Project_Documents and they are hierarchical in my ProjectVO display object. Since they are hierarchical, on my page if I select any project, I'm related document
    in the Project_Documents table.

    But everytime I open this page, project table is selected by default with the first row.

    How to avoid this? I can do to not select any default line by the ADF? So that the user must be able to select the first line, not by the ADF itself... Is there a way to do this?

    Thanks in advance,

    remove the table def selectedRowKeys or disable rowkeyset programmatically.

    RKS RowKeySet = t1.getSelectedRowKeys ();
    RKS. Clear();
    AdfFacesContext.getCurrentInstance () .addPartialTarget (t1);

  • How to use the checkbox to select several lines of af: table

    Hi all
    I want to use the checkbox to select several lines of af: table

    Kind regards
    Tom

    Hello

    look at this link
    http://Sameh-Nassar.blogspot.com/2009/12/use-checkbox-for-selecting-multiple.html

    Kind regards
    Felix

  • How can disable us the selection of lines under condition

    Hi Experts,

    JDEV version 12.1.3.0

    How can disable us the selection of lines under certain conditions.

    As the lines newly unregistered should be allowing the selection of lines.

    Saved lines should be disabled from the selection.

    Can achieve us.

    Please me advice accrdingly

    Thank you

    Roy

    You are implementing a generic selection as shown here http://www.oracle.com/technetwork/developer-tools/adf/learnmore/23-generic-table-selection-listener-169162.pdf Manager in this handler, you check and validate the selection of our not.

    Timo

  • Dynamic action - set a value of element based on the selection of lines of report

    Hi people,

    Does anyone have an example how to set up a dynamic action, which could fill an element with the selected ID based on the selection of line of the report on the same page?

    Demo:
    http://Apex.Oracle.com/pls/Apex/f?p=19543:2

    If I select an item in the report, then I would fill in 'Selected ID' element with the value of the selected report EMPNO line.


    Later, I would use it for the display of parts of master / detail on the same page.

    Thank you very much
    Tomas

    For this sample page, add the following JS code to run when the page is loaded.

    $('.highlight-row td').click( function(){
      //fetch record id from the cell contents of first column in row
      id = $(this).parent().children('td:eq(0)').text();
      //set page item to selected id
      $('#P2_SELECTED_ROW').val(id);
    });
    
  • Selecting a line to &lt; af:table &gt; triggers continuously refresh the page

    Hello

    I have a table that reflects the State of some data. When loading the page view fills correctly and sets the initial value on a detail panel.

    When I select a line the page goes into a constant loop (post). The detail panel updates with the selection, but the loop continues.

    We are doing something wrong or that someone has encountered this problem?

    Thank you.

    -Bill

    Env: Build JDEVADF_11.1.2.4.0_GENERIC_130421.1600.6436.1


    EDIT - cut any additional data that were not relevant to the response.

    Hello

    on the link layer (PageDef) go to the iterator and set the property "ChangeEventPolicy" to "PPR" 'None '.

    Frabnk

  • How to pass the line of the selected as param to taskflow table?

    Hi all

    Trying to enter values of selected table row and pass them to a taskflow showing as a dialog and to find myself lost. I realized that I can grab a hold of the current line via an associated managedbean but I don't know how I can do this and then pass the values of the selected line as a parameter to a taskflow that appears when you click on view the btn. Think Miss me just something here.

    Any help is appreciated,
    Wraith

    Perhaps you will help http://www.gebs.ro/blog/oracle/oracle-adf-creating-an-addedit-bounded-task-flow-using-a-new-transaction/

  • Table (ADF 11 g) does not get updated on the selection of lines...

    Hi all

    I have a table element (ADF 11 g) in my page with the selection of multiple lines. I have my own row selection listener. Whenever I have select several lines with the CTRL key, the table is getting updated. It is fetching the data again for each selection. I don't want the table to get updated whenever I select a line. In the im listener manually selected do the line current. The code below is the table row selection listener.

    public void tableRowSelectionListener (SelectionEvent selectionEvent)
    {
    Add the code in the event here...
    String tableRowSelectionListener = "tableRowSelectionListener";
    Table richeTableau = (RichTable) selectionEvent.getComponent ();
    Set of keys to RowKeySet = table.getSelectedRowKeys ();
    Txn_id = number ((Number) ((Key) ((List) keySet.toArray () [0]) .get (0)) .getAttribute (0));
    int noRowsSelected = ((List) keySet.toArray () [0]) .toArray () .length;
    Rank [txnrows] = null;
    if(noRowsSelected == 1)
    {
    PscTransactionsViewImpl txnVO = (PscTransactionsViewImpl) amImpl.getPscTransactionsView2 ();
    if(txnVO!=null)
    txnrows = txnVO.findByKey (new Key (new Object [] {txn_id}),-1);
    If (txnrows! = null & & txnrows.length > 0)
    {
    SelectedRow PscTransactionsViewRowImpl = (PscTransactionsViewRowImpl) txnrows [0];
    txnVO.setCurrentRow (selectedRow);
    }
    }
    }

    How to select a row in the table easily (without the table is refreshed). ?

    Thanks in advance,
    Swathi

    Hi swati,

    Set property of 'changeeventpolicy' on 'none' & 'useRowHints' to 'default' for the list that you iterate.

    YP.

  • How to get the selected row in a programmatic table of the ADF (table generated from a bean)

    Hi all


    We use JDeveloper Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5) and connect to the SQLServer database.


    How to get the selected line in a programmatic (using a SortableModel custom not a display object) ADF table (generated from a bean)?


    We are trying to get the selected row in a bean of a programmatic ADF table to retrieve data based on the selected line.


    Any idea?

    Well, you can use selectionListener to set the selected line to a variable of bean (but this bean must be in extended view or some superiors)

    Something like this: http://www.awasthiashish.com/2015/07/get-selected-row-singlemultiple-from.html

    Dario

  • How to clear the selection on an ADF faces table?

    I thought I'd call setSelectedRowKeys (null) gives the desired result. However it is not. Can you think of a reason why it would not clear the selection? What should I do?

    Here's the specific scenario:

    I have a two ADF faces table tell A and B with a column each and both of them have simple lines and their rowSelection property is set to "single". Now the requirement is when a line is selected from A, it must clear all selections of B and vice versa. So I registered selectionListeners on the tables and the code that is running inside this method does the following for the table has not been selected :

    tablenNotSelected.setSelectedRowKeys (null);

    lets say, I click on a first line, then on a row of B. So far so good. So if I click on the A, the control won't to the SelectionListener method. I think that SelectionEvent isn't getting fired no doubt because the previous selection has not been erased.

    JDev version I use is JDEVADF_MAIN_GENERIC_121113.1351.6521

    What I'm missing here?

    Published by: 981525 on January 23, 2013 08:20

    try to add addPartialTarget (table) after you turn off the selection.

  • Get the number of lines to different tables on the same line

    How can I get the number of lines for the different tables in a single line:

    SELECT count (A), count (B), count (C) table tb_a A, tb_b B, tb_c C;

    Thank you!

    Maybe if you want a little sophisticated look ;)

    select *
      from (select 'a' tbl_name,count(*) cnt
              from table_a
            union all
            select 'b' tbl_name,count(*) cnt
              from table_b
            union all
            select 'c' tbl_name,count(*) cnt
              from table_c
           )
     pivot (max(cnt) kount for tbl_name in ('a' as tbl_a,'b' as tbl_b,'c' as tbl_c))
    

    Concerning

    Etbin

  • Bug? -commandLink does not change the selection of lines in 11.1.2

    In 11.1.1.3 jdeveloper with ADF BC, a read-only table ADF with the selection of simple lines and commandLink in one of the columns will cause the selection of rows to change when the link is selected. In 11.1.2 line selection does not change when the link is selected. Is this a bug or a new feature of 11.1.2? Is it possible to behave as in 11.1.1.3?

    Thank you
    Bob

    work around: http://blogs.oracle.com/jdevotnharvest/entry/jdeveloper_11_1_2_command

    Frank

  • Creation of nested with the Out-Of-Line storage option table

    Hi all

    I want to know the ability to adjust the table as out-of-line.

    Normal table creation is like this:
    CREATE TABLE BID_XML( BID_INSERT_STAMP DATE) ;
    
    ALTER TABLE BID_XML
    ADD( GLE XMLType) XMLType column GLE STORE AS OBJECT RELATIONAL
    XMLSCHEMA "http://www.schemas.th.com/IntBID03" ELEMENT "IntegrationBID"
    VARRAY GLE."XMLDATA"."Organization"."OfficerInformation"."Officer" STORE AS TABLE officers_tab;
    But we cannot access table officers_tab directly, so I want to define officers_tab as out-of-line? How can I do this?

    -Yasser

    Hi Yasser,

    Indeed, you can't do

    SELECT * FROM officers_tab;
    

    but you can question her via the SCOREBOARD operator:

    SELECT t.bid_insert_stamp,
           x.*
    FROM bid_xml t,
         TABLE(t.gle.xmldata."Organization"."OfficerInformation"."Officer") x;
    

    Isn't that enough?

  • Programmatically change the selected cell/line of control multi-column listbox

    I want to programmatically change the selected cell of a multicolumn list box whose selection Mode is set to highlight the whole line.  I would use this to highlight the line whatever the list box, I chose to.  It would work the same way if the user has clicked on a line to select and highlight that particular line.  Set Active cell does not fulfill this.

    Steve

    Try to use the property value; p

  • Satellite L670-1HJ-speakers interns are not silent during the selection of line output

    I want to use an external set of speakers, but when plugged, selection of output in the Realtek HD Audio Manager disables the internal speakers, instead only reduce their volume a little. Selection headset does not switch their stop, but this causes audio being sent to the levels of helmet, which sounds terrible on normal speakers and is therefore not an option.

    Is there a way I can get it to turn them off when you use output line too or just disable the internal speakers in total?

    Have you checked all the available sound settings?
    Open the properties of the sound > playback devices and try to disable the speakers out there.

    I only helmet and, unfortunately, can not test it for you, but there must be an option where you can turn off the internal speakers.

Maybe you are looking for

  • iPhone 5 s allow me to edit photos

    At first my iphone would not save the images I took - but after I reset and restored - it worked, but now I can't edit photos (cropping, filters, etc.) How to fix this?

  • Import from a camera.

    I want to stop Photos to open automatically when I attach my camera. According the "Help" of pictures feature I can select "do not open Photos when I am attaching this device" by pressing the 'Action' button when my camera is fixed. I can't find that

  • How to find a file on my iPad

    I have an attachment that I have saved as a .docx file. Where is - this is recorded so I can use it as a download in another application?

  • Small color wheel keeps going in a lot of time and activity stops.  What is the problem and you have to?

    Chromatic wheel keeps going of and activity stops.  What is the problem and the solution?

  • Center of mass

    Hello This is a picture taken by a camera. How to automatically find the coordinates of the center of mass of my character which is actually a kind of dumbbell. I would use the fact that my barbell has a balanced image. Can someone help me with a sim