Advanced Table Multiple Selection

Hi,
I have created a advanced table under query bean with multiple selection feature.After querying the advanced table bean When i select the row in the table and click on another button i have writtten a logic in process from request to select only those rows selected in table ,but the view attribute of select check box is retuning null is there any way to identify the rows selected

Use this code in AMImpl. It will definitely work. I have tried. Don't forget to create a Transient Attribute of Type String [[here transient attr is Select]] in the VO.
public void selectFlag()
System.out.println("In the selectFlag");
SombitTestVOImpl vo = (SombitTestVOImpl)findViewObject("SombitTestVO1");
if (vo != null)
Row[] arow = vo.getFilteredRows("Select", "Y");
System.out.println("Row count is"+ arow);
if(arow != null && arow.length > 0)
for(int i=0; i<arow.length; i++)
System.out.println("Value of i is"+ i);
String Job = (String) arow [].getAttribute("Job"); // here you have to write arow followed by i in square bracket
Date NotifyDate = (Date) arow [[i]].getAttribute("NotifyDate"); // here you have to write arow followed by i in square bracket
System.out.println("Value of Job is "+ Job);
System.out.println("Value of NotifyDate is "+ NotifyDate);
Cheers
Sombit :)

Similar Messages

  • Advanced Table Multiple Selection View Attribute Type

    Hi,
    I have an advanced table with multiple selection. The multiple selection is associated with a view object attribute that is of type "String". In the create mode, the view attribute stores "Y" for the selected rows. But in the update mode, when I try to initialize the VO from the DB table, the multiple selection checkboxes are not selected for the rows where the DB value of the associated attribute is "Y". Somebody told me that if I specify the type of the DB attribute associated, to Boolean (and also the view attribute as Boolean), then this problem wouldn't occur. Is that correct or I must be doing something else wrong?
    Thanks,
    Amit

    Hi Pratap,
    It's quite simple actually. I mean the problem defintion :-) (not the solution)
    I have a table with multipleselection. Initially the user does a "Select All" and the data is committed to the DB.
    Once committed I don't want the user to change the selection, hence I need to hide the checkbox ( there is no way to make it read only).
    To do this, I make the multipleselectionbean as rendered=false. But when the page is committed again, the row selection is getting changed back to "N" for all rows.
    Now if I don't hide the multipleselection bean, the checkboxes appear as selected and the commit doesn't change the value to "N".
    Hope the problem is clear now.

  • I am unabel to select all rows in advance table using Select All option

    Hi all ,
    I am unable to select all the rows in advance table . Select All option in advance table selects all rows present in working page but doesnt select the rows which we get by clicking next button ... i am having a requirement to select all the rows with a single click on select all , is it possible ..
    Plz help
    Thanking you all

    Hi,
    I'm using an adf table but i don't want to have the "Select All" and "Select None" options above the table. Does someone know how i have to remove those links?
    Or is there indeed a solution to override the methodes of those links?
    Message was edited by:
    Alexander

  • Storing Data in Context from a table (multiple selection)

    Hi,
    I have created a node called cauverynode, which contains cauName and cauClient as its attribute. I have bound that node with the table. Now i have to store the selected clients into a context. How can i do that? Please help me out. i am unable to store the clients in a string context. Kindly solve it. Below is the code, which will store the selected item and put into a string variable.
    public void supplyCauveryNode(IPrivateSampleComponent.ICauveryNodeNode node, IPrivateSampleComponent.IContextElement parentElement)
    //@@begin supplyCauveryNode(IWDNode,IWDNodeElement)
    IPublicSampleComponent.ICauveryNodeNode cauNode =
    wdContext.nodeCauveryNode();
    ArrayList selectedcauClients = new ArrayList(cauNode.size());
    for (int i = 0, n = cauNode.size(); i < n; ++i) {
    if (cauNode.isMultiSelected(i) || i == cauNode.getLeadSelection())
    selectedcauClients.add(cauNode.getElementAt(i));
    String strSelcaucli = null;
    for (int i = 0, n = selectedcauClients.size(); i < n; i++) {
    strSelcaucli = strSelcaucli + selectedcauClients.get(i);
    wdContext.currentContextElement().setStrCauveryClient(strSelcaucli);
    //@@end
    Multiple selected data is been stored in this selectedcauClients arraylist, which is not working.  Kindly help  me out.
    Thanks & Regards,
    Dhana

    What is the following code supposed to do?
    String strSelcaucli = null;
    for (int ix = 0, n = selectedcauClients.size(); ix < n; ix++) {
    strSelcaucli = strSelcaucli + selectedcauClients.get(ix);
    wdContext.currentContextElement().setStrCauveryClient(strSelcaucli);
    I guess you want to create a string containing the names(?) of all selected elements.
    Then you should use something like
    StringBuffer sb = new StringBuffer();
    for (Iterator it = selectedcauClients.iterator(); it.hasNext(); )
      ICauveryNodeElement e = (ICauveryNodeElement) it.next();
      sb.append(e.getName());
      if ( it.hasNext() ) sb.append(",");
    String csv = sb.toString();
    This gives you a comma-separated list of the names of the selected elements.
    Armin

  • Talent search: advanced search multiple selection

    Dear Guru's
    We have setup the TREX and are using the advanced search for talent management. Everything is working fine except if we use the multiple selection option for a field. We have definied our own search field to search for (a range of) salary scale. However if we use the multiple selection and  try to search for e.g. range 05 till 07 the engine only searches for the 05 value and not for 06 and 07. This also appears using  ESH_TEST_SEARCH and also appears within SAP fields such as organizational unit etc.
    We are on SAPBASIS SAPKB70210
                    SAPHR      SAPKE60460  
    Any suggestions ?
    Kind regards Stephan

    Hi Stephan,
    It looks like you're on 604 SP 60 but it's component EA-HRGXX that is important to check. These SAP Notes are useful to implement for the Advanced Search and do cover some of your symptoms.
    1548337 - Search: Enabling multiple selection (EHP 4)
    1550930 - Search: Various corrections for the advanced search
    1561778 - Search: Adding combination in an MV dialog box
    1561031 - Search: Various corrections for the advanced search #2
    Best regards,
    Luke

  • Af:table multiple select getRowData returns null

    Hi everyone,
    i've a strange situation with an af:table component. Let me explain from the start..
    This table is fulfilled by a bean provider(taskmonitorlist) with a method that returns an ArrayList<Task> list.
    Automatically the table renders the results in a proper way. The table is provided with one selectionlistener method present in a backingbean(that is not the provider).
    This is the method :
    public void selection_Method(SelectionEvent event) {
    RichTable t = getT1();// (RichTable)event.getSource();<-- this is a test
    selectedRows = t.getSelectedRowKeys();
    //Store original rowKey
    Object oldRowKey = t.getRowKey(); <-- in according with http://jobinesh.blogspot.com/2010/02/common-mistake-while-iterating-through.html
    try {
    pb2.getChildren().clear();<-- this is not important:pb2 is a panel box, outside the table, in which i render some buttons at runtime
    if (selectedRows == null) {
    return;
    if (selectedRows.size() == 1) {                                           
    Iterator iter = selectedRows.iterator();
    if (iter != null && iter.hasNext()) {
    Object rowKey = iter.next();
    t1.setRowKey(rowKey);
    Task task = (Task)t.getRowData();
    //row details
    ot2.setValue(task.getSystemMessageAttributes().getProtectedTextAttribute12());
    ot3.setValue(task.getSystemMessageAttributes().getProtectedTextAttribute15());
    ot4.setValue(task.getSystemMessageAttributes().getProtectedTextAttribute16());
    pb2.getChildren().addAll(addCommandsAction(task));
    } else {
    t1.setRowKey(oldRowKey);
    Ok. The strange thing is : when i select a row that is > 11(rowkey>11) these instructions have these values:
    selectedRows.size() = 1 <- this is what i expected to have
    Object rowKey = iter.next();
    rowKey = null!! <-WHY???????
    Why the .next() is null? if a select a row < 12 everything is allright.
    this is the jsf table component:
    <af:table value="#{taskmonitorlist.dataModel}" var="row"
    immediate="true" rowBandingInterval="0"
    rowSelection="multiple" columnSelection="none"
    columnBandingInterval="0" displayRow="selected"
    binding="#{backingBeanScope.backing_monitor.t1}" id="t1"
    summary="table data" disableColumnReordering="true"
    inlineStyle="height:300px; width:1190px;margin-left:42px; margin-top:10px;"
    selectionListener="#{backingBeanScope.backing_monitor.selection_Method}"
    clientComponent="true">
    <af:column headerClass="columnHeaderBig" sortable="false"
    headerText="Monitor" align="center" id="c12">
    <af:column sortable="false" headerClass="columnHeaderNormal"
    headerText="Titolo" id="c5" width="265">
    <af:outputText value="#{row.title}" id="ot6"/>
    </af:column>
    <af:column sortable="false" headerClass="columnHeaderNormal"
    headerText="Numero Pratica" id="c7" width="110">
    <af:outputText value="#{row.systemMessageAttributes.protectedNumberAttribute1}"
    id="ot9">
    <af:convertNumber integerOnly="true" groupingUsed="false"/>
    </af:outputText>
    </af:column>
    </af:column>
    </af:table>
    having used a bean as a provider i do not have a data control nor a view object.
    Any clues?
    i'm using Oracle JDeveloper 11g and Oracle Application Development Framework (ADF) 11g 11.1.1.3.0
    thanks in advance
    Edited by: 838382 on 21-feb-2011 4.01

    Hi,
    you set "rowSelection="multiple" but in your code you check for
    if (selectedRows == null) {
    return;
    if (selectedRows.size() == 1) { ...}
    This will cause a problem when users perform multi row selection
    Frank

  • Creat View from Multiple tables , Multiple Select

    Hello  Everyone ,
    I have a question and am not sure if this the correct forum to post it .
    I have two table studentTable and CourseTable which is each student  take more than one course . 1:M
    for example Student1 take 2 courses (C1 ,  C2).
    Student2 take 3 courses (C1,C2, C3).
    I need to create a table/View that contain student information plus all the courses and the score for each  course in one row.
    for example
    Row1= Student1_Id ,C1_code ,C1_name  ,C1_Score ,C2_code,C2_name ,C2_Score
    Row2=
    Student2_Id,C1_code,  C1_name,C1_Score,C2_code ,C2_name ,C2_Score ,  C3_code,C3_name,C3_Score
    and since Student 1 just took two courses  , I  should enter NULL in 'Course 3 fields'
    My Struggle is in the insert  statement
    I tried the following but it show an error
    Insert Into  Newtable
    ( St_ID, C1_code,c1_name, C1_Score ,C2_code  ,C2_name,C2_score,C3_code ,C3_name,C3_score)
    Select
    (Select St_ID from  StudentTable)
    (Select C_code,c_name,c_Score
    from  Coursetable,SudentTable
    where course.Stid =Studet.stid)
    (Select  C_code,c_name,c_Score
    from course ,student
    where course.Stid =Studet.stid  ),
    (Select C_code,c_name,c_Score
    from course ,student
    where  course.Stid =Studet.stid );
    I'm fully aware that the New table will break  the rules of normalization ,but I need it in this way for specifc purpose.
    I tried  also the PIVOT BY functionality but no luck with it .
    FYI , I'm not  expert in using SQL Syntax , I just know the basic.
    I will be great full for  any helpfull suggestions to try ,
    thank you very  much.

    First Table is Member table which Represent
    Students Information
    .The fields in this table are
    member_sk (PrimaryKey), full_or_part_time, gender, age_at_entry, age_band_at_entry, disability, ethnicity,
    widening_participation_level, nationality
    Second Table is Modules table which include
    the Courses' scores that Student took .
    The fields in this table are
    Module_result_k(Primary Key), member_sk(Foreign key to connect to Member table), member_stage_sk
    ,module_k(Foreign key to connect to Module table), module_confirmed_grade_src, credit_or_result
    Third Table is
    AllModuleInfo which is include
    general information for each course .The fields in this table are
    Module_k (Primary key), module_name ,module_code, Module_credit, Module stage.
    The New table
    that I will create has the following fields
    member_sk (PrimaryKey), full_or_part_time, gender, age_at_entry, age_band_at_entry, disability, ethnicity,
    widening_participation_level, nationality 
    " This will be retrieved from Member table"
    Also will include
    Module 1_name ,module1_code, Module1_credit, Module1_ stage, member1_stage_sk
    , module1_confirmed_grade_src, credit1_or_result
    Module 2_name ,module2_code, Module2_credit, Module2_ stage, member2_stage_sk
    , module2_confirmed_grade_src, credit2_or_result
    I will repeat this fields 14 times which is equal to Maximum courses number 
    that any of the students took.
    //// I hope now my questions become more clear

  • [Urgent] Issue with Selected rows in Advanced table

    [I have searched archive and found lots of mails on same issue but none were conclusive so i am asking this again]
    Hi All,
    I have created an advanced table and i want to have functionality of deleting selected rows.
    For implementation of this functionality, i have created a selectflag transient attribute [varchar2] and linked it to multiple select item of Advanced table but the table always returns null for selectflag attribute irrespective of row being selected or not.
    One thing i have noticed is that i can't supply 'checked value' and 'unchecked value' property in advanced table multiple select item. Is that the issue?
    Can anybody please guide, its quite urgent.
    Regards
    Lokesh

    Hi Reetesh,
    Thanks for the reply.
    Yes, you are right i am using same AM at 2 different places.
    Let me just elaborate a little about my implementation:
    I have a Page layout region and within this page layout, i have a query bean which performs results based search.
    Within this query bean, i have added an Advanced table within that query bean to display the results.
    Now coming to multiple AM issue:
    1. Page Layout region must have one AM or its an error.
    2. If i donot add an AM to advanced table, it doesn't return rows.
    So do i need to have 2 diferent AM's for this implementation?
    Regards
    Lokesh

  • Multiple Rows Selection In Advance Table

    Hi All,
    I have a requirement to select multiple rows in advance table.After selection these rows they get added to the record list of another page on click of seeded submit button.This is my custom region.And this functionality is working for seeded region.
    I have added multiple selection component in advance table component.
    How should I make this functionality work for my custom region using the seeded submit button.
    Regards,SHD

    Hi,
    After selection these rows they get added to the record list of another page on click of seeded submit buttonon the click of submit button save the data to the table from where u are getting the data for the other page....Once this data get saved to the table, will definitely shows up in next page.
    Regards,
    Gyan

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Trying to create table using Union All Clause with multiple Select stmts

    The purpose of the query is to get the Substring from the value for eg.
    if the value is *2 ASA* then it should come as ASA
    where as if the value is *1.5 TST* the it sholud come as TST like wise for others too.
    I am trying to execute the below written SQL stmt but getting error as:
    *"ORA-00998 must name this expression with the column alias 00998.00000 - Must name this expression with the column alias"*
    CREATE TABLE TEST_CARE AS
    SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3), len FROM test_care_lvl
    WHERE LENGTH(old_care_lvl) =5
    UNION ALL
    SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3), len FROM test_care_lvl
    WHERE LENGTH(old_care_lvl) =7
    UNION ALL
    SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3), len FROM test_care_lvl
    WHERE LENGTH(old_care_lvl) =14
    UNION ALL
    SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3),LEN FROM test_care_lvl
    WHERE LENGTH(old_care_lvl) =7 AND old_care_lvl ='Regular'
    I want to create the table using the above given multiple select using the Union ALL clause but when trying to create run the query getting error as "ORA-00998 must name this expression with the column alias 00998.00000 - Must name this expression with the column alias"
    Please guide me how to approach to resolve this problem.
    Thanks in advance.

    When you create a table using a SELECT statement the column names are derived from the SELECT list.
    Your problem is that one of your columns is an expression that does not work as a column name SUBSTR(old_care_lvl,3)What you need to do is alias this expression and the CREATE will pick up the alias as the column name, like this:
    CREATE TABLE TEST_CARE AS
    SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3) column3, len FROM test_care_lvl
    WHERE LENGTH(old_care_lvl) =5
    UNION ALL
    SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3), len FROM test_care_lvl
    WHERE LENGTH(old_care_lvl) =7
    UNION ALL
    SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3), len FROM test_care_lvl
    WHERE LENGTH(old_care_lvl) =14
    UNION ALL
    SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3),LEN FROM test_care_lvl
    WHERE LENGTH(old_care_lvl) =7 AND old_care_lvl ='Regular'
    );You may not like the name "column3" so use something appropriate.

  • How to save the  selected rows from Advance table into database

    Hi
    I have requirement like..
    In custom page , Manager Search the Candidates and selects the candidate ROWS from advance table.
    The reqt is how to save the selected multiple rows into the database.

    hi Reetesh,
    In Custom page
    Supoose the Recruiter Search is for Position Finance Mangager , it retrieves 100 rows , out of which Recruiter select 10 rows .
    So in Such scenario how to save this 10 rows against Recruiter
    , i mean , Is i need to create custom table, to save Recruiter , these selected 10 rows.
    I hope u understand my question

  • Advanced table selection

    how to find out the selection if advanced table in custom CO?
    and the corresponding column asssociated with it

    Hi Ayush,
    To identify the selected row first you need to create Multiple/Single Selection in your table then base it on one transient attribute of type string. To select a row user need to check check box or radio button(Multiple/single selection), on checking it will set the corresponding flag as Y.
    You can get the selected row on the basis of value of the corresponding attribute.
    Please let me know if you nay further question, please mention your requirement precisely.
    Regards,
    Reetesh Sharma

  • How to get selected row of an advanced table

    Hi All,
    I have created an advanced table with 5 rows and i can also add rows in that. Here my requirement is i want to get the data of a row which i have selected. There are 5 rows. i have entered data into all 5 rows. Suppose i have selected 3rd row i have to get that 3rd row. if i have selected 5th row i have to get 5th row.
    Can you please guide me to achieve this requirement..
    Many thanks
    Murali

    Hi ,
    you have to set the firepartialaction event on your selection button, then use row refernce to get the handle on specific button
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am =
    (OAApplicationModule)pageContext.getApplicationModule(webBean);
    String event = pageContext.getParameter("event");
    if ("<ItemPPREventName>").equals(event))
    // Get the identifier of the PPR event source row
    String rowReference =
    pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    // write your business logic
    Thanks
    Pratap

  • How to create a table with multiple select on???

    Hi all,
            I am  new to webdynpro and my requirement is to create a  table with multiple selection on.I have to add abt 10 rows in the table but only 5 rows should be visible and moreover a verticalscroll should be available to view other rows.Can anybody explain me in detail how to do that.Please reply as if you are explaining  to a newcomer.Reply ASAP as i have to do it today.
                                                                           Thanxs

    Hi,
    1. Create a value node in your context name Table and set its cardinality to 0:n
    2. Create 2 value attributes within the Table node name value1 and value2
    3. Goto Outline view> Right click on TransparentUIContainer>Apply Template> Select Table>mark the node Table and it's attributes.
    you have created a table and binded its value to context
    Table UI properties
    4.Set Selection Mode to Multi
    5.Set Visible Row Count to 5
    6.ScrollableColCount to 5
    In your implemetaion, you can add values to table as follow:
    IPrivate<viewname>.ITableElement ele = wdContext.nodeTable().createTableElement();
    ele.setValue1(<value>);
    ele.setValue2(<value>);
    wdContext.nodeTable().addElement(ele);
    The above code will allow you to add elements to your table node.
    Regards,
    Murtuza

Maybe you are looking for

  • My computer crashed and all of my songs are gone. How do i get them back?

    my computer crashed and all of my songs are gone. How do i get them back on my new computer?

  • Depreciation posting using only one depreciation

    Hi SAP Gurus, We are maintaining for the purpose of depreciation 4 depreciation methods. 1 is for the company code 2 is for the income tax purpose 3 is for the purpose of costing 4 is for the purpose of IFRS (International Fianancial Reporting) Now m

  • Un-'Locking' multiple files in multiple folders....

    So I just spent 2 hours at the 'Genius' bar manually 'unlocking' hundreds if not thousands of photos in my 'iPhoto' (05) library in order to upgrade to iPhoto '06... apparently, when I imported some pictures from Windows... it brought them in as 'loc

  • Image Resolution for Printing Photos

    I am not sure if the resolution/files size requirements are the same for both inkjets (e.g. Epson) and taking your camera's SD card to a local self-serve kiosk (e.g. CVS). I have been taking photos at the larger file size with my Canon Powershot and

  • Using Boris 3D Generator

    I am very new to FCE - Version 4.0 having always used Imovie. I am trying to create a fairly straightforward 3D Title. I type in my Title, bring it in to project, everything is fine. Now I get a bit fancier. I want to see my Title being generated in