IlleagalAurgumentException while selecting  multiple rows in  a table

hi
i am facing the problem with the adfTable selection.when i select more number of rows or selecting the rows fastly some time key set becomes null and also giving IlleagalAurgument Exception. i am giving the code i am using below
List tableData=(List)table1.getValue();
Iterator it=table1.getSelectedRowKeys().iterator();
while(it.hasNext()) {
Integer keyStr =(Integer) it.next();
System.out.println(" selected key ===="+keyStr);
if(keyStr!=null)
selectedList.add((FinalCurriculumStrands)tableData.get(keyStr));
keystr should not become null when there are selected rows.but it is coming as null.because keystr is null i am unable recover selected rows.please give me the solution.

duplicate: af:adfTable Selection issue

Similar Messages

  • Select multiple rows from dual table

    Is it possible to select multiple rows from dual table using a single select statement.
    i.e., i want the out put to be
    column_name
    1
    2
    3
    4
    Edited by: vidya.ramachandra on Dec 14, 2009 8:24 AM

    Aside from the fact you're responding to an old thread...
    1002424 wrote:
    While using CONNECT BY, I see it always leave behind one row.
    Suppose I have a condition based on which I have to generate constant rows like
    SELECT 1 FROM DUAL WHERE ROWNUM < N;
    Here if N = 0, still it gives out single row.... you are obviously doing something wrong in your code elsewhere, because that SQL statement does not always return a single row...
    SQL> SELECT 1 FROM DUAL WHERE ROWNUM < 0;
    no rows selected
    SQL>

  • Selecting multiple rows in a table

    Hi All,
    I have one problem with selecting multiple rows in a table.I tried with setting table property-selectionMode as Multi, but i dinn't get the solution.
    please provide me solution for this.
    Thanks & Regards,
    Sreelakshmi.

    HI
    Int leadSelection = wdcontext.nodemodelnode.getLeadSelection();
      for(int i=0;i<wdcontext.nodeModelNode.size;i++)
        if(wdcontext.nodeModelNode.isMultiselected(i) || leadSelection ==i)
               String name = wdcontext.nodemodelnode.getnameelementatindex(i).getName();
               String  address = wdcontext.nodemodelnode.getaddresselementatindex(i).getAddress();
               String age = wdcontext.nodemodelnode.getAgeelementatindex(i).getAge();
            Create a method for the Table Property onLeadSelect() where you can open a popup window
             Create a value node and with attributes same as Table attributes and then set the values of the table
             to the value node attributes.
    Thanks

  • Selecting multiple rows of a table

    Hi Forum,
    How to select multiple rows of a table at a time? Please help me..
    Thanks
    Swapna

    Hi Swapna,
    To select more then one row in table, just set the selectionmode property of table to 'multi' or 'auto' and also change the selection property of the node (to which table is binded) to  0:n.
    I hope it helps.
    Regards
    Arjun
    Edited by: Arjun on Feb 4, 2009 11:52 AM

  • 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

  • Select multiple row in a table that are not connected

    I want to be able to select multiple rows, but want to be able to select rows that are not next to each other. They maybe have one or two rows between. Is there anyway to do this in a table?
    Thanks

    So do a lot of other people, but you can’t.
    Tell Adobe here: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Bob

  • "Server Exception during PPR" While selecting a row in a table

    Hi everyone
    I have a table inside the "detailStamp" facet of another table
    Whenever i select a row in this inner table, i get an NullPointerException
    Has anybody seen this behaviour before?
    Here's the full log for this error:
    [2008-08-19T13:12:20.109-03:00] [adfinternal] [ERROR] [] [view.faces.config.rich.RegistrationConfigurator] [tid: 12] [ecid: 0000HjRjFfU000000000000000030e0M700000000H,0] [APP: current-workspace-app] Server Exception during PPR, #3[[
    java.lang.NullPointerException
         at oracle.adfinternal.view.faces.model.binding.RowDataManager.setRowKey(RowDataManager.java:122)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.setRowKey(FacesCtrlHierBinding.java:507)
         at org.apache.myfaces.trinidad.component.UIXCollection.setRowKey(UIXCollection.java:423)
         at org.apache.myfaces.trinidad.component.UIXCollection.setClientRowKey(UIXCollection.java:653)
         at org.apache.myfaces.trinidad.component.UIXCollection.setCurrencyString(UIXCollection.java:570)
         at org.apache.myfaces.trinidad.component.UIXCollection.invokeOnComponent(UIXCollection.java:1052)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.invokeOnComponent(ContextSwitchingComponent.java:139)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.invokeOnComponent(ContextSwitchingComponent.java:139)
         at oracle.adf.view.rich.component.fragment.UIXPageTemplate.invokeOnComponent(UIXPageTemplate.java:175)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
         at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._fixClientIds(LifecycleImpl.java:785)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:263)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:178)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adfinternal.view.faces.webapp.rich.SharedLibraryFilter.doFilter(SharedLibraryFilter.java:135)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:69)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)
         at oracle.adfinternal.view.faces.activedata.ADSFilter.doFilter(ADSFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:241)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:198)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:141)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.security.jazn.oc4j.JAZNFilter$3.run(JAZNFilter.java:434)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:308)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:452)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:583)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:334)
         at com.evermind.server.http.HttpRequestHandler.doDispatchRequest(HttpRequestHandler.java:942)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:843)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:658)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:626)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:417)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:163)
         at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    ]]

    I am also facing similar issue. Please help
    Caused by: java.lang.NullPointerException
    at oracle.adfinternal.view.faces.model.binding.RowDataManager.setRowKey(RowDataManager.java:122)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.setRowKey(FacesCtrlHierBinding.java:507)
    at org.apache.myfaces.trinidad.component.UIXCollection.setRowKey(UIXCollection.java:423)
    at org.apache.myfaces.trinidad.component.UIXCollection.processSaveState(UIXCollection.java:247)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:215)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:215)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:215)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:215)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:215)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:215)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:215)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:215)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:848)
    at javax.faces.component.UIComponentBase.processSaveState(UIComponentBase.java:1094)
    at org.apache.myfaces.trinidadinternal.application.StateManagerImpl._saveSerializedView(StateManagerImpl.java:284)
    at org.apache.myfaces.trinidadinternal.application.StateManagerImpl.saveView(StateManagerImpl.java:144)
    at com.sun.faces.application.ViewHandlerImpl$WriteBehindStateWriter.flushToWriter(ViewHandlerImpl.java:897)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:184)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:178)
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:176)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:627)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:245)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:205)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)

  • Reg Selection of  Multiple Rows in a Table

    Hi all,
    I have to select multiple rows from a table and have to display those selected records in another table in the next screen.
    The problem is, when I am selecting the records in a table, selection should not be allowed on some records based on a condition. Is it possible with the default selection mode of webdynpro. If so, Please tell me how can we disable the selection of certain records in a table(using the default selection mode provided by webdynpro)
    Else, if we have to use check boxes for selection(in case of my problem), please do help me out in how to disable the selection of certain records in a table(using check boxes for selection).
    Please help me out. Its urgent...
    Reward points guranteed.
    Regards,
    Murthy.

    HI Narayana,
    Multiple selection  property is specific to a table, not for a tableElment(ie. for a row), so u cant set some of the rows as multi selected and some as node
    U can use Checkbox for this purpose. Based on the condition u can make the check box as enabled and disabled
    To achieve this, Create 2 boolean variables inside table node, one for checkbox value(Let it be <b>CBValue</b> .Bind this to checked property of Checkbox) and other for enabling and disabling Checkbox(Let it be <b>CBReadOnly</b>. Bind this to readonly property of CheckBox).
    At the time of creation of table elements, as per the condition, u can control the selection as
    IPrivate<View>.I<Table>Node tNode=wdContext.node<Table>();
    for(int i=0;i<5;i++)
    IPrivate<View>.I<Table>Element tEl=tNode.create<Table>Element();
    tNode.addElement(tEl);
    tEl.setCBValue(false);//Unchecking Checkboxes initially
    if(condition=non selectable)
      tEl.setCBReadOnly(true);
    else
      tEl.setCBReadOnly(false)
    Regards
    Fahad Hamsa

  • Unable to select any row(s) in table/ALV

    Hi ,
    I am having a problem while selecting a row in a table/ALV.
    I am displaying data in a table which is NOT set to 'Initialize lead selection' in the context.When it is displayed and I try to select a row the row does not get selected(highlighted) in the view.
    However,I am able to perform tasks on 'Onselect' event on the rows.Just that its not getting highlighted neither in table nor in ALV.
    What could be the reason for this ? I do not want the context element to be set as 'Initialize lead selection' as that would highlight the first line of the table when the view is rendered first time.
    Thanks for your help,
    Sandip.

    hi sandip,
    Try this method
    lo_table_sett  TYPE REF TO if_salv_wd_table_settings.
    lo_config_tab TYPE REF TO cl_salv_wd_config_table.
    lo_config_tab = lo_ref_interface_controller->get_model( ).
    lo_table_sett   ?= lo_config_tab.
    lo_table_sett ->SET_SELECTION_MODE( value ).
    value- '00' for auto
             '02' for single
             '04' for multi
             '06' for none
             '07'  for singleNolead
             '08' for multi Nolead
    Regards,
    janakiram

  • How to select multiple row of table using check box?

    hi,
             i am having table on view having first field as checkbox. what i want, when i click on checkboxes in multiple rows, and i click on any button i need to use those content to next view...
              my problem is if i select only one row , i can use onlead select property of table..but when i select multiple rows  through check box how should i read contents of table....?
    Plz solve it.
    Thanks,
    Saurin Shah

    Hello Saurin,
    You are right using LeadSelection you can select only 1 row at a time. You will have to make use of Selection for achieving this. First you will have to change the selection mode of the table to multiple & also change the selection property for the related context to 0..n . Please find a code extract which might help you. (However this facility is only available from SP 14.) The main part is using the set_selected method of if_wd_context_node.
    data: node_zcourse_details type ref to if_wd_context_node,
             node_course_assign type ref to if_wd_context_node,
             elem_course_assign type ref to if_wd_context_element,
             stru_course_assign type if_v_details=>element_course_assign ,
             item_popin_selected like stru_course_assign-popin_selected.
    "     navigate from <CONTEXT> to <ZCOURSE_DETAILS> via lead selection
    node_zcourse_details = wd_context->get_child_node( name = if_v_details=>wdctx_zcourse_details ).
    "     navigate from <ZCOURSE_DETAILS> to <COURSE_ASSIGN> via lead selection
    node_course_assign = node_zcourse_details->get_child_node( name = if_v_details=>wdctx_course_assign ).
    "     @TODO handle not set lead selection
    if ( node_course_assign is initial ).
    exit.
    endif.
    data elem_set type wdr_context_element_set.
    field-symbols <wa_elem> like line of elem_set.
    elem_set = node_course_assign->get_elements( ).
    loop at elem_set assigning <wa_elem>.
       <wa_elem>->set_selected( TRUE OR FALSE ). " Supply either TRUE/FALSE in here
    endloop.

  • Selecting multiple rows using column header with checkbox in it.

    Dear All.,
    I am trying to select multiple rows with checkbox in column header but it doesnot works...
    Following is my codel
    <af:table value="#{bindings.xx.collectionModel}"
                          var="row"
                          rows="#{bindings.xx.rangeSize}"
                          emptyText="#{bindings.xx.viewable ? 'No data to display.' : 'Access Denied.'}"
                          fetchSize="#{bindings.xx.rangeSize}"
                          rowBandingInterval="1"
                          filterModel="#{bindings.xx.queryDescriptor}"
                          queryListener="#{bindings.xx.processQuery}"
                          varStatus="vs" partialTriggers="sbcSelectAll sbcChkFlag"
                          selectedRowKeys="#{bindings.xx.collectionModel.selectedRow}"
                          selectionListener="#{bindings.xx.collectionModel.makeCurrent}"
                          rowSelection="none" id="tCdMast" width="400"
                          columnStretching="column:c4" inlineStyle="height:200px;">
                  <af:column sortProperty="ChkFlag" filterable="true"
                             sortable="true"
                             headerText="#{bindings.xx.hints.ChkFlag.label}"
                             id="c2" width="55"
                             inlineStyle="#{row.ChkFlag ? 'background-color:#9CACC9;' : ''}">
                    <af:selectBooleanCheckbox simple="true" value="#{row.ChkFlag}"
                                              selected="#{row.ChkFlag}" id="sbcChkFlag"
                                              autoSubmit="true" immediate="true"/>
                    <f:facet name="header">
                      <af:selectBooleanCheckbox simple="true"
                                                autoSubmit="true"
                                                valueChangeListener="#{xxBean.onTableChkAllCheckChanged}"
                                                id="sbcSelectAll"/>
                    </f:facet>
                  </af:column>
    </af:table>
    Managed Bean
        public void onTableChkAllCheckChanged(ValueChangeEvent valueChangeEvent) {
            Boolean newValue =
                Boolean.valueOf(u.nvlString(valueChangeEvent.getNewValue(),
                                            "false"));
            Boolean oldValue =
                Boolean.valueOf(u.nvlString(valueChangeEvent.getOldValue(),
                                            "false"));
            if (newValue.equals(oldValue))
                return;
            int rowIndex=0;
            ViewObject vo = u.findIterator("xxIterator").getViewObject();
            vo.reset();
            while(vo.hasNext()){
              Row row;
              if(rowIndex==0)
                  row=vo.first();
              else
                  row=vo.next();
                 row.setAttribute("ChkFlag", newValue.booleanValue());
              rowIndex=1;
            u.addPartialTargets(tableDocuments);
        }Please help!!.
    Thanks & Regards,
    Santosh.
    jdeve 11.1.1.4.0

    Can you check this sample in the blog post?
    http://sameh-nassar.blogspot.com/2009/12/use-checkbox-for-selecting-multiple.html
    Thanks,
    Navaneeth

  • How to select multiple rows from List Of Values

    Hello,
    I use ADF 11g to create my list of values (LOV). I want to select multiple rows from it. but i can't.
    so how i can select many rows to set them in my adf table.
    Thank in advance

    Hi,
    LOV is map to an attribute in the viewObject so it will return only one value or more values from selected row. You can't select multiple rows from LOV.
    But you can do this by using popup which you can select multiple rows and insert the selected rows to another table.
    This blog post explain how to achieve this :
    http://husaindalal.blogspot.com/2009/11/search-from-popup-and-add-to-new-table.html#comments
    Sameh Nassar

  • Issue while deleting a row from a table

    Dear friends,
    i am getting an issue while deleting a row from a table, pls check screen shots , the first screen shot is my table contents
    when i delete 2 row , the second row is deleting properly like below screen shot
    but i want like below screen shot , Col1 contents should be like pic 1 . could any one pls let me know how to solve this issue.
    Thanks
    Vijaya

    Hi vijaya,
    please try this code, it will help you.
    DATA : it_rows  TYPE wdr_context_element_set,
              wa_rows LIKE LINE OF it_rows.
       DATA lo_nd_table TYPE REF TO if_wd_context_node.
        DATA lt_table TYPE wd_this->elements_table.
       DATA lo_el_table TYPE REF TO if_wd_context_element.
       DATA ls_vbap TYPE wd_this->element_table.
    DATA: ld_index TYPE i.
    data value TYPE sy-index.
    * navigate from <CONTEXT> to <table> via lead selection
       lo_nd_table= wd_context->get_child_node( name = wd_this->wdctx_table ).
    * @TODO handle non existant child
    * IF lo_nd_table IS INITIAL.
    * ENDIF.
    * get element via lead selection
    * alternative access  via index
    * lo_el_table = lo_nd_table->get_element( index = 1 ).
    * @TODO handle not set lead selection
       IF lo_el_table IS INITIAL.
       ENDIF.
    * navigate from <CONTEXT> to <table> via lead selection
       lo_nd_table = wd_context->get_child_node( name = wd_this->wdctx_table ).
    * @TODO handle non existant child
    * IF lo_nd_table IS INITIAL.
    * ENDIF.
       lo_nd_table->get_static_attributes_table( IMPORTING table = lt_table ).
    * @TODO handle non existant child
    * IF lo_nd_table IS INITIAL.
    * ENDIF.
    ** @TODO compute values
    ** e.g. call a model function
    * navigate from <CONTEXT> to <table> via lead selection
       lo_nd_table = wd_context->get_child_node( name = wd_this->wdctx_table ).
    * @TODO handle non existant child
    * IF lo_nd_table IS INITIAL.
    * ENDIF.
    ** @TODO compute values
    ** e.g. call a model function
    it_rows  =  lo_nd_table>get_selected_elements( ).
       CALL METHOD lo_nd_table->GET_LEAD_SELECTION_INDEX
       RECEIVING
         INDEX  = value .
      LOOP AT it_rows INTO wa_rows.
         CALL METHOD wa_rows->get_static_attributes
           IMPORTING
                  static_attributes = ls_table.
         READ TABLE lt_table INTO ls_table WITH KEY col1 = ls_table-col1.
          ld_index = value.
              ENDLOOP.
       CLEAR : ls_table-col2,
             ls_table-col2.
       MODIFY lt_table INDEX ld_index FROM ls_table.
      lo_nd_table->bind_table( new_items = lt_table set_initial_elements = abap_true ).

  • Get Multiple Rows into internal Table using Webdynpro Alv Display ..

    Hi guys ,
    I need to find out the logic for getting all the selected rows into the internal table.
    When i display the ALV Output on webdypro screen .
    USer Selects multiple rows for further processing ..
    Ineed to get all the rows selected by user into an internal table .
    Please let me know how to achive this ...
    Thanks in advance for quick reply
    Regards
    Saurabh Goel

    Hi,
    You need to use the method GET_SELECTED of IF_WD_CONTEXT_NODE to get the rows selected. Also ccheck for the paramters of that method, this retruns the element set.
    This meets your requirement.
    Regards,
    Lekha.

  • Inserting Multiple Rows in a table

    Hello,
    I need to insert multiple rows in a table with the selected items from a list (Multiple select).
    How do i go about it. I'm using ADF-struts-UIX application on Jdeveloper 9.0.5.2
    Thanks.

    Jonas, I've downloaded the sample application from your ADF UIX Editable table tip but have some problems.
    I can't even open the emp.table.uix file - errors are:
    Parsing error. Unable to parse binding.
    javax.servlet.jst.el.ELException:Function ctrl:createSortableHeaderModel was not found.
    and
    javax.servlet.jst.el.ELException:Function ctrl:getSortOrder was not found.
    Also - is there a place in the sample where you define the sample tables? They do not seem to match the standard sample emp table, for instance.
    I've just started using JDeveloper and would like to use the solution.
    Thanks - Linda

Maybe you are looking for

  • HP Photosmart Premium All-IN-One printer CD055A

    I have the All-In-One printer, however when I go to actually print something, it is not grabbing the paper.  The roller is rolling, but I am not sure if there is some sort of lift gate in it thats not lifting?  Just wondering if anyone has had this p

  • Install problems - Red Hat 5.2 and Oracle 8.0.5.1

    I am trying to install Oracle 8.0.5.1 on 200Mhz/48Meg Intel Pentium system with RedHat 5.2 As I'm rather new to Linux, I decided to find a thorough description of the installation procedure and have used the one on: http://jordan.fortwayne.com/oracle

  • Serial Number

    I have assigned Serial Number profile to material and that profile is having serial number creation in production order create and release. When i do auto gr using Control key PP03 then serial numbers created from production order does not get copied

  • Outlook 2010 - Subject line of new e-mail changes to duplicate the subject of the e-mail below

    I'm having the strangest issue with a new install of Outlook 2010. Sometimes when I receive a new e-mail, the from, subject, received, and size fields will duplicate the information from the e-mail below it. In other words, no matter what the sender,

  • Binary tree inorder traversal without recursion

    Using Java, write a method that does an in-order traversal of a binary tree WITHOUT using recursion. based on the following code BTreeNode.java public class BTreeNode public BTreeNode LEFT; public BTreeNode RIGHT; public String VALUE; BTreeUtil.java