How to filter a table's results

how can I filter a table's results after the user makes a selection? For example, someone makes a selection on a read-only table which lists usernames; the new page needs to display a new table that shows the username selected and all the tasks that user has ..? any help would be appreciated. thanks.
Adam

See chapter 6 in the ADF tutorial:
http://www.oracle.com/technology/obe/ADFBC_tutorial_1013/10131/index.htm
They use the setCurrentRowWithKey method to do that.
You can have a VO with a where clause built-in or you use the setWhereClause method of the VO in a service method you expose in the AM.

Similar Messages

  • How to query a table and result together with autonumber

    Hi all
    How to query a table and the result return autonumber for each row together with the table values.
    I have tried rowid but it provide me with characters.
    Tj

    What is your exact requirement?
    If you want the number of rows selected, you can use rownum.
    select rownum, a.* from <table> a;
    Cheers
    Deepak

  • How to filter a table?

    Hi ALL,
    I have a table with four columns. One out of them is a unique column. I want to filter the table for 1000 of records w.r.t. the unique column.
    Code snippets will be appreciated.
    Regards
    DK

    Hi,
    create one context value attribute with String datatype for ex. Filter_Value. And bind this attribute to the filterValue property of the table column.
    write the following code in OnFilter event of the table.
    String filterName = wdContext.currentContextElement().getFilter_Value();
    if(filterName!=null && !filterName.equals(""))
    // Here, call the method (or) write the code which is used to load the table.
    IPrivate<View>.I<Table_Node> myNode = wdContext.node<Table_Node>();
    int n = myNode.size();
    HashMap filterMap=new HashMap();
    int val=0;
    for (int i = n - 1; i >= 0; i--)
    String value = (String) myNode.get<Table_Node>ElementAt(i).get<Attribute_Name>();
    if (value.toLowerCase().startsWith(filterName.toLowerCase()))
    IPrivate<View>.I<Table_Node>Element myElement = myNode.get<Table_Node>ElementAt(i);
    filterMap.put("Elem" + val,newElement);
    val++;
    myNode.invalidate();
    for(int j=0;j<val;j++)
    myNode.addElement((IPrivate<View>.I<Table_Node>Element)filterMap.get("Elem" +j));
    regards
    karthik

  • How to filter a table according to column values in CRM2007 WebUI ie ICWC.

    Hi,
    I am working in CRM 2007 ICWC.
    My question is I need to filter the sales items table according to quantity entered in the sales order.How do I do it.I cannot use Filter = 'server' as it is obsolete in CHTMLB:Tableview tag.
    Please suggest a solution.
    Thanks,
    Ashish.

    Hi Ashish,
    I think you have to manually iterate the collection and filter them according to the value of quantity in each line.
    Regards, Sudeep..

  • How to update multiple tables using results from query

    I'm a bit rusty on this stuff and am hoping for some help.
    Table 1 is:
    location_id, location_name
    Table 2 is
    location_id, employee_id and misc. other columns
    Then there are multiple tables with associated data, keys being location_id and employee_id.
    There are no established relationships.
    Trying to come up with a process to change location_id for all employees assigned to a particular location.
    It seems to me that the basics are
    select employee_id from Table2 where location_id='xxxxxx'
    Then take each employee_id returned and change their location_id in each of the other tables
    I'm not clear on how to load the returned employee id's as variables and then loop through them.
    Thanks

    Thanks for the welcome. I'll read up on the rules now.
    Below is the DDL for a couple of the tables.
    Version = 11g
    I would query the users table for all users with a certain site_id and then use them to update the site_id in the users table (and other tables)
    -- DDL for Table USERS
    CREATE TABLE "USERS"
    (     "USERID" VARCHAR2(8 BYTE),
         "PASSWORD" VARCHAR2(50 BYTE),
         "FIRST_NAME" VARCHAR2(50 BYTE),
         "LAST_NAME" VARCHAR2(50 BYTE),
         "SITE_ID" VARCHAR2(5 BYTE),
         "ROLE_ID" VARCHAR2(1 BYTE)
    ) SEGMENT CREATION IMMEDIATE
    PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
    TABLESPACE "SITES_DATA_TS"
    CACHE ;
    -- DDL for Table EMPLOYEE_PROFILE
    CREATE TABLE "EMPLOYEE_PROFILE"
    (     "EMPLOYEEID" VARCHAR2(9 BYTE),
         "PROGRAM" NUMBER,
         "REQUIREMENT" NUMBER,
         "JOBNUM" VARCHAR2(50 BYTE),
         "STATUS" VARCHAR2(50 BYTE),
         "PROGRAM_TYPE" VARCHAR2(50 BYTE),
         "SITE_ID" VARCHAR2(5 BYTE),
         "NUM_QUAL_TEST_ATTEMPTS" NUMBER(7,0)
    ) SEGMENT CREATION IMMEDIATE
    PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
    TABLESPACE "SITES_DATA_TS"
    CACHE ;

  • How to filter a table using column filter on a date field with time?

    Hi,
    I have a date field where I am inserting a date+time value, for example: 01/01/2012 09:30:00 So, I would like to filter an adf table using a column inputdate filter to filter only by date this field.
    I was testing using formats but with no luck.
    Any Idea?
    Thanks,
    jdev 11.1.2.3
    Edited by: jhon.carrillo on Oct 29, 2012 12:23 AM

    Then, try to add another attribute in your SELECT VO statement, which truncates the original date_and_time field:
       SELECT.... TRUNC(DATE_AND_TIME) as truncated_dateAfter that, put reference to that attribute in the filter facet, as follows
             <f:facet name="filter">
                      <af:inputDate value="#{vs.filterCriteria.TruncatedDate}" id=.../>
             </facet>Do not forget to add the TruncatedDate attribute in the <tree...> binding in the pageDef, along with others VO attributes. Do that manually.

  • Please show me an example of how to get three tables join results

    For example:
    I have table students,books,book_issue_detail
    student table : student_id primary key,student_email
    books table: book_id primary key, book_title,author_name
    books_issue_details: book_id,student_id,isssue_id primary key, issue_date
    I would like to show student_name,book_title,issue_date by latest

    985011 wrote:
    For example:
    I have table students,books,book_issue_detail
    student table : student_id primary key,student_email
    books table: book_id primary key, book_title,author_name
    books_issue_details: book_id,student_id,isssue_id primary key, issue_date
    I would like to show student_name,book_title,issue_date by latestWhere is student_name???
    You can try below one.
    Select a.student_id,b.book_title,c.issue_date
    from student a, book b, book_issue_details c
    where a.student_id=c.student_id
    and c.book_id=b.book_id;

  • How to clear UNB table in the payroll result?

    Hi,
    We are getting the payroll error- The gross wages do not cover the negative offset that has been forwarded. Therefore, no gross up is permitted while running the Grossup.
    I see the below table "UNB table" in the last payroll result. "UNB - Unbalance table used for tax retrocalculation" .
    I think we are getting the above error because of this UNB table, can anyone help me to how to clear this table?
    When we run the regular payroll, no tax is being deducted.
    Please help
    Saurabh

    Hi Arti,
    Thanks for your reply!!..
    Seeing your reply, it gives me bit confidence to crack the existing problem, however, I'm still not clear with your answer... let me explain you the problem-
    1. Employee was given 350,000 though Taxable Bonus WT with regular pay check
    2. Later it came to know- out of the above amount, 75000 was Grossup amount
    3. So in next payroll run, they entered -75000/- in regular Taxable bonus WT and +75000 in Grossup WT and also they deleted one IT210 record of GA tax authority which was wrongly created; and ran the payroll
    4. Since then, in next payroll period- No tax is being deducted, so we are creating IT221 infotypes with Tax wagetype
    5. If we are running the Grossup wage, payroll error- The gross wages do not cover the negative offset that has been forwarded; therefore, no grossup is permitted.
    While running the regular payroll, overpayment Wagetype is being generated.
    Now, I saw this UNB table is created and the below wagetype are there in the UNB table-
    WT /5UT amount 0.00
    WT 5430 amount -75000
    WT 0200 amount 12500 ( Monthly salary)
    WT 4530 amount 350000
    Now I am thinking, if we are deducting tax through IT221,if we clear this UNB table, our problem might get resolved
    It will be a great help for me if you can tell-
    1. how to check, claims process is implemented or not?
    2. I have good HCM experiece but this claims process is very new to me- pls guide me how to do that
    Waiting for your reply, thanks in advance
    Saurabh Garg

  • How can I filter a table from Data Control without enter query

    I have a table from a web service data control based on WSDL.
    I want to filter the table without input query at filter text box. Without filter text box, each would filter the table with a hardcoded query internally.
    For example, when user click A menu button then it filters the table where type = '1' and B menu button filters the table by type='2' and C menu button filters the table by type=' ' .
    How can I filter the table without enter query?
    Could anyone point me to a solution please.
    Thanks.
    jdev 11.1.5
    Edited by: 893364 on Oct 26, 2011 12:15 PM
    Edited by: 893364 on Oct 26, 2011 12:21 PM

    Hi,
    when you created the table, did you try selecting the "filter" option. Select the table and go to the Property Inspctor. In the tool bar of the Property Inspector there is an icon to change the configuration. Its adding filter filter fields for the user to search in.
    Option 2: The data of the Web Service actually is held in the iterators. If you wanted to filter the WebService query, I would not use the WS DC but a JAX-WS proxy in a POJO to fetch the WS Data. Then have the Data Control created from the POJO. You could have a method exposed on the POJO that allows you to filter the internally held data
    Frank

  • How to filter results from 4 dynamic list menus depandant on how many of them are selected

    I have a search page with a form with 4 list menus and 1 submit that post the results to the results page. I can create a record set that either retrieves the correct data from my database if a selection is made from all four menus Or i can create the recordset if only 3 menus have a selection or the same for 2 menus and 1 menu. However i want the user to be able to make a selection from either 1, 2, 3 or all 4 of the menus and the exact data be retrieved. At present if i try to combine the recordset using AND and ORs the results are not specific enough, for example the 4 menus are Location, Type, Price & Style if a user selects from all 4 i only want to retrieve data that matches all 4 criteria, but at the same time if the user selects only 2 of the menus the i want it to retrieve data that matches specifically those 2 variables. I´m not actually sure if i should be creating a more advanced sql query of if its the php side of things that i need to look at. This is my first dynamic site so please be aware i´m still a learner where php and sql is concerned. Please can anyone help?  

    Hey there,
    Thanks for replying,
    I too am using Dreamweaver recordset, my local server is XAMPP ( apache php mysql), i´have pasted my sql recordset below to give an idea of what i´m trying to do, however this does not work as i´m trying to select the exact data based on 4 menus PRICE TYPE LOCATION and BEDS, and also want the search to work if the user only selects options from either 1, 2, 3 or 4 of the menus, with the code as it is if the user select only two options from 2 of the menus the results don´t just find (for example) all results for location AND price they find all results for the location varibale OR the price variable rather than a match for both, if you see what i mean?
    Any suggestions?  
    SELECT trueprice,`desc`, `propid`, `bathrooms`, `photo1`, locationtable.loc, typetable.style, bedtable.`number`
    FROM detailstable JOIN locationtable ON detailstable.location=locationtable.locid JOIN typetable ON detailstable.type=typetable.typeid JOIN pricetable ON detailstable.price=pricetable.priceid JOIN bedtable ON detailstable.beds=bedtable.bedid
    WHERE (location=varloc AND price = varprice AND type=vartype AND beds=varbed ) OR (price=varprice AND location=varloc AND type=vartype) OR  (price=varprice AND location=varloc AND beds=varbed) OR (price=varprice AND beds=varbed AND type=vartype) OR  ( location=varloc AND type=vartype AND beds=varbed) OR  (price=varprice AND location=varloc) OR (price=varprice AND type=vartype) OR (price=varprice AND beds=varbed) OR (type=vartype AND location=varloc) OR (type=vartype AND beds=beds) OR (location=varloc AND beds=varbed) OR (price = varprice OR beds=varbed OR type=vartype OR location=varloc)
    ORDER BY detailstable.trueprice ASC
    Look forward to receiving your thoughts,
    Linda
    Date: Wed, 21 Oct 2009 14:36:33 -0600
    From: [email protected]
    To: [email protected]
    Subject: how to filter results from 4 dynamic list menus depandant on how many of them are selected
    Hiya,
    I'm just doing my first dynamic site too, and am at a similar level to yourself.
    Can you give us more info re the site. What software, eg Dreamweaver etc are you using, and is your server using PHP or ASP etc?
    For what I've used, I amended the SQL side of things in the recordset in Dreamweaver. That way, you can test the SQL as you're setting up the recordset.
    Let me know how you're going on anyway
    Cheers
    Andy
    >

  • How to filter listResourceObjects result?

    I am using the following code to get LDAP groups back:
    <invoke class='com.waveset.ui.FormUtil' name='listResourceObjects'>
    <ref>:display.session</ref>
    <s>Group</s>
    <s>LDAP</s>
    <map>
    <s>searchFilter</s>
    <s>(cn=DB2 Administrators)</s>
    </map>
    <s>true</s>
    </invoke>I expected that the result should only be one group. Instead I got all the groups back. Does anyone know how to filter the result?
    Thanks a lot!

    Hi,
    Thanks for your code posting.
    One thing I noticed is that your code calls
    the getResourceObjects method, whereas
    the original poster (and myself) are trying to
    call the listResourceObjects method.
    If I call getResourceObjects, I get back just the
    objects I need.
    However if I call listResourceObjects I get back
    a list of all the groupofuniquenames objects in my ldap tree.
    I really need the names of the objects and not the
    objects themselves, so getResourceObjects won't
    work for me.
    This code works, it returns four objects:
    <invoke name='getResourceObjects' class='com.waveset.ui.FormUtil'>
    <ref>:display.session</ref>
    <s>Group</s>
    <s>LDAP</s>
    <map>
    <s>searchContext</s>
    <ref>searchContext</ref>
    <s>searchFilter</s>
    <concat>
    <s>(uniqueMember=uid=</s>
    <ref>uid</ref>
    </concat>
    <s>searchScope</s>
    <s>subTree</s>
    </map>
    </invoke>
    This code does not work. It returns the name of every object
    where or not the user is a member. It just seems to ignore
    my searchFilter and always send a default one to the ldap server:
    <invoke name='listResourceObjects' class='com.waveset.ui.FormUtil'>
    <ref>:display.session</ref>
    <s>Group</s>
    <s>LDAP</s>
    <map>
    <s>searchContext</s>
    <ref>searchContext</ref>
    <s>searchFilter</s>
    <concat>
    <s>(uniqueMember=uid=</s>
    <ref>uid</ref>
    </concat>
    <s>searchScope</s>
    <s>subTree</s>
    </map>
    <s>false</s>
    </invoke>
    Thanks,
    John I

  • How to retrieve the BRF+  function result data object of type table in ABAP

    Hi,
    I am calling a BRF+ function from Abap....If the result data object of the function is element then i am able to get the value back in ABAP...Suppose the result data object of the function is of table type,I couldnt retrieve the value....Can you please help me how to retrieve the table data object value of the function from abap....
    Regards,
    Dheepak.

    Hi,
    Thanks carsten and Tiwari for your reply...
    Tiwari,
    I understand that if i know the data type of the result data object which i am going to get i can declare it my ABAP program and get the values....But i am developing a generic program which calls the various BRF+ functions based on the function id...So i am not aware what is the data type of the result data object....so is there a any way to handle this situation...Please advice...
    Carsten,
    I used the GET_DATA_OBJECT_STRUCTURE method of class CL_FDT_FUNCTION_PROCESS to get the data object structure...i am able to get whether it is an element or structure or internal table...
    But is there any way to get the data type of the object...For example if it is going to be an element of type BELNR_D,is it possible to get the BELNR_D value in my program...Please advice...
    Thanks,
    Dheepak.

  • How to get the table with no. of records after filter in webdynpro

    Dear Gurus,
    How to get the table with no. of records after filter in webdynpro?
    Thanks in advance.
    Sankar

    Hello Sankar,
    Please explain your requirement clearly so that we can help you easily.
    To get the table records from your context node use method get_static_attributes_table()
    data lo_nd_mynode       type ref to if_wd_context_node. 
    data lt_atrributes_table  type wd_this->elements_mynode. 
    lo_nd_mynode = wd_context->get_child_node( name = wd_this->wdctx_mynode ). 
    lo_nd_mynode->get_static_attributes_table( importing table = lt_atrributes_table ). 
    Note: You should have already defined your context node as a Dictionary Structure.
    BR,
    RAM

  • How to refresh a table results before getting new results ?

    Hello,
    I receive in a table results from a BI query that is first fed from a selection screen with different dropdowns.
    My problem is the following:
    - when a new selection is made, the table is updated with new results : OK
    - BUT when the result of the query is empty, the table keeps the last results
    How can I fix this problem?
    Any idea,
    Thanks a lot,
    Thomas

    OK, the model is really simple:
    - Form with several selection dropdowns
    - BI query
    - table with results
    Everything is OK but, if there are already results in the table AND the user starts a new search that provides no result (no applicable data), the table is not updated and shows the last results, which is a problem ...
    Thanks,
    Thomas

  • How can i have Query trace results in a table format?

    How can i have Query trace results in a table format?

    Are you referring to reading the trace files generated under udump folder?
    Well, you can make use of external tables, but you really need to be a master in understanding that cryptic data.
    Check out following link for an alternative.
    http://www.oracle.com/technology/pub/articles/gallagher_tfm.html

Maybe you are looking for

  • Error when open DMS document

    Dear DMS experts, After migration DMS server from one server to another an error has occurred in transaction CV03N when try open original document I got next error massage: File C:\temp\file_name cannot be created (Message no. 26172). This happens wh

  • XSQL-007: Protocol violation

    Oracle XSQL Servlet Page Processor 1.0.0.0 (Production) XSQL-007: Cannot acquire a database connection to process page. Protocol violation ^^^^^^^^^^^^^^^^^^ what is it?????????????

  • Table name for backorder qty on sales order.

    Hi, I'm new to SAP NetWeaver; would like to know what is the table name that retain the backorder qty for a sales order. Thanks in advance, Nghiem.

  • Multiple Schedule Line Category significance

    Hi, I am a SAP SD newbie..  I am not able to understand the significance of Schedule line category.. Each item can have multiple schdule line caterories.  But why would we need multiple of these. Sap manuals are not very clear on the need for multipl

  • Documents, Journal entries and DTW

    Hello, Is there a way that when I import a journal entry, DTW tells me that I can't because this JE is coming from a document and the JE already exists ? I saw that there is the field "Origin No." (table OJDT, BaseRef) which is displayed when a docum