SAP Personas - multiple selection of lines in table

Hello,
i am trying to figure out if it is possible to get/process all selected lines in SAP Personas for table with multiple line selection enabled. i found only posts where actual selected line can be identified in script - e.g. in this post: SAP Personas - dynamic selection of line from report .
I am currently working with SAP Personas 2.0, but I am interested also in Personas 3.0 functionality.
Thank you in advance,
Jan Weissensteiner

In Personas 2.0, it depends on how do you want to process the marked table entries.
Since the Personas 2.0 scripting engine doesn't support looping, you can only read the entire content of the table into an array using a JavaScript step and then evaluate this and determine which lines have been selected. Then you could process the result, for instance you could add field values from the selected rows or something like this, since it is possible to perform looping in JavaScript. However you cannot do certain actions like pressing a script button for each selected row, for instance.
In Personas 3.0, you can pretty much do anything you want since the scripting engine uses JavaScript and you can rely on JS functionality to have much more freedom, including pressing buttons.

Similar Messages

  • How to pass multiple selected values of a table to RFC

    Hi all,
    My scenerio is that user selects multiple rows and click a button. i want to pass a unique id of the row to rfc.
    means there are userid is unique in the table.
    i want to paas the userids of all the selected rows to rfc.
    Can any one help me to implement that??
    regards
    Anoop

    Hi
    In the context view the properties of the model node for which you have to pass the table data.
    In the properties you will find a property called Structure from where you can get the structure name..in my example scenario the structre name is
    Zdp_Str_Shopping_Cart
    After adding all the datas to the model node, finally add that instance to the root node....
    You want to pass only the selected data in the table right, for that refer the looping concept suggested by of Ayyapparaj KV
    Zdp_Str_Shopping_Cart shoppingCart;
    for(int i=0;i<wdContext.nodeChnIt_Shopping_Cart().size();i++)
                   shoppingCart = new Zdp_Str_Shopping_Cart();
                   shoppingCart.setEquipment_No(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getEquipment_No());
                   shoppingCart.setIbase(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getIbase());
                   shoppingCart.setKbetr(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getKbetr());
                   shoppingCart.setMaktx(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getMaktx());
                   shoppingCart.setMatnr(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getMatnr());
                   shoppingCart.setQuantity(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getQuantity());
                   shoppingCart.setSerial_No(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getSerial_No());
                   shoppingCart.setUnit(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getUnit());
                   shoppingCart.setUnit_Of_Wt(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getUnit_Of_Wt());
                   shoppingCart.setWaers(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getWaers());
                   shoppingCart.setWeight(wdContext.nodeChnIt_Shopping_Cart().getChnIt_Shopping_CartElementAt(i).getWeight());
                   createProductOrder.addIt_Shopping_Cart(shoppingCart);           
              wdContext.nodeZdp_Bapi_Create_Product_Order_Input().bind(createProductOrder);
    Let me know whether you got an idea and your problem get solved......
    Regards
    Chandran S

  • How to display multiple selected rows in a table inside a popup?

    Hi,
    I have a table on which multiple selection is enabled. I am able to get hold of multiple selected rows i.e. i am able to iterate over the selected row keys and print their values. Now, my problem is how to display the contents of all the selected rows in a popup? I get the details of only one row when I launch the popup.
    Thanks
    Karan

    Hi,
    Not confident if this works or not but just try it...
    1. create a ViewLink between the same view Object.
    The source and destination wil be the same Vo and the source and destination attribute will be the pk of both Vos.
    2. Update the changes in Appln Module.
    Open the AM and in DataModel tab .
    select the Same VO from which you created table in the DataModel Listbox and select the VL in the "Avaible View Objects" List Box. Add under it(selected vo in datamodel listbox).
    3. Refresh DataControl accordion.
    4. in your jsff page drag and drop the child vo as a table..
    See if it works
    Regards,
    Santosh.

  • Multiple Selection multi-line per choice

    I have a bunch of multiple selection items which are all the same, so I copied and pasted them where I wanted them. The pasted ones are taking up two to three lines per choice (one word per line) even though they are very short and the original that I copied from only takes one line each. Does this mean I have to do each one manually? Why are the copied ones different from the original? Thanks!

    Hi,
    It sounds like a bug, since this shouldn't be happening.  However I tried to reproduce the problem, but couldn't.  It's probably a bug, that specific to your choices labels.  Could you share your form to me ([email protected]), so I can take a look at the specifics?  Once I can see it, I can provide some guidance about the issue and how to work around it (if posisble) until we've fixed it.  You can share a form by clicking the share button, and then clicking add collaborators.
    Thanks,
    Todd

  • Issue with selecting a line on table control

    Hello Experts,
    We have a table control and using w/ SelColumn for selecting the highlighted line on a table control. It's working fine sometimes but not working in other cases. It's really wierd.
    On this screen, under the Table Control, we have provided Bottons do some functionality.
    When the users select a row and click on this push button, it has to call another pop-up screen.
    We have the code like this:
    PROCESS BEFORE OUTPUT.
      MODULE INIT_0600.
      LOOP AT T_qacomp_prt INTO qacomp_prt WITH CONTROL TC_qacomp_prt.
        module fill_part_number.
        MODULE Gray_Parts.
        FIELD T_qacomp_prt-MARK.
        module highlight_lines.
        MODULE LINES_0600.
      ENDLOOP.
    PROCESS AFTER INPUT.
      MODULE CANCEL_600 AT EXIT-COMMAND.
      LOOP AT T_qacomp_prt.
        FIELD T_qacomp_prt-MARK.
        MODULE READ_TABLE_CONTROL_600.
      ENDLOOP.
      MODULE USER_COMMAND_0600.
    In User-Command the code is like this:
    MODULE USER_COMMAND_0600 INPUT.
      when 'ADD'.
       if t_qacomp_prt-mark = 'X'.
        get cursor line lin.
      call screen 0615 starting at 30 15.
    else.
       message i999(zxx) with 'Please select a line'.
    endif.
    For eg, When there are 5 lines on the table control, If I select the 2nd line and click on "ADD", it is calling the pop-up correctly.
    However, If I select the 4th line and click on "ADD" button, it is giving the message "Please select the line".
    PS: PBO, PAI code already exists, I only added the "USER-COMMAND" code.
    Can you please let me know what went wrong? I greatly appreciate your help.
    Thanks.

    Hi,
    Provide a Check box for that table control. Declare that Check box field as Type c in Main program. Go to screen PAI module write code for deleting that lines by clicking one button using sy-ucomm. Delete it where is_chk = 'X'..like try

  • Multiple selection of rows in table

    HI,
    can any one tell how to dispaly the rows selected(multiple selection) in one table can be displayed in another table in  2nd  view.
    Regards,
    A.K

    Hi,
    1.Iterate through the node bound to the table
    2 Add the selected elements to a List.
    3.bind this list to a node
    4.Bind this node as the datasource for the second table.
    Ex:
    ArrayList selectedElements = new ArrayList();
    for (int x=0; x< wdContext.nodeTest().size(); x++)
         if( wdContext.nodeTest().isMultiSelected(x) )
    // Selected Element
    IWDNodeElement nodeElement = wdContext.nodeTest().getElementAt(x);
    selectedElements.add(nodeElement)
    wdContext.nodeSeondNode().bind(selectedElements);
    Regards
    Ayyapparaj

  • Optimization of an update that uses multiple selects on the same table

    Oracle version : 10g
    Hello,
    I have created an UPDATE statement which uses two selects on a single table to do an update according to date criteria.
    Due to the fact that the update has different criteria for updating according to whether the date falls within one of two ranges
    (future or past) two selects were used together with a union between them to unite the results.
    The end result is of course two full table scans and a poorly performing execution.
    The goal is to update a field XDEL (type number) based on a date column value (column XDATE) where the dates of interest
    fall both in the past (less than sysdate minus 45 days) and in the future (greater than sysdate +90 days). For records with XDATE
    values within these ranges, I wish to set field XDEL=1
    For records in the future (>=sysdate+90):
    for a unique combination of XNAME+XCODE, where XDATE is within the date range for update, set XDEL=1
    but for a non-unique combination of XNAME+XCODE+XDATE, update XDEL=1 only for the 'oldest' future record, ie update XDEL for MIN(XDATE) only
    For records in the future (< sysdate+45):
    for a unique combination of XNAME+XCODE, where XDATE is within the date range for update, set XDEL=1
    for a non-unique combination of XNAME+XCODE, update XDEL=1 only for the 'newest' past record, ie update XDEL for MAX(XDATE) only
    The combination of XNAME+XCODE XDATE is unique. As an example of the 'in the past' scenario:
    XNAME | XCODE | XDATE
    ================
    1. AAAA ~ 002 ~ 01/01/2006
    2. AAAA ~ 002 ~ 02/01/2006
    3. AAAA ~ 002 ~ 03/01/2006
    4. XXXX ~ 123 ~ 02/01/2006
    Here, we would update XDEL in record 3. as it corresponds to MAX(XDATE) for the GROUP AAA002 (and we would also update record 4. as a unique record that meets the criteria)
    As an example of the 'in the future' scenario:
    XNAME | XCODE | XDATE
    ================
    1. HHHH ~ 002 ~ 01/01/2011
    2. HHHH ~ 002 ~ 02/01/2011
    3. HHHH ~ 002 ~ 03/01/2011
    4. XXXX ~ 123 ~ 02/01/2011
    Here, we would update XDEL in record 1. as it corresponds to MIN(XDATE) for the GROUP HHHH002 (and of course 4. as a unique record that meets the criteria)
    Here is a query that works, but is slow:
    UPDATE TAB1 SET XDEL=1 WHERE (XNAME,XCODE,XDATE) IN ((SELECT XNAME,XCODE,max(XDATE) FROM TAB1 WHERE XDATE < sysdate-45 GROUP BY XNAME,XCODE) UNION (SELECT XNAME,XCODE,min(XDATE) from TAB1 WHERE XDATE >= sysdate+90 GROUP BY XNAME,XADDR));
    XDATE is a DATE type
    XCODE and XADDR are VARCHAR2
    XDEL is number type
    Any ideas would be greatly appreciated.

    Here is a suggestion. The code is not tested.
    update tab1 t1
       set xdel = 1
    where exists (select null
                     from (
                            select xname,
                                   xcode,
                                   max(case when xdate < sysdate-45 then xdate else null end) xdate1,
                                   min(case when xdate >= sysdate+90 then xdate else null end) xdate2
                              from tab1
                             group by xname, xcode
                          ) t
                    where t1.xname = t.xname
                      and t1.xcode = t.xcode
                      and (t1.xdate = t.xdate1 or t1.xdate = t.xdate2))

  • How to pass the single/multiple selected data of a table to SAP(R/3)

    Hi ,
    I have a table with 2 colums and 10 records.Now i want to send the selected record/Multiple records to the R/3.
    Once the user checks the checkbox i retrieved the column values of that row/rows into a string array.
    and i added all the string arrays to an AbstractList.
    Now in function module it is giving as setT_TestOperations(AbstractList)
    can any one help as  how the function module understands the individual/multiple String arrays.
    If possible provide sample code for the same.
    Thanks and regards,
    Chandrashekar.

    One way to achieve this is to maintain an attribute in the assistance class or a node element , called OldLeadSelection , at the Component controller level which stores the value of the lead selection index.
    On LeadSelect action handler method, in the first line, read the value of the attribute/element defined above. For the first time a row is lead selected, this value will be initial. After exexcuting the code in the LeadSelection event handler method, store the LeadSelection index value in the attribute defined above. The next time when the LeadSelection event method is called, when the value of this attribute is read in the initial line, it will house the value of the index of the previous LeadSelection.
    There could be other ways to achieve this. This is one of the methods.
    Best Regards,
    Rashmi.

  • Multiple selected text frame to table

    I am looking for a script that will allow me to select multiple text frames at one time and have the contents in those text frames converted to tables.
    What I have to do now is place the cursor in one text frame, select all, select menu item "convert to table", the defalt dialog appears and I click ok.
    I have ten text frames on a page (for example). The manual process means I have to do the text to table 10 times per page.
    So, I would like a script that will allow me to select all 10 text frames and convert the content of each frame to a table.
    Any suggestions are appreciated.
    RPP

    This should do it:
    if (app.documents.length > 0 && app.selection.length > 0)
      for (i = 0; i < app.selection.length; i++)
        try {app.selection[i].texts[0].convertToTable ("\t", "\r")}
          catch (_) {}
    Peter

  • Select multi-line of table

    Hi,
    how to use muti-row selection feature of table component?
    when I check the checkbox on table component , how can I find the seleceted Row?
    is there user guide for java creator all components?
    detail user guide is useful and important for new user.
    Thanks

    Hi,
    Please go through the tutorials at
    http://developers.sun.com/prodtech/javatools/jscreator/ea/jsc2/learning/tutorials/index.html
    Also see "Case Study: Developing a Web-based Enterprise Application with Sun Java Studio Creator 2 )" at
    http://developers.sun.com/prodtech/javatools/jscreator/ea/jsc2/reference/techart/index.html
    MJ

  • Insert items from two different Multiple Select Lists into a single table

    I need help. I have a training tracking system that tracks the courses taken by employees.
    I have created two multiple select lists, one is SelectEmployees and the other is SelectCourses. I want to insert
    the selected item from those two multiple select lists into Training_Record table.
    Note, SelectEmployees" is from Employee table and SelectCourses is from Courses table. Those two table has no intersetion.
    Train_Record is the table that joins those two together.
    Please advice and your help is appreciate.

    Thank you for your help.
    I tried your code and changed the table/field name to my actual table/field name and the iitem name to actual item name.
    declare
    cursor c_Employees is
    select PERSONNEL_NEW.EMPLOYEEID from PERSONNEL_NEW where PERSONNEL_NEW.EMPLOYEEID in (:P15_SELECTEDEMP);
    cursor c_Courses is
    select COURSES.COURSE_ID from COURSES where COURSES.COURSE_ID in
    (:P15_SELECTEDCOUR);
    begin
    foreach :=r_employee in c_Employees loop
    foreach :=r_course in c_Courses loop
    insert
    into COPYOFTRAINREC ( EMPLOYEEID, COURSEID )
    values ( r_employee.EMPLOYEEID, r_course.COURSE_ID );
    end loop;
    end loop;
    end;
    I got error message as :
    ORA-06550: line 12, column 25: PLS-00103: Encountered the symbol "C_EMPLOYEES" when expecting one of the following: (
    Error
    OK

  • Adding a Multiple Selection to a Table Dynamically on Process Request

    Dear All
    I am trying to get a selected row in a Table in an Oracle Seeded page. I have tried Row reference but was not successful.Hence I an trying to add the Multiple selection to the same table . Please help.
    The code I tried is
    OATableBean tabObj=(OATableBean) webBean.findChildRecursive("partCompanyVO1");
    if(tabObj!=null)
    System.out.println(" Not Null ");
    tabObj.setSelectionDisabledBindingAttr("Disabled");
    tabObj.setSelectionDisplayed(true);
    tabObj.setControlBarDisplayed(false);
    tabObj.prepareForRendering(pageContext);
    OAWebBeanTable tableSelectionBean = (OAWebBeanTable)tabObj.getTableSelection();
    System.out.println(" tableSelectionBean "+tableSelectionBean);
    OASingleSelectionBean tabSingleSelObj=(OASingleSelectionBean)tabObj.getTableSelection() ;
    System.out.println(" tabSingleSelObj "+tabSingleSelObj);
    if(tabSingleSelObj!=null)
    tabSingleSelObj.setText("Select Object");
    System.out.println(" Selection is Enabled ");
    }

    Antony,
    You will be able to get all the selected rows using
    Row[] selectRows = VO.getFilteredRows("Flag","Y") ;
    Regards,
    Gyan
    www.gyanoracleapps.blogspot.com
    www.querenttech.com

  • Multiple Selection in Sun RI ui:table

    Hi
    I want to implement multiple selection in the <ui:table> component. I have enabled the "selectMultipleButtons" check box in the component property but whenI click on it, nothing happens. How do I make the row selections work in the <ui:table>. Do I have to go the path of putting a checkbox in each row etc and keep track of the selections using HashSet? Whats the point of having the "selectMultiplebuttons", "clearMultipleButtons" properties for the component?
    Is there a documentation that explains how to use these RI components.
    thanks
    Rupak

    I tried your suggestion but it doesnot seem to work properly. When I click on the check box, the row doesnot get highlighted. I have set the table to paginate after every 5 entries. So If I select some entries and move to th next page and then come back again, the selections are gone. I have several tables in my page under multiple tabs. How does the "#{currentRow.tableRow}" gets resolved? How does it know the currentRow for which table? May be thats the problem.....

  • Multiple selection in table not returning all selected rows

    I am unable to obtain multiple selected rows from a table. I only get a single row no matter how many I select.
    I have the following table
    <af:table value="#{bindings.TargetSelectorTargets1.collectionModel}"
    var="row"
    rows="#{bindings.TargetSelectorTargets1.rangeSize}"
    emptyText="#{bindings.TargetSelectorTargets1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.TargetSelectorTargets1.rangeSize}"
    rowBandingInterval="0"
    filterModel="#{bindings.ImplicitViewCriteriaQuery2.quickQueryDescriptor}"
    queryListener="#{bindings.ImplicitViewCriteriaQuery2.processQuery}"
    filterVisible="true" varStatus="vs"
    selectedRowKeys="#{bindings.TargetSelectorTargets1.collectionModel.selectedRow}"
    selectionListener="#{bindings.TargetSelectorTargets1.collectionModel.makeCurrent}"
    rowSelection="multiple"
    partialTriggers="::qryId1" id="t3"
    styleClass="AFStretchWidth"
    binding="#{testbean.targetselectortable}">
    <af:column sortProperty="Name" filterable="true"
    sortable="true"
    headerText="#{bindings.TargetSelectorTargets1.hints.Name.label}"
    id="c2">
    <af:outputText value="#{row.Name}" id="ot33"/>
    </af:column>
    <af:column sortProperty="Type" filterable="true"
    sortable="true"
    headerText="#{bindings.TargetSelectorTargets1.hints.Type.label}"
    id="c11">
    <af:outputText value="#{row.Type}" id="ot34"/>
    </af:column>
    </af:table>
    and I have the following bean method to get the selected rows
    RowKeySet rks = targetselectortable.getSelectedRowKeys();
    Iterator itr = rks.iterator();
    Object key;
    while(itr.hasNext())
    key = (Object)itr.next(); targetselectortable.setRowKey(key);
    Object o = targetselectortable.getRowData();
    JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding) o;
    Row row = rowData.getRow();
    System.out.println(row.getAttribute("Name").toString());
    and I only get one row.
    Note: selectedRowKeys="#{bindings.TargetSelectorTargets1.collectionModel.selectedRow}"
    shows a warning that "reference selectedRow" not found.
    Can I do something to make it work?

    can u change the logic like
    RowKeySet rowSet = targetselectortable.getSelectedRowKeys();
    Iterator rowSetIter = rowSet.iterator();
    > while (rowSetIter.hasNext()) {
    > List l = (List)rowSetIter.next();
    > Key key = (Key)l.get(0);
    >
    FacesContext fc = FacesContext.getCurrentInstance();> BindingContainer bindings =
    > (BindingContainer)fc.getApplication().evaluateExpressionGet(fc,
    > "#{bindings}",
    > BindingContainer.class);
    >
    DCBindingContainer bindings = (DCBindingContainer)bindings ;> DCIteratorBinding iter =
    > bindings.findIteratorBinding("TargetSelectorTargets1Iterator");
    >
    > iter.setCurrentRowWithKey(key.toStringFormat(true));
    > Row r = iter.getCurrentRow();
    > System.out.println(row.getAttribute("Name").toString());
    > }

  • Help needed with singleSelection and multiple selection in table.

    Hi ,
    How do i implement the singleSelection and multipleSelection on table rows.
    How do i capture the checked rows?
    How should the code be written and where should it be written.
    I should be capturing the values of the checked rows and pass it to the pl/sql package.
    I have a table - in -table so there is a singleselection on the outer table and multiple selection on the Inner table.
    Could anyone help me with this.
    Thanks,

    One solution to most of your questions : Read the advanced table section of Dev guide.
    Always go through the dev guide before putting up the issue. Let the forum be for those scenarios which dev guide doesn't covers in much detail.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Opening an ID file in AI

    I have a file from a customer that was built in InDesign. I have ID, but do not use it much. I tried exporting it as an eps file and opening it in AI since that is what we use to send our art to film for screen printing. It opens fine, but there is a

  • I am moving my ipod classic from a pc to my new mac

    I am moving my ipod to my new Mac and no longer have physical access to the pc. So I think I need to move my library and reformat. I am confused about the resetting or reformatting part. I think I understand that I have to download a manager program

  • Transfering my mail to new Macbook?

    I am ugrading to a Macbook from an iBook and I wanted to know if there is a file somewhere that contains all of my mail on my iBook (tiger) that I could copy to my new Macbook. Would be nice to still have access to my old email. Thanks F

  • Return unrestricted stock to vendor

    Dear gurus, Our issue is as follows: GR is done for a line item in PO. Inspection lot is generated and this material goes to quality stock. The material is then moved to unrestricted stock. The status of the inspection lot is REL, CALC and SPCO. In s

  • Abap dev for new plant

    Dear all, We acquired new plant, and we are inegrating that new plant which is not in sap, into our sap system. and lots of customizations have to be done. I understand that on the mm front new plants creation, assignments to cocode, BA etc happen. I