Multiple rowselection in 12c

Hi there.
In 11g this short code:
RowKeySet rks = table.getSelectedRowKeys();
Returned all keys of multiple selected rows in a table.
In 12c this code returns just the first key.
System.out.println(rks.size()); // 1
How to make it work as needed?
Table rowSelection is set to multiple.
Thanks.
ADF 12.1.3

Can you paste your Table Definition code here.
Remove the selectedRowKeys attribute from the table definition.
Refer  the below link for more details:
https://blogs.oracle.com/aramamoo/entry/getting_all_selected_rows_in_adf_table_with_multiple_rows_selection_enabled
Cheers
AJ

Similar Messages

  • Problem with panelbox and af:table scrollbar issue and panelstretchlayout

    Hi,
    <af:panelStretchLayout >
    <f:facet name="center">
    <af:panelSplitter orientation="vertical" positionedFromEnd="true" inlineStyle="vertical-align:inherit;">
    <f:facet name="first">
    <af:subform default="false" id="xyz">
    <af:panelBox background="light" text="Advance Search" inlineStyle="color:InactiveCaption;" type="default">
    <af:panelGroupLayout layout="scroll">
    <af:commandButton text="Search" id="advSearch" actionListener="#{ADFStandardsLeftMenu.getAdvancedSearchData}"/>
    <af:spacer width="20"/>
    <af:commandLink text="Search Tips" id="searchtips2" inlineStyle="font-weight:bold;" partialSubmit="true" clientComponent="true">
    <af:showPopupBehavior triggerType="click" align="afterEnd" popupId="advSearchPopupId"/>
    </af:commandLink>
    </af:panelGroupLayout>
    </af:panelBox>
    </af:subform>
    </f:facet>
    <f:facet name="second">
    <af:panelBox background="light" text="Basic Search" inlineStyle="color:InactiveCaption;" type="default">
    <af:spacer height="20"/>
    <af:panelGroupLayout layout="scroll" >
    --- some inputtext command buttion, dropdowns...selectonechoice..are there inside this
    </af:panelGroupLayout>
    </af:panelBox>
    </f:facet>
    </af:panelSplitter>
    </f:facet>
    </af:panelStretchLayout>
    problem:
    (we have 2 panels) of vertical
    when i run this application it is working fine. But when we minimise the browser(half size) or if we add more no of toolbars in browser (important) obviously browser size will decrease,
    that time 1 panel getting decreased second panel is maintaing fixed size, not resizing.
    I tried to give fixed size (percentage) for both panels wt ever the operation does.
    and 2nd issue
    ========
    <af:panelStretchLayout>
    <f:facet name="center">
    <af:panelSplitter orientation="vertical"
    positionedFromEnd="true" >
    <af:panelBox background="light" text="Search For Standards" inlineStyle="color:InactiveCaption;vertical-align:50%;" >
    <af:table value="#{ADFStandardsLeftMenu.mostCommonAgencySelectedList}"
    id="t1" width="100%" var="stdURL"
    emptyText="<html><b><font color='red'><center>No Records Found</center></font></center></b></html>"
    disableColumnReordering="true"
    columnSelection="multiple"
    rowSelection="multiple"
    inlineStyle="text-align:left;"
    verticalGridVisible="true"
    horizontalGridVisible="true">
    <af:column>
    </af:column>
    ---- we have more 8-10 columns
    </af:table>
    </af:panelbox>
    </af:panelsplitter>
    </f:facet>
    </af:panelstretchlayout>
    problem: that time im getting by default horizontal and vertical scrollbar, but if user add toolbars in browser (view->customize)add toolbar no of say 10-15 that time window size decreasing
    so, table size is crossing panelbox size, and bottom scrollbar is not visible (hiding under site bottom layout say site is divided into 4 parts (leftmenu, body(2 panels), right, bottom) (im not using any right layout)
    regards,
    sandeep

    Hi,
    if minimises browser window(half) or by adding more no of toolbars, i given an option as panelgrouplayout layout=scroll.
    it is working fine for 1st panel.
    but 2nd panel scrollbar not coming.
    thanks in adv.
    regards,
    sandeep

  • Table Data in 11g

    Hi Friends,
    I want to new features in 11g compared to 10.1.3 version.
    I have a table with multiple rowselection. In 11g we cannot see checkboxes for the table instead the user can select it.
    But if there are some 1000's of records and user has to select all of them..what is the solution..Meaning do we have "Select All" and "Select None" buttons for the tables in 11g?
    Pls send me any useful info. on this.
    Thanks,
    User

    I guess you can manipulate rowKeySet to achieve this. (rowKeySet.removeAll() and rowKeySet.addAll())
    may be you can provide two buttons for "Select All" and "Select None" and invoke following methods
    "Select None"
    private void clearSelection() {
    RichTable table = (RichTable)FacesContext.getCurrentInstance().
    getViewRoot().findComponent("Table_component_id");
    RowKeySet rowKeySet = table.getSelectedRowKeys();
    if(rowKeySet != null)
    rowKeySet.removeAll();
    "Select All"
    private void selectAllRows() {
    RichTable table = (RichTable)FacesContext.getCurrentInstance().
    getViewRoot().findComponent("Table_component_id");
    RowKeySet rowKeySet = table.getSelectedRowKeys();
    if(rowKeySet != null)
    rowKeySet.addAll();
    hope this help

  • 12c SOA multiple composite deployment using maven

    Hi,
    I am facing issue with 12c SOA composite deployment using maven. I execute the below command for deploying any composite.
    mvn pre-integration-test –f soa-pom.xml –Dcomposite.name=TestMVNProj –Dcomposite.version=1.1
    Issues:
    As seen above by using above command m able to deploy single composte.But i want to deploy multiple composite belongs to  same application or Different something like below.
    AIM- mvn pre-integration-test –f soa-pom.xml –Dcomposite.name=TestSOAProj1,Project2
    Is there any way to achive this please guide me far same
    In any senerio not only is soa composite.can any one guide me how to deploy multiple projects using maven scripts.
    Thanks in Advance
    Prabhat

    Hi Markus,
    I have tried it with profiling its works . thanks!!!! but some how still i was not able to achieve what i want.
    But thanks for you kind references i have done it by using and maven cmd line switch -pl .Now i can exclude.include modules  dynamically.
    For example;-
    <modules>
        <module>Mvntest1</module>
        <module>MvnDeploymentTest</module>
         <module>MvnDeploymentTest2</module>
        </modules>
    I have multiple module  in my parent pom.xml and if i want to deploy only top 2 of  them.
    # mvn pre-integration-test -pl +Mvntest1,+MvnDeploymentTest   (This only support maven version 3.2.1 and above)
    its working fine :-
    Note:- when we using -pl  if we want to include modules we can give module name with "+"sign and for exclude "- or !" we can give multiple module name separated with "," delimiters .
    THANKS MARKUS!!!!!
    **********************************Happy Deployments*************************************
    Regards
    Prabhat

  • 12c Enterprise Manager install OMS multiple instances.

    Hi,
    Please let me know the installtion of high availablity of OMS Instances.
    How we can configure the multi node OMS ?
    Thanks
    Ganesh

    Hi Ganesh,
    You can review below MOS note,
    12c Cloud Control HA: Steps to Install and Configure Multiple 12c OMS Behind a Server Load Balancer (SLB) (Doc ID 1369698.1)
    Additional reference: http://docs.oracle.com/cd/E24628_01/doc.121/e24473/ha_setup.htm#EMADM10663
    In case you are planning to do a standby OMS setup then you can look into the below URL also,
    http://docs.oracle.com/cd/E24628_01/doc.121/e24473/appdx_standby_oms.htm#EMADM13367
    Let me know if this helps.
    Regards,
    Biplab

  • Disable Multiple temp space in OEM 12C

    Hi,
    I've centralized OEM 12C for monitoring. I want to disable the monitoring of multiple temp space.
    i've disabled default temporary tablespace and undo tablespace of the test database in OEM 12c. But it is not covering for multiple temporary tablespaces.
    Is it possible for disable multiple temp space? any other way?
    Thanks in advance.
    Thanks,
    Robin

    Robin,
    You can do a  "Create Like" on the DISABLE TABLESPACE USED (%) ALERTS FOR UNDO AND TEMP TABLESPACES job and modify the sql listed below, which is used for the cursor, to something that will work for your temporary tablespaces.
    select tablespace_name from dba_tablespaces where CONTENTS IN ('UNDO', 'TEMPORARY');
    Regards,
    - Loc

  • Acknowledge multiple incidents on OEM cloud control 12c

    Hey Guys,
    Is there a way to acknowledge multiple incidents through the OEM cloud control 12c GUI like we had in OEM 10g and 11g? I cannot find an option to select multiple incidents and this is really bugging me a lot.
    Thanks
    Abhishek

    From the oracle link you gave
    "Select the incidents to which you want to respond. You can select multiple incidents by holding down the Control key and selecting individual incidents or you can hold down the Shift key and select the first and last incidents to select a contiguous block of incidents."
    Thanks Mani! Fist thing I'll try tomorrow morning
    Doesn't work for me Mani... Anyone else facing issues?
    Message was edited by: oracle.dba.89

  • Importing function with multiple ref cursors in Stored Procedure of Oracle 12c database Using EF6

    Hi Good day!
    I can able to import function for stored procedure of oracle db and able to add the complex type and get the output but i tried to import the procedure which having two ref cursors and unable to retrieve the column information. Only able to retrieve the
    columns of first ref cursor.  Please help me to get the result of two ref cursors which acting as out parameters.

    Having to ref cursors return mutiple recordsets in an Oracle package is like haveng two resultsets return from a MS SQL Server sparc.
    The link may point you in the right direction.
    http://www.codeproject.com/Articles/675933/Returning-Multiple-Result-Sets-from-an-Entity-Fram

  • Multiple selection in table filters 12c

    Hi all,
    I would like to filter a table using  multiple values in the same filter. According to the normal behavior you can use VALUE1 OR VALUE2 OR VALUE3... in the table filter and it works but I have a new requirement where the "OR" cojuntion must be a ",".
    So the question is:
    How to use  "," as conjuntion instead of  "OR"?
    Jhon
    jdev 12c

    Jhon, there is no such function (never has been). You are trying to create an  IN clause.
    What you can do it adopt the technique I outlined in my blog  JDeveloper 11.1.1.6.0: Escape QBE Operators in Filterable Tables | JDev &amp;amp; ADF Goodies
    Here I use a special syntax in the filter field to modify the query. I'm looking for '_and_' in the field to then search for the word 'and' in the column. However, you can modify the sample, use your own syntax and return an IN clause.
    Timo

  • In OEM 12c, how to manage multiple incidents at the same time?

    Hi,
    Is there a way to manage multiple incidents at the same time? For example, if I want to assign owner for multiple incidents in the incident manager, is there a way to do this? Thanks for the help.

    This is currently not supported. This support will be available as part of the next patch set release.
    Please note that you can use Incident rules to assign owners to incidents as they come in or get updated.

  • EM 12c show multiple Top Activity Graph

    Hi,
    i'ver em 12c with 4 db monitored.
    I would like to create a page with 4 Top Activity Graph, 1 for db.
    It's possible?

    Not quite... Your best best is to put them in a group together and play with the charts/group page...

  • Issue in retrieving all the records from ADF Table with multiple row

    Hi,
    As per my requirement, I need to fill the table with multi selected LOV values and when user clicks on commit, I need to save them to database.
    I am using ADF 11g, Multi select table. Using the below ADD method, I am able to add the records but if user clicks on cancel, I need to remove those from view and clear the table as well.
    But the Issue I am facing is, in my cancel method, always I am getting half of the records. Lets assume table contains 100 records but in my cancel method, I am getting only 50 records.
    Please let me know what is the issue in my source code.
    ADD Method:
    public void insertRecInCMProcessParamVal(String commType, String processType, Number seqNumber){       
    try{
    Row row = this.getCmProcessParamValueView1().createRow();
    row.setAttribute("ParamValue7", commType);
    row.setAttribute("ProcessType", processType);
    row.setAttribute("CreationDate", new Date());
    row.setAttribute("CreatedBy", uid);
    row.setAttribute("ParamValueSeqNum", seqNumber);
    row.setAttribute("ProcessedFlag", "N");
    this.getCmProcessParamValueView1().insertRow(row);
    }catch(Exception e){           
    e.printStackTrace();
    Table Code:
    <af:table value="#{bindings.CmProcessParamValueView11.collectionModel}"
    var="row"
    rows="#{bindings.CmProcessParamValueView11.rangeSize}"
    emptyText="#{bindings.CmProcessParamValueView11.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.CmProcessParamValueView11.rangeSize}"
    rowBandingInterval="1"
    selectedRowKeys="#{bindings.CmProcessParamValueView11.collectionModel.selectedRow}"
    selectionListener="#{bindings.CmProcessParamValueView11.collectionModel.makeCurrent}"
    rowSelection="multiple"
    binding="#{backingBeanScope.backing_app_RunCalcPage.t1}"
    id="t1" width="100%" inlineStyle="height:100px;" >
    <af:column sortProperty="ParamValue6"
    sortable="true"
    headerText="#{bindings.CmProcessParamValueView11.hints.ParamValue6.label}"
    id="c1" visible="false">
    <af:inputText value="#{row.bindings.ParamValue6.inputValue}"
    label="#{bindings.CmProcessParamValueView11.hints.ParamValue6.label}"
    required="#{bindings.CmProcessParamValueView11.hints.ParamValue6.mandatory}"
    columns="#{bindings.CmProcessParamValueView11.hints.ParamValue6.displayWidth}"
    maximumLength="#{bindings.CmProcessParamValueView11.hints.ParamValue6.precision}"
    shortDesc="#{bindings.CmProcessParamValueView11.hints.ParamValue6.tooltip}"
    id="it3">
    <f:validator binding="#{row.bindings.ParamValue6.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="ParamValue7"
    sortable="true"
    headerText="Comm Type"
    id="c2">
    <af:inputText value="#{row.bindings.ParamValue7.inputValue}"
    label="#{bindings.CmProcessParamValueView11.hints.ParamValue7.label}"
    required="#{bindings.CmProcessParamValueView11.hints.ParamValue7.mandatory}"
    columns="#{bindings.CmProcessParamValueView11.hints.ParamValue7.displayWidth}"
    maximumLength="#{bindings.CmProcessParamValueView11.hints.ParamValue7.precision}"
    shortDesc="#{bindings.CmProcessParamValueView11.hints.ParamValue7.tooltip}"
    id="it4">
    <f:validator binding="#{row.bindings.ParamValue7.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="ParamValue8"
    sortable="true"
    headerText="#{bindings.CmProcessParamValueView11.hints.ParamValue8.label}"
    id="c3" visible="false">
    <af:inputText value="#{row.bindings.ParamValue8.inputValue}"
    label="#{bindings.CmProcessParamValueView11.hints.ParamValue8.label}"
    required="#{bindings.CmProcessParamValueView11.hints.ParamValue8.mandatory}"
    columns="#{bindings.CmProcessParamValueView11.hints.ParamValue8.displayWidth}"
    maximumLength="#{bindings.CmProcessParamValueView11.hints.ParamValue8.precision}"
    shortDesc="#{bindings.CmProcessParamValueView11.hints.ParamValue8.tooltip}"
    id="it2">
    <f:validator binding="#{row.bindings.ParamValue8.validator}"/>
    </af:inputText>
    </af:column>
    </af:table>
    Backing Bean Code:
    DCBindingContainer dcBindings=(DCBindingContainer)getBindings();
    DCIteratorBinding dcIterator=dcBindings.findIteratorBinding("CmProcessParamValueView1Iterator");
    RowSetIterator rs = dcIterator.getRowSetIterator();
    System.out.println("In Cancel Row Count is : "+ rs.getRowCount());
    if (rs.getRowCount() > 0) {
    Row row = rs.first();
    row.refresh(Row.REFRESH_UNDO_CHANGES);
    row.remove();
    while (rs.hasNext()) {
    int count = rs.getRowCount();
    System.out.println("Count is : "+ count);
    Row row = rs.next();
    System.out.println("Row === "+ row);
    if(row != null){                   
    row.refresh(Row.REFRESH_UNDO_CHANGES);
    row.remove();
    Thanks.

    Issue resolved.
    remove selectionListener and selectedRowKeys....
    code to get all the selectedRows.
    RowSetIterator rs = dcIterator.getRowSetIterator();
    RowKeySet rks = this.t1.getSelectedRowKeys();
    Iterator rksIter = rks.iterator();
    while (rksIter.hasNext()) {
    List l = (List) rksIter.next();
    Key key = (Key)l.get(0);
    Row row = rs.getRow(key);
    Thanks.

  • Select Multiple Rows in a Table without CTRL

    Expecting the user to press "Ctrl" when selecting multple rows is very unfriendly and unintuitive. We'd like the row selection to work as in ALV where you just select multiple rows by clicking on them.
    We've set the tables rowSelectable to true and selectionMode to 'multi' but we still cannot select multiple rows without the CTRL hotkey.
    This issue apparently [arose before|About selection in the table] but wasn't resolved.
    System Details
    SAP_ABA     701     0006     SAPKA70106
    SAP_BASIS     701     0006     SAPKB70106
    SAP_AP     700     0019     SAPKNA7019

    Hello Marc,
    you need to call IF_WD_CONTEXT_NODE->set_selected(index = lv_index) sorry for the typo in my previous comment.
    by calling IF_WD_CONTEXT_NODE->set_selected method wont remove the lead selection.
    to unselect the records, you can call the same method by passing the FLAG value as abap_false.
    so for your usecase the logic will be like this in the ON_SELECT event handler
    1. get the index of the new_lead_selection
    2. check whether this is already seleted in the context node by calling IF_WD_CONTEXT_NODE->IS_selected
    3. if already selected then call IF_WD_CONTEXT_NODE->set_selected( flag = abap_false index = lv_index)
       if not selected then call IF_WD_CONTEXT_NODE->set_selected( index = lv_index )
    Hope this solved your problem.
    BR, Saravanan
    Edited by: Saraa_n on Jul 6, 2011 11:52 AM

  • Selection problem on click-to-edit multiple select table

    We have a af:table with following properties:
    - rowSelection="multiple"
    - editingMode ="clickToEdit"
    If you click on a row to select it, then scroll down so new data is being fetched, then press shift and click on an other row (to select multiple rows), only the last row is selected.
    Did anybody have the same problem? How can it be fixed?
    Version: 11.1.1.6.0

    I've been looking into this issue.
    If you click on the first row to select it, then scroll down to the last row so new data is being fetched, then press shift and click on an other row (to select multiple rows), only the last row is selected.
    This behavior can be reproduced in a simple ADF Table based on the Employees Table.
    In both 11.1.1.6 and 11.1.1.7 the first row and the last row are selected. All rows in between are not.
    If you surround the table with a panelCollection, the footer of the panelCollection shows "1 row selected".
    However, in getSelectedRowKeys() all keys are present. Looks like the rows are being selected but the UI does not reflect this !
    Very annoying for end users.
    If I change clickToEdit to editAll it works perfectly and all selected rows are highlighted.
    The footer of the panelCollection shows "107 rows selected".
    Looks like a bug right ?

  • Could not find multiple file upload in Jdeveloper 11.1.2.3

    Hi,
    I am using Jdeveloper 11.1.2.3, I am trying to use the multiple file upload feature but I could do not find (Rows) propriety in Input file component. so, what I am missing? is there some extra library need to be add to the application?

    Hi,
    its a feature of 12c
    Frank

Maybe you are looking for

  • Got a new computer

    I got a new computer and need to transfer my songs from the old library to my new computer. I burned the iTunes library folder to a disk. I have tried to import, add file to library and add folder to library. I do this, then take out the CD and it sa

  • InitCatalog:Cannot connect to the server

    Hello, We have installed BPC 7.0 in 2-server architecture. First server is VM - Windows 2003 32 bit, it contains - BPC - Reporting Services - Integration Services Second server is physical. Windows 2003 64 bit, it contains - SQL Server 2005 - OLAP Se

  • Where can i download older Photoshop versions

    I have to reinstall my version of photoshop version 7.0 but the CD is damaged. Where can i download it. Allready looking for some time on the website but cant find a download section for this. Harry

  • Podcast Publisher in OS x lion crashes every time I try to do any video or screen capture?

    I'm new to Podcast Publisher on 10.7. I've used Podcast capture and producer in 10.6 along with a server. I cannot get Podcast Publisher to work much at all. I've recorded video or screencasts and it will spin and eventually crash. Trying to open vid

  • Question about stock quantity

    does anybody know how can I get the stock quantity assigned to sales order? which table and which field? I have search MARD but no result. all I can see is the Valuated Unrestricted-Use Stock (LABST). so my question is: 1) what does other quantity fi