Multiselection in Tables

Hi,
I've implemented a View with a table with multi selection.
It all works except the only way to select multiple rows is by holding down on the control key and left mouse clicks selecting the rows.
How come this is so complex for the user? Is it posslbe to make this easier (similar to table controls in ABAP)?
Cheers,
Michael P.

Hi Michael,
as of SP6 or SP7 I´ve noticed the same effect. Since this version multiselection with CTRL or SHIFT + mousebutton is enabled.
I guess that the developers disabled the old way to do multiselection.
Regards Helmut

Similar Messages

  • Problem with Drag & Drop and multiselection in tables

    Hi,
    we have a problem concerning drag and drop and multiselection in tables. It is not possible to drag a multiselection of table rows, as the selection event is recognized or handled before the drag event. So before the drag starts, the selection will be changed and only a single row is selected at the position where you started the drag with a mouse click.
    There was also a java bug with the id 4521075 regarding this problem a couple of years ago. See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4521075.
    This bug has been resolved but in our application we have not enabled drag by setting setDragEnabled(true) on the table as we have an own implementation of a DragSource (which is the table component), and a DragGestureRecognizer to control mimetype and data to be dragged.
    So my question is: Is there any solution for this case without calling setDragEnabled(true) on the table? Or is it possible to enable drag on the table and override some method where the drag recognition happens and the transferable object is created?
    Thanks,

    Thanks for reply,
    Steps to reproduce the problem:
    1) user clicks the ascending sorting icon in the table(the button get disabled after sorting the table).
    2) After sorting user drag and drop some row over another row.
    3) Now the table is no longer sorted.
    4) If user again wants to sort the table now, he cannot do it because the sorting button is still disabled.
    So I want the user to sort the table again, without refreshing the page
    Thanks and Regards,
    Tarun

  • Problem after multiselection on table

    hi
        i have a  table  IT_car_data  where i have to perform 
        multiselection in the table , and iam populated the 
         data in to the table from the itemlistbox , then i need
          to perform multiselection on the table and send it to a structure called It_Car , and add the Structure It_car to the
    RFC.
      for(int i=0;i<n;i++)
                  if(wdContext.nodeIt_Car_Data().isMultiSelected(i) || leadSelection==i )
    String make=wdContext.nodeIt_Car_Data().getIt_Car_DataElementAt(j).getP_Make();
    here below  Zlgs_Car_Data is class for IT_Car Structure Zlgs_Car_Data carData=new Zlgs_Car_Data();
                              carData.setP_Make(make);
    wdContext.currentZlgf005_Outfit_Match_Mm_InputElement().modelObject().addIt_Car(carData);
    then calling the RFC 
    what is  happening is  when i perform multi select and click on the button for example: 1 and 2  row , i able to send it to
    IT_Car, but for the second time when i deselect 1 and 2  and
    select 3 and 4 rows  and send it to IT_Car, iam able to
    see all 1,2,3,4 row in the IT_Car , but i need the only latest one that 3 and 4 row in the It_car ,
    after i perform 1,2 row multiselection onthe table  and call the
    RFC  , i need to invalidate the node so as to clear the IT_car
    but iam not able to .
    can any one help me?

    hi
       thanks for the response
       i have what u have send , but data is not gettign invalidated.
       for(int i=0;i<n;i++)
                  if(wdContext.nodeIt_Car_Data().isMultiSelected(i) || leadSelection==i )
                      wdContext.nodeIt_Car_Data().setLeadSelection(i);
              String pMake =wdContext.nodeIt_Car_Data().getIt_Car_DataElementAt(i).getP_Make();
                           String pModel=wdContext.nodeIt_Car_Data().getIt_Car_DataElementAt(i).getP_Model();
      Zlgs_Car_Data carData = new Zlgs_Car_Data();
                                                          carData.setP_Make(pMake);
                                  carData.setP_Model(pModel);
    wdContext.currentZlgf005_Outfit_Match_Mm_InputElement().modelObject().addIt_Car(carData);
    the above code is for the first Table It_car_data , where i am performing multi match on this table It_car_data .
    next step
    for(int j=0;j<n1;j++)
    if(wdContext.nodeIt_Carv_Data().isMultiSelected(j) || carvLeadSelection==j)            
                        wdContext.nodeIt_Carv_Data().setLeadSelection(j);
                             String make=wdContext.nodeIt_Carv_Data().getIt_Carv_DataElementAt(j).getP_Make();
                        String model=wdContext.nodeIt_Carv_Data().getIt_Carv_DataElementAt(j).getP_Model();
                        String range=wdContext.nodeIt_Carv_Data().getIt_Carv_DataElementAt(j).getP_Range();
    Zlgs_Carv_Data carvData=new Zlgs_Carv_Data();
                                  carvData.setP_Make(make);
                               carvData.setP_Model(model);
                               carvData.setP_Range(range);
                               wdContext.currentZlgf005_Outfit_Match_Mm_InputElement().modelObject().addIt_Carv(carvData);
    in the above  iam performing single selection on  the
    table IT_carv_data , i have written ismultiselected()  because
    i can perform single selection or multiselection.
    but for my requirement i need only single selection  as of now
    , multi selection will come is the later stage , so i have used
    ismultiselected ,
    after the above two loops i have called the RFC
           wdthis.wdGetRFC.executeRFC();
         after calling the RFC i have written
    wdcontext.currentRFC.modelobject.removeIt_Car(carData);
    carData is the strucute IT_Car 's  class Zlgs_Car_Data instance .
    i have declared  inthe //@@begin others
          Zlgs_Carv_Data carvData=new Zlgs_Carv_Data();
            Zlgs_Car_Data carData = new Zlgs_Car_Data();
    //@end
    but the problem i am not able to remove the  data .
    can any plz help me .?  
    valuable answer point will be rewared

  • Dynamically changing single to multiselect in Table in OAF

    Hi,
    I am trying to programmaticallychange single selection to multiple selection of Table in Controler. From UI point of view everything is replaced correctly, but when I am trying to get values of selected rows ALWAYS only the first row is returned as selected (I think it is a default value of singleselection). I have also set rendered option to false for singleselection using personalisation page. Do you know what I am doing wrong or what I should check?
    The second issue is a dialog page. As I noticed the page context (table selection values) are lost when I am using confirmation page (dialog page with yes/no option). How should I pass page context to dialog page (table multiselection)?
    Controler Code:
        public void processRequest(OAPageContext pageContext, OAWebBean webBean) {
            super.processRequest(pageContext, webBean);
            OATableBean tableBean = (OATableBean)webBean;
            tableBean.prepareForRendering(pageContext);
            // Define new table selection (multi)
            OAMultipleSelectionBean mySelection = (OAMultipleSelectionBean)createWebBean(pageContext, MULTIPLE_SELECTION_BEAN);
            mySelection.setViewUsageName("EventResultsVO1");
            mySelection.setViewAttributeName("SelectFlag");
            //String sEventSelectText = pageContext.getMessage("XLA", "XX_XLA_EVENT_SELECT", null);
            tableBean.setTableSelection(mySelection);
            /* Workaround selection works - not satisfied
                OAMessageCheckBoxBean checkboxSelection = (OAMessageCheckBoxBean)createWebBean(pageContext, OAWebBeanConstants.MESSAGE_CHECKBOX_BEAN);
                checkboxSelection.setViewUsageName("EventResultsVO1");
                checkboxSelection.setViewAttributeName("SelectFlag");
                checkboxSelection.setChecked(false);
                checkboxSelection.setLabel("Wybierz");
                tableBean.addIndexedChild(0,checkboxSelection);
             /* Workaround selection */
            // FireAction for Change Status Button
            OAFlowLayoutBean tableActionBean = (OAFlowLayoutBean)tableBean.getTableActions();
            FireAction FireActionAddGroup = new FireAction();
            FireActionAddGroup.setEvent("ChangeStatusEvent");
            // Change Status Button
            OASubmitButtonBean myButtonBean = (OASubmitButtonBean)createWebBean(pageContext, BUTTON_SUBMIT_BEAN);
            myButtonBean.setPrimaryClientAction(FireActionAddGroup);
            String sChangeStatusButton = pageContext.getMessage("XLA", "XX_XLA_CHANGE_STATUS", null);
            myButtonBean.setText(sChangeStatusButton);
            // Text Item
            OAMessagePromptBean myMessagePromptBean = (OAMessagePromptBean)createWebBean(pageContext, MESSAGE_PROMPT_BEAN);
            String sSpecifyReasonText = pageContext.getMessage("XLA", "XX_XLA_SPECIFY_REASON", null);
            myMessagePromptBean.setPrompt(sSpecifyReasonText+": ");
            myMessagePromptBean.setCSSClass("OraDataText");
            // Text Field Item
            OATextInputBean myTextInputBean = (OATextInputBean)createWebBean(pageContext, TEXT_INPUT_BEAN);
            myTextInputBean.setName("xxPrzyczynaZmianyStatusu");
            myTextInputBean.setID("xxPrzyczynaZmianyStatusu");
            myTextInputBean.setLabel("Przyczyna zmiany statusu");
            myTextInputBean.setMaximumLength(240);
            // Table Action Bean
            tableActionBean.addIndexedChild(0,myMessagePromptBean);
            tableActionBean.addIndexedChild(1,myTextInputBean);
            tableActionBean.addIndexedChild(2,myButtonBean);
        public void processFormRequest(OAPageContext pageContext, OAWebBean webBean) {
              super.processFormRequest(pageContext, webBean);
              String event = pageContext.getParameter(EVENT_PARAM);
              if (event != null && "ChangeStatusEvent".equals(event)) {
                  String statusChangeReasonField = pageContext.getParameter("xxPrzyczynaZmianyStatusu");
                  if ((statusChangeReasonField != null) && (!"".equals(statusChangeReasonField))) {
                      //Prepare Dialog Page
                      String sChangeConfirmationText = pageContext.getMessage("XLA", "XX_XLA_CHNG_CONF", null);
                      OAException message = new OAException(sChangeConfirmationText);
                      OADialogPage dialogPage = new OADialogPage(OAException.CONFIRMATION, message, null, "","");
                      dialogPage.setOkButtonItemName("ChangeSelectedYesButton");
                      dialogPage.setNoButtonItemName("ChangeSelectedNoButton");
                      dialogPage.setOkButtonToPost(true);
                      dialogPage.setNoButtonToPost(true);
                      dialogPage.setPostToCallingPage(true);
                      String yes = pageContext.getMessage("AK", "FWK_TBX_T_YES", null);
                      String no = pageContext.getMessage("AK", "FWK_TBX_T_NO", null);
                      dialogPage.setOkButtonLabel(yes);
                      dialogPage.setNoButtonLabel(no);
                      //Pass changeReason argument to dialogPage
                      Hashtable formParams = new Hashtable(1);
                      formParams.put("statusChangeReasonField", statusChangeReasonField);
                      dialogPage.setFormParameters(formParams);
                      pageContext.redirectToDialogPage(dialogPage);
                  } else {
                      //ChangeReason empty
                      String sSpecifyReasonText = pageContext.getMessage("XLA", "XX_XLA_SPECIFY_REASON", null);
                      throw new OAException(sSpecifyReasonText+"!", OAException.WARNING);
              else if(pageContext.getParameter("ChangeSelectedYesButton")!=null) {
                    OAApplicationModule am = pageContext.getApplicationModule(webBean);
                    String changeReason = pageContext.getParameter("statusChangeReasonField");
                    Serializable parameters[] = {changeReason};
                    am.invokeMethod("XXchangeSelectedEvents", parameters);
                    OAException confMessage = new OAException("XLA","XX_XLA_DIALOG_MESSAGE", null, OAException.CONFIRMATION, null);
                    pageContext.putDialogMessage(confMessage);
    Application Module code:
    public class xxEventsInquiryAMImpl extends EventsInquiryAMImpl {
        /**This is the default constructor (do not remove)
        public xxEventsInquiryAMImpl() {
        /**Sample main for debugging Business Components code using the tester.
        public static void main(String[] args) {
            launchTester("pzu.oracle.apps.xla.eventsinquiry.server", /* package name */
          "xxEventsInquiryAMLocal" /* Configuration Name */);
        public void XXchangeSelectedEvents(String changeReason) {
            OAViewObject vo = (OAViewObject)getEventResultsVO1();
            EventResultsVORowImpl row = null;
            int fetchedRowCount = vo.getFetchedRowCount();
            RowSetIterator updateIter = vo.createRowSetIterator("updateIter");
            if (fetchedRowCount > 0) {
                updateIter.setRangeStart(0);
                updateIter.setRangeSize(fetchedRowCount);
                    // TEST - get number of selected rows
                    Row[] selectedRows = updateIter.getFilteredRows("SelectFlag","Y");
                    int numRows=selectedRows.length;
                for (int i = 0; i < fetchedRowCount; i++) {
                  row = (EventResultsVORowImpl)updateIter.getRowAtRangeIndex(i);
                  if (row != null && row.getSelectFlag() != null && row.getSelectFlag().equals("Y") ) {
                      Number rowEventId = (Number)row.getAttribute("EventId");
                      if (rowEventId != null) {
                          CallableStatement st = null;
                          try {
                              String stmt = "begin XX_DSP_FAH_010_API.set_no_action(:1, :2); end;";
                              //XX_DSP_FAH_010_API.set_no_action(p_event_id,p_reason,p_error_code,p_error_desc)
                              OADBTransaction tr = getOADBTransaction();
                              st = tr.createCallableStatement(stmt, 1);
                              st.setInt(1, rowEventId.intValue());
                              st.setString(2, changeReason);
                              st.close();
                              OAExceptionUtils.checkErrors(tr);
                          catch(SQLException sqle) {
                              throw OAException.wrapperException(sqle);
            updateIter.closeRowSetIterator();

    Hi,
    you can do this by surrounding the cell components (outputText, inputText, checkBox etc) with e.g. a panelLabelAndMessage component. Then on this component inlineStyle property use EL to reference a managed bean property. The managed bean property can now evaluate the check box select state. The trick part in your question is to tell upon rendering of the previous and next row that the check box in the row between has been selected. So you need to find a way to tell this. One option would be to apply logic like below
    JUCtrlHierNodeBinding currentRenderedAdfRow = ... use facesContext --> getApplication --> getExpressionFactory --> createValueExpression to create a handle to the #{row} expression
    Row rw = currentRenderedAdfRow.getRow();
    BindingContext bctx = BindingContext.getCurrent();
    BindingContainer bindings = bctx.getCurrentBindingEntries();
    DCIteratorBinding dciterator = (DCIteratorBinding ) bindings.get("Name of iterator used by table ");
    RowSetIterator rsIterator = dciterator .getRowSetIterator();
    Row prevRow = rsIterator.setCurrentRow(rw);
    int currRowIndex = rsIterator.getCurrentRowIndex();
    Row prevRow = getRowAtRangeIndex(currRowIndex-1); 
    Row nextRow = getRowAtRangeIndex(currRowIndex-1); 
    //return CSS that colors the background if the following conditions are true
    if ( ((DataType) rw.getAttribute("checkBoxAttr")) ||  ((DataType) prevRow .getAttribute("checkBoxAttr")) |  ((DataType) nextRow .getAttribute("checkBoxAttr"))){
      //color background returning CSS
    else{
      return empty string
    }I wrote this code from the top of my head, so ensure you check for null pointers (e.g. if a prev-row doesn't exist). Also consider caching of the calculation so that it doesn't need to be performed for each cell in a row but only once per row. E.g. you can save the color and the row key in a managed bean in view scope and then compare the key with this managed bean before performing the calculation
    Frank

  • Problem in using MultiSelect ADF table with view Object

    I have a requirement of displaying a table with multi select option. On page load table will be displayed with all columns as output text except last column as input text. User can update the last column of the selected row and only checked rows should get updated in the DB Table.
    Is there any document or Tutorial available?

    Hi,
    this is an individual implementation. Tutorials are written for common usecases. However, the way to implement this is to set the read-only property on the last column's text field (turn it into a textinput field) based on whether or not the row is selected. Make sure that the row selection PPRs the table
    for a code example download
    http://thepeninsulasedge.com/frank_nimphius/wp-content/uploads/2008/05/OldAndLostBlogBusterTips.zip
    and look at page 272 "ADF Faces: Conditional table row manipulation on table row select"
    Frank

  • Getting error in Multiselection of Table rows

    Hi,
    I want to select multiple rows of table in Java Web Dynpro.
    My scenario is that for every primary contact in my web dynpro view,
    I have no. of multiple contacts in my java web dynpro tables.
    I was able to update the secondary contact details from single selection with
    Cardinality 1..n and Selection 0..1.
    Now, I changed the context node for that table in both model dc and view dc as:
    Cardinality 1..n and Selection 1...n.
    One single line is added in the update method:
              if(wdContext.nodeS_person().isMultiSelected(i)==true){     
    If statement is added, for the for loop for all elements of that context node.
    The table properties, selection is set to multi.
    I am getting the error:
    com.sap.tc.webdynpro.progmodel.context.ContextException: Node(MainView.VendorDetails.S_person): selection cardinality does not allow multiple selection
    Regards
    Kaushik Banerjee
    Edited by: Kaushik Banerjee on Aug 10, 2010 11:28 AM

    Hi,
    Looks like the changes made to the node is not reflected. try deploying the project after building and if it does not work, create the node again with the selection and cardinality property set to ur requirement.
    Regards,
    Poojith MV

  • Multiselection in Tables with Master Column

    The use case is the following:
    I have a table with a master column in which I display a tree. The table is bound to a dataSource with a recursive node.
    I'd like to implement multiple selection for the rows of this table, but it doesn't work (even when making context node's selection 0..n).
    Is there any work-around for solving this problem?

    Thanks for the suggestion.
    But there is still problem with this:
    I will have have two methods for selection of rows of the table - there will be standart one which is provided by webdynpro and additionaly I will have a column of checkboxes. It is not convinient form user-perspective. Furthermore I can't put columns on the left of the master column which is also a problem, the checkboxes should be situated in the firs column.
    Regards, Vasil

  • Blank row in table....

    Hi all,
           I have a serious problem with the table UI.
    In screen 1 ,I have  a table where I multiselect the table rows and press "next Button" this action leads to the Screen 2, where a summary of the previously selected rows is displayed..
    Here I get a blank row as my first row along with the selected rows.
    This is some wht URGENT...
    Thanks in advance

    hi gopi
    when you get element from the table the indexing is from 1,2,3etc. and not from 0,1,2.so the line get element at index=1 retrieves the first element ,get element at index=2 retrieves the second element and so on.
    use one more variable say int k=1  to retrieve elements and use i for count.
    instead of this line
    element.setDelivery(wdContext.nodeHeader_Data().getHeader_DataElementAt(i).getDeliv_Numb());
    use k to get element say as follows
    element.setDelivery(wdContext.nodeHeader_Data().getHeader_DataElementAt(k).getDeliv_Numb());
    the modified code may be
    for (int i = 0,int k=1; i < size; i+,k+) {
    if (wdContext.nodeHeader_Data().isMultiSelected(i) || i == leadSelection) {
    element = wdContext.nodeItemdata().createItemdataElement(new Bapishipmentitem());
    element.setDelivery(wdContext.nodeHeader_Data().getHeader_DataElementAt(k).getDeliv_Numb());
    wdContext.nodeItemdata().addElement(element);
    regards
    saravana.

  • Which Preview will do the code migrations?

    I have tried the Tech preview 1 and now 2 and neither of them will import a 10.x project.
    This late in the game I would think the migration would be done, and since there is a migration tool that pops up when you try and open an old existing project.
    My project is over 1000 files, I would not want to have to massage a project of this size, just to use the newest version of JDEV
    Thanks
    Kelly

    My Project consists of using the ADF/bc4j as the data model, and JSF pages.
    A lot of the views are dropping thier respective java code files and need to be recreated by selecting the view object and clicking on the java file check boxes for the different layers.
    The multiselect core table code that I used from the examples of the previous version are no longer valid with trinidad (this was the default option for the upgrade/migration to use trinidad).
    Those were the two biggest things that I saw so far.

  • Retrieving table values from tableview multiselect

    Hi everyone,
    I have a BSP with a tableView set on multiselect. When the user clicks on a button I want to rertieve the selected rows in my ABAP code and send them to a function module (in the form of a table). But I haven't been able to find code examples on how to do this, ie how to retrieve the selected rows. Can someone provide me with an example or a link to where I can find one? I can catch the button onClick event, but after that I need to get the rows that were selected by the user.
    Thanks!
    best regards,
    Dionisios

    HI Dionisios,
    In your input processing,
    do something like
    CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
    IF event_id = CL_HTMLB_MANAGER=>EVENT_ID.
    DATA: event TYPE REF TO CL_HTMLB_EVENT.
    event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
    if  event->id = 'but1' and event->event_type = 'click'.
      DATA: tv TYPE REF TO CL_HTMLB_TABLEVIEW.
      tv ?= CL_HTMLB_MANAGER=>GET_DATA(
                      request      = runtime->server->request
                      name         = 'tableView'
                      id           = 'tab1' ).
    IF tv IS NOT INITIAL.
    DATA: tv_data TYPE REF TO CL_HTMLB_EVENT_TABLEVIEW.
      tv_data = tv->data.
    refresh itab2.
    refresh itab3.
    <b>call method tv_data->GET_ROWS_SELECTED
          receiving selected_rows = itab2.</b>
    endif.
    data : ind type SELECTEDROW,
           row_s type row.
    if itab2 is not initial.
        data :rw LIKE LINE OF itab.
        loop at itab2 into ind.
          READ TABLE itab INDEX ind-index into
          rw.
           if rw is not initial.
           row_s = rw.
          append row_s to itab3.
          clear row_s.
          endif.
        endloop.
    endif.
    Endif.
    Where
    TYPES
    types : tab type table of <table_name>.
    types : row type <table_name>.
    PAGE ATTRIBUTEs :
    Irow type row
    Itab type tab.
    Itab3 type tab.
    Itab2 type selectedrows.
    Rowselected type string.
    And in layout
    <htmlb:tableView id="tab1"
                      table="<%= itab %>"
    ="true" >
                     visibleRowCount="8"
                      design="ALTERNATING"
                      footerVisible="TRUE"
                     selectionMode="multiSelect"
                     keepSelectedRow
         </htmlb:tableView>
    <htmlb:button  id = "but1"
                   onClick="test"/>
    HOpe this helps,
    Regards,
    Siddhartha

  • Multiselection issue in advanced table on OAF page

    Hi,
    I have a advanced table on OA Page. To this advanced table, I had added the multi selection table action.
    To the multiselect, i have attached a View Instance and a view attribute.
    There is text input field in the advanced table. If user makes changes to it, an event "updateDate" fires.
    In CO:
    if(event.equals("updateDate")){
    System.out.println("A");
    String rowReference =
    pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    Serializable[] param = {rowReference} ;
    am.invokeMethod("DetailsCheckBox", param);
    In AM:
    public void DetailsCheckBox(String rowReference) {
    System.out.println("B");
    oracle.jbo.Row row = findRowByRef(rowReference);
    DetailsVOImpl ivo =
    (DetailsVOImpl) findViewObject("DetailsVO1");
    String chkbox = (String)row.getAttribute("Multiselect");
    System.out.println("multiselect original: "+chkbox);
    if ((chkbox == null)||(chkbox.equals("N"))){
    ivo.setCurrentRow(row);
    row.setAttribute("Multiselect","Y");
    String chkbox1 = (String)row.getAttribute("Multiselect");
    System.out.println("multiselect : "+chkbox1);
    // ivo.reset();
    The issue is that if there are 5 rows getting displayed in the advanced table and i make changes to any of first 4 rows, the checkbox gets checked on page but if i make changes to last row the checkbox is not checked on page, even though the statement String chkbox1 = (String)row.getAttribute("Multiselect"); returns 'Y' in AM.
    Please help. Its urgent.

    Hi Gyan,
    Multiselect attribute is checked for Always Updateable.
    and have done sop for other attributes also, dey are coming for 5th row only.
    also if my VO query returns 27 rows, and advanced table displays 10 rows at a time then pnly 10th row gives this issue. It works fine even for 20th row.
    Observed one more thing, if i first update any other row and then the last row, it works fine.

  • How to go for Multiselection in a table?

    HiAll,
    Can any one tell me how to go for multiselection in a table.
    Regards
    DK

    hi D,
    I asume you are talking about a webdynpro UI element 'Table';
    You can set the property 'SelectionMode' to 'Multi'.
    Here you can find more info:
    <a href="http://aiokeh.wdf.sap.corp:50000/SAPIKS2/contentShow.sap?_SCLASS=IWB_STRUCT&_SLOIO=7C3545415EA6F523E10000000A155106&IWB_INDUSTRY=ERP-BFS&TMP_IWB_TASK=DISPLAY&RELEASE=700&LANGUAGE=EN&_SEQNUM=426&_LOIO=6EAE0E422DFCDC2CE10000000A1550B0&_CLASS=IWB_EXTHLP">http://aiokeh.wdf.sap.corp:50000/SAPIKS2/contentShow.sap?_SCLASS=IWB_STRUCT&_SLOIO=7C3545415EA6F523E10000000A155106&IWB_INDUSTRY=ERP-BFS&TMP_IWB_TASK=DISPLAY&RELEASE=700&LANGUAGE=EN&_SEQNUM=426&_LOIO=6EAE0E422DFCDC2CE10000000A1550B0&_CLASS=IWB_EXTHLP</a>
    Best regards,
    Joris

  • WebDynpro, Table, selected rows, multiselect

    Hi together,
    I've got a problem with my "table-control" in WebDynpro.
    I just want to read the selected rows in the tablecontrol.
    To read one row is no problem:
    wdContext.currentnode.....
    But if there are more selected rows I don't know how to handle. Could I use the Context-Node, or do I have read the Table-Control-Attributes ? And how ?
    Please help me.
    Thx a lot.
    Greetings
    sb

    You have to look at the selection of the context node used as table data source. The selected elements are given by
    node.getCurrentElement() -> the lead selected element
    node.isMultiSelected(i)  -> if element at index i is part of multiselection.
    Armin

  • MultiSelect - Saved in XREF table and trying to repopulate with "On Load"

    Hi all,
    At the time of saving the form I split the MultiSelect into a cross reference table.
    DECLARE
    l_selected HTMLDB_APPLICATION_GLOBAL.VC_ARR2;
    lcnt NUMBER;
    lDocID NUMBER := :P2_ID;
    lOwners VARCHAR2(200):= :P2_OWNER;
    BEGIN
    -- Remove all past selected owners associated with this document
    DELETE FROM MY_OWNER_XRF
    where MASTER_REC_ID = lDocID;
    -- Add all currently selected owners in multi-select (may be the same ones already selected)
    l_selected := HTMLDB_UTIL.STRING_TO_TABLE(lOwners);
    FOR j IN 1..l_selected.count LOOP
    INSERT INTO MY_OWNER_XRF (MASTER_REC_ID, OWNER_ID)
    VALUES (lDocID , l_selected(j));
    END LOOP;
    END;
    When going back into the saved form I build the MultiSelect colon delimited value in the "On Load - After Header" process but it is not showing the values.
    Do I also have to select them in a javascript loop?
    DECLARE
    lmyVar VARCHAR2(2000);
    BEGIN
    -- Prepopulate Multi-Selects in a "After Header" "Page Rendering" Process.
         :P2_OWNER:='';
         FOR RL IN (select OWNER_NAME, ID from MY_OWNERS O, MY_OWNER_XRF X
    where X.MASTER_REC_ID = :P2_ID and X.OWNER_ID = O.ID order by owner_name) LOOP
              :P2_OWNER:= RL.ID||':'||:P2_OWNER;
         END LOOP;
    -- Remove the last colon
    :P2_OWNER:= rtrim(:P2_OWNER,':');
    END;
    Thank you, BC

    @Mike_Myers_N8
    Puzzled here in that you only need to sign-in at http://maps.nokia.com if you want to view favourites or create a route on your PC.
    Admittedly have Ovi Maps v3.08 on N8 here, click on "gear wheels" > Extra > Settings > General > Nokia account > Nokia Account > Sign in and if not already amend so it is showing "Sign out"
    In Ovi Maps upon device then go to Search > Favourites > Sync and if you currently use Ovi Maps in "Offline" mode it asks to go online to synchronise favourites.
    Happy to have helped forum with a Support Ratio = 42.5

  • Doubt in Multiselection in a table

    Hi All,
    I have a table and have to to multiselection.While doing the multiselection I have to pass the few things for the selected rows to a BAPI which will process and give the output accordingly.
    In an action handler I am writing the following code:
    //*****Trying the multiselection****//
         IOPENITEMS_openElement tableEle = null;
         IPrivateCreateResultIPView.IMultiNodeElement ele = wdContext.nodeMultiNode().createMultiNodeElement();
         for(int i=0;i<wdContext.nodeOPENITEMS_open().size();i++){
              wdComponentAPI.getMessageManager().reportSuccess(" Size is :"+wdContext.nodeOPENITEMS_open().size());
         boolean aa = wdContext.nodeOPENITEMS_open().isMultiSelected(i);
         wdComponentAPI.getMessageManager().reportSuccess("Selected : "+i " : Val "aa);
         if(aa){
         wdComponentAPI.getMessageManager().reportSuccess(" Selected "+i);
         tableEle = (IOPENITEMS_openElement)wdContext.nodeOPENITEMS_open().getElementAt(i);
         ele.setMultiDocno(tableEle.getDOC_NO());
         ele.setMultiItem(tableEle.getITEM());
         ele.setMultiRep(tableEle.getREP_ITEM());
         ele.setMultiSub(tableEle.getSUB_ITEM());
         wdContext.nodeMultiNode().addElement(ele);
         //****Ends here***//
    here multiNode is a local View node that I have taken to collect the records or the data for the selected rows.
    The Exception that i am getting
    com.sap.tc.webdynpro.progmodel.context.ContextException: Node(CreateResultIPView.multiNode): cannot bind or add element, because it is already bound to a node
        at com.sap.tc.webdynpro.progmodel.context.Node.prepareAddElement(Node.java:645)
        at com.sap.tc.webdynpro.progmodel.context.Node.addElement(Node.java:631)
        at com.accenture.pct.rrs.installmentplan.CreateResultIPView.onActionCreateInstallmentPlan(CreateResultIPView.java:462)
        at com.accenture.pct.rrs.installmentplan.wdp.InternalCreateResultIPView.wdInvokeEventHandler(InternalCreateResultIPView.java:1597)
        at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
    Kindly give a solution to the problem.I have been struggling for the past one whole day.
    looking forward to you.
    Regards
    DK

    Try this
        int n = wdContext.nodeOPENITEMS_open().size();
        wdComponentAPI.getMessageManager().reportSuccess("Size of node OPENITEMS_open: " + n);
        for (int i = 0; i < n; i++)
          boolean selected = wdContext.nodeOPENITEMS_open().isMultiSelected(i) || wdContext.nodeOPENITEMS_open().getLeadSelection() == i;
          if (selected)
            wdComponentAPI.getMessageManager().reportSuccess("Element at index " + i + " is selected");
            IOPENITEMS_openElement src = wdContext.nodeOPENITEMS_open().getOPENITEMS_openElementAt(i);
            IMultiNodeElement tgt = wdContext.nodeMultiNode().createMultiNodeElement();
            wdContext.nodeMultiNode().addElement(tgt);
            tgt.setMultiDocno(src.getDOC_NO());
            tgt.setMultiItem(src.getITEM());
            tgt.setMultiRep(src.getREP_ITEM());
            tgt.setMultiSub(src.getSUB_ITEM());
    Armin

Maybe you are looking for

  • How long should it take to install creative cloud?

    i started to install it this morning and it  was sitting for 6 hrs and it still hasn't finished or gotten half way. my internet is a little slow right now but i don't know if it should take this long?

  • ITunes crashes whenever I try to sync videos

    Hey everyone, Just yesterday I purchased a new 6th Gen iPod Classic, and syncing music is fine, but when it comes to syncing videos it's a totally different story. I sync my iPod (which has all the music on) and there are no more songs to go on it, s

  • Cleaning scrollball on a mighty mouse -EUREKA! i've found an easy solution

    gotta hand it to a clerk at my local apple store, this tip is right on the money. i had problems with the mighty mouse scrollball sticking...not wanting to scroll down. i tried lots of tips i'd read online. i flipped it over, blew on it, wet the ball

  • Front Row not authenticated but iTunes is?

    I've got a Mac Mini that is pulling it's library from my Mac G4. I have it so that an alias of the library file on my Mac Mini is pointing to the Library file on my G4 (which holds all my music on a software RAID array) through the network. This was

  • Creation of Custom Infotype in Recruitment

    Hi Experts, I have actually used PM01 to created Custom infotype. i have selected the applicant group while creating the infotype.. but in the infotype charectaristics the database table is still PA9006 this must be changed to PB.. how do i do this??