Filter and sorting on table when getting data through store proc

Hi All,
I am using JDeveloper 11g and trying to implement a table which gets its data from a result set returned by a store procedure. The store procedure is using joins to fetch data from multiple oracle tables. I am able to display the data by binding result set element to each columns of ADF table, but sorting and filtering is not working on this, I have checked the chek box while creating table to make it sortable and filtering.
Please help on this issue. How can we implement filtering and sorting in this case?
Thanks in advance
Saurabh agarwal

Hi,
I use managed bean directly to access data. My back end returns me a map with the values and these values are then mapped to columns.
Can you please suggest me any link or example where this model supporting filter is used.
Thanks
Saurabh

Similar Messages

  • How to show the filter and sort capabilities in adf dynamic table

    hi
    how to show the filter and sort capabilities in adf dynamic table..
    Pls help me

    Hi
    Click on a colum in your table and go to the properties pallet
    make true the sortable property then you can sort the table according to that column
    Thanx
    Padma

  • Query on Locked entry and sorting a table

    Hello Friends,
    I have a query on the below
    1. I am running a BDC for TCODE IK11. sO IN A loop i use call transaction statement for
    updating the records. When the first record is created for a measurement point
    by running the tcode then the second recordshows that the measurement point is locked.
    and it doesnt let another record getting updated.
    what should be done in this case.
    2. I am trying to simply sort a table with the three fields.
    point date time. When i sort the table  by only point and time in descending order its
    working fine but when i am trying to sort the table by point date time it is not sorting
    it in descending order.
    My requirement is that i want the latest date and time of the measurepoint created in the system.
    Pls Help.
    Thanks
    Rohit

    Hi,
    Thanks, SupportsSortCollection is the one I was missing.
    Although now I can click the headings, it is pretty useless because sorting behaves totally erratic. (This is true even if showing the entire table, not only a given range of it.)
    For example the following happen randomly:
    - Mostly a columns is not sorted properly. After clicking it e.g. 3-4 times, it is sorted properly, but only in one of the orders (e.g. descending).
    - The ascending or descending order of the rows varies from click to click. E.g. the ascending order of rows is not the same every time.
    - Sometimes clicking does nothing, no sorting is fired.
    - Etc...
    So basically my question is still the same as in my first post. :(
    Regards,
    Patrik

  • WebPart: Display the search result in an spgridview with filter and sort

    hi,
    For explain more in details.
    I need the search result in a table displaying some meta common in the different library.
    I've to have the possibility to filter and sort the grid.
    i'm trying to extend Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart
    i can have the result from the textbox search with: SharedQueryManager.GetInstance(this.Page).QueryManager
    My queryManager is populate in the method: CreateChildControls
    I put the sample code i use. and in the populateData method, my querymanager is null while in the createChildContriol, it's correctly populate with : this.queryManager = SharedQueryManager.GetInstance(this.Page).QueryManager;
    using System;
    using System.ComponentModel;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.WebControls;
    using Microsoft.SharePoint.Search.Internal.WebControls;
    using Microsoft.Office.Server.Search.Query;
    using Microsoft.Office.Server.Search.WebControls;
    using System.Data;
    using System.Xml;
    namespace CustomSearchResultWebPart.CustomCoreResultWebPart
    [ToolboxItemAttribute(false)]
    public class CustomCoreResultWebPart : Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart
    private ObjectDataSource objDS;
    private const string ObjectDataSourceID = "gridViewDataSource";
    private QueryManager queryManager;
    private SPGridView gridView = new SPGridView();
    protected override void CreateChildControls()
    //here is correctly populate
    this.queryManager = SharedQueryManager.GetInstance(this.Page).QueryManager;
    try
    LoadSearchGrid();
    catch (Exception ex)
    Page.Response.Write(ex.Message + " - " + ex.StackTrace);
    //base.CreateChildControls();
    protected override void OnInit(EventArgs e)
    base.OnInit(e);
    protected override void OnLoad(EventArgs e)
    base.OnLoad(e);
    protected override void OnPreRender(EventArgs e)
    //gridView.DataBind();
    base.OnPreRender(e);
    protected override void Render(HtmlTextWriter writer)
    base.Render(writer);
    public DataTable populateData()
    DataSet dtSet = null;
    DataTable dtTable = null;
    //here is my query manager is null
    if (queryManager != null && queryManager.Count > 0)
    XmlDocument xdoc = new XmlDocument(); //We are using XmlDocument
    xdoc = queryManager.GetResults(queryManager[0]);//xml returned by search
    if (xdoc != null)
    XmlReader xmlReader = new XmlNodeReader(xdoc);
    dtSet = new DataSet();
    dtSet.ReadXml(xmlReader);
    if (dtSet.Tables.Count > 1)
    dtTable = dtSet.Tables["Result"];
    return dtTable;
    private void LoadSearchGrid()
    this.objDS = new ObjectDataSource();
    this.objDS.ID = ObjectDataSourceID;
    this.objDS.SelectMethod = "populateData";
    this.objDS.TypeName = this.GetType().AssemblyQualifiedName;
    this.objDS.ObjectCreating += new ObjectDataSourceObjectEventHandler(objDS_ObjectCreating);
    this.Controls.Add(objDS);
    gridView.ID = "_gridView";
    gridView.AutoGenerateColumns = false;
    gridView.Width = new Unit(100, UnitType.Pixel);
    gridView.EnableViewState = false;
    gridView.AllowPaging = true;
    gridView.PageSize = 5;
    gridView.DataSourceID = ObjectDataSourceID;
    this.Controls.Add(gridView);
    void objDS_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
    //e.ObjectInstance = objDS;
    protected void gridView_RowDataBound(object sender, GridViewRowEventArgs e)
    //throw new NotImplementedException();
    Do you have a sample that i can use or some tutorial?
    thanks for your help

    I added this in my class
    public class CustomResultsDatasource : CoreResultsDatasource
    public CustomResultsDatasource(Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart parentWebPart)
    : base(parentWebPart)
    View = new CustomResultsDatasourceView(this, GetType().Name);
    public class CustomResultsDatasourceView : CoreResultsDatasourceView
    public CustomResultsDatasourceView(SearchResultsBaseDatasource dataSourceOwner, string viewName)
    : base(dataSourceOwner, viewName)
    //make sure we have a value for the datasource
    if (DataSourceOwner == null)
    throw new ArgumentNullException("DataSourceOwner");
    CustomResultsDatasource datasource = this.DataSourceOwner as CustomResultsDatasource;
    this.QueryManager = SharedQueryManager.GetInstance(datasource.ParentWebpart.Page).QueryManager;
    And this in my customSearchResultWebPart
    protected override void CreateDataSource()
    //base.CreateDataSource();
    this.DataSource = new CustomResultsDatasource(this);
    How can i use queryManager in populateData?
    thanks for your help

  • How can I save a named filter and sorting for later use?

    I regularly do several different complex filtering and sorting on large tables. I did not find a way to save them for later one-click reuse. So I always have to do it again, which is time-consuming and error-prone. Hoped to get a solution by AppleScript, but filter and sort is not accessible by scripting.
    Is there a way or does Apple have it on it´s agenda for future versions of Numbers? 

    Hi Jan,
    filter and sort is not accessible by scripting.
    There is some support for sort (and less for filter) in Numbers 3.
    Table has a filtered property.
    And you can sort.
    A sort example can be found at https://iworkautomation.com/numbers/table-sort.html.
    Not sure if this will be sufficient to handle your needs, but just wanted to point out there is some scripting support.
    SG

  • Error when getting data (RSDRI_CUBE_READ) - RSCRM_BAPI

    Hello Gurus,
                I am getting a error when I try to create a extract using RSCRM_BAPI using Process Chain.
                I created a job and used that in the Process Chain, Once I run the Process Chain it is executing and
               the job is deleted and the extract gives me this error in the Monitor.
                Error Message - Error when getting data (RSDRI_CUBE_READ)
                If I run manually I am able to see the extracted records.
                Please help.
    Regards,
    Raj

    Hi,
    "Unknown error when executing MDX" is msg number BRAINOLAPAPI012.
    Check out these 3 SAP notes:
    1091523 MDX: System error in connection with named sets
    1252372 OLE DB for OLAP: Additional corrctions for new MDX parser  
    1282785 MDX: System error "Invalid MDX command with <internal>     
    Also test in transaction MDXTEST to see if your statements are syntactically correct.
    Rgds,
    Colum

  • Weblogic slowers down when retrieving data through JMX in SSL mode

    weblogic slowers down when retrieving data through JMX in SSL mode..is this has been face by anyone?
    kidnly help me..

    Nihil Somani wrote:
    weblogic slowers down when retrieving data through JMX in SSL mode..is this has been face by anyone?
    kidnly help me..Hi. This is the JDBC newsgroup, so asking about SSL and JMX isn't going to get much
    response, but you'd expect SSL to be slower...
    Joe

  • I recently got an iphone 5S and my songs not purchased from iTunes are grayed out (phone only) and are skipped past when playing them through my iPhone.

    I recently got an iphone 5S and my songs not purchased from iTunes are grayed out (phone only) and are skipped past when playing them through my iPhone. i have tried the following:
    1) Removing all music from phone and resynced to iTunes PC library.
    2) Erased phone and restored from back up
    3) Erased phone and started as a new iPhone
    4) Reformated the music files in my library that weren't playing
    5) Deleted songs from iPhone and computer and re-imported CDs
    6) Tried to redownload my COMPLETE MUSIC LIBRARY from iCloud.
    7) I have also turned it off and turned it back on several times
    8) I tried syncing through my macbook (only moved partial songs to it to see if it would even work).
    9) I have tried to get Siri to play them, did not work.
    10) All music does play fine on my iPod Touch 3rd (iOS6 i think) gen and iTunes on Mac and PC
    11)  I added a CD to my roommates iTunes and it plays on their iPhone 5S but not mine.
    After all of these things it is now WORSE!!!  My iTunes purchased songs are now experiencing the same issue along with some (not all) of the original music files that were skipping and grayed out.  My conclusion is i have no clue at this point!  I have done everything i have found online in EVERY discussion, i have spent over 60 hours trying to get this to work and i am asking myself, i bought this product why am having to fix this when it worked just fine on my iPod touch (3rd Gen) and iPod Classic!!!!  PLEASE APPLE FIX THIS ISSUE FOR US!!!! 

    I had this problem too after i upgdatd to OS X Mavericks... only the songs on my iphone 5s that i purchased from itunes would play.
    i read something about it being a syncing issue. when you plug your phone into your computer with the usb cable, the person said to switch from automatic syncing of itunes to the "manual" option. mine was already set to manual so i wasn't sure anything would work. BUT, when i plugged my phone into my computer, it started to sync all of my music on my phone again (top of itunes bar where song playing/time is listed said "now syncing 123/534 songs to x's iphone"). once that was completed, i checked the music app on my iphone and everything was back to normal!
    so, i would suggest setting your music syncing settings to manual if you haven't tried that yet!
    hope this helps!

  • Just loaded the ios6 and now i can't get into itunes store with my 4s. What happened?

    Just loaded the ios6 and now I can't get into itunes store with my phone. What happened?

    Just loaded the ios6 and now I can't get into itunes store with my phone. What happened?

  • Strange behavior when getting data and storing it into a tdms file

    Hi
    I am getting data from a VISA device(10bytes every 20ms) in a string buffer and then using indexing array get each element which is 2 bytes , filtering the data in real time using a butterworth filter and then storing the data to a TDMS.
    The problem is that the data goes haywire after a brief the the different elemetns just switch. So for example x becomes resistance, GSR becomes  etc
    I have uploaded the VI and the TDMS file converted to excel format

    You really should be writing to the TDMS file while you acquire the data.  By using the Autoindexing Tunnels to build the arrays, you are causing A LOT of memory allocations, which causes things to really slow down.  I would venture to say that you are missing data, causing what looks like a shift in the data.  But you would need to be looking at the error coming out of the VISA Read to know for sure.
    So look into the Producer/Consumer.  The idea is to use a parallel loop to log the data while your current loop reads and processes the data.  The data is sent to the consumer loop via a queue.

  • Filter and sorter Problem

    Hi All
    hope someone can help me in this issue.
    if i build a list view from a table the filters and sorter are working fine, but if i build it using a recordset i get a page has this on it:
    Connection Interrupted
    The document contains no data.
    The network link was interrupted while negotiating a connection. Please try again.
    am i missing something in here ?!?!?
    here is the code for my page..
    http://twayns.150m.com/
    thnx

    -------
    but is ther any reason why the Site Root does not work?
    ADDT (and also DW´s own rudimentary PHP server behaviours) does require this setting for loading "related" files which are relative to the current document -- blame it on the "internal design" if you like, but that´s how it works ;-)
    but when try to filter using any data i got the message (underneath the menus): the table is empty or the filter is too restrictive!!!
    this means that filtering the table didn´t return any records for a reason which ADDT just doesn´t know, that´s why you´re getting this general message returned.
    If you´d like to change this message to something more meaningful like "No records found, please try with another filter setting", open the file "includes/resources/NXT.res.php" and change the line...
    'The table is empty or the filter you\'ve selected is too restrictive.' => 'The table is empty or the filter you\'ve selected is too restrictive.',
    ...to...
    'The table is empty or the filter you\'ve selected is too restrictive.' => 'No records found, please try with another filter setting.',
    Rule of thumb when editing ADDT´s "language files" which are all assembled in that "resources" folder: Only change the text string that´s displayed *after* the => sign, and always make sure not to accidently delete the surrounding ''
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Filter and Sort Transient Attribute from Query Panel

    Jdev 11.1.1.3
    Hello,
    i am not able to filter a transient attribute from the standard query panel (with result table).
    I did following things:
    -Call an Initial AppMod Service Method from my Bounded Task Flow, and fill the Transient Attribute with some values (with setter method)
    -Next, call the Page with following characteristics:
    I defined a custom View Criteria with particular Bind Variables, take as query execution mode = In Memory and activate the Auto Query Flag
    Drag and Droped this Criteria from Conroll Panel on the Page as Query Panel with Table
    In Page Data Binding Definition, i set the InitialQueryOverridden Flag to true, otherwise no data will be filled in the transient attribute
    The sort and filter works only for the Database Attributes.
    Has anyone an Idea, how to keep same behavior for the trans attr.?
    Thank You!
    (Note: When i set the Query Mode (after init Call) to vo.setQueryMode(ViewObject.QUERY_MODE_SCAN_VIEW_ROWS), then the sorting of Trans Attr is working fine.
    But the filtering is not working well: Lets say a filtering is done by the Trans Attribute and we get 3 Rows. But when all rows wanted to be retrieved again, only those 3 are available then, no chance to get all rows back)

    Hi,
    assuming that sorting and filtering are similar, have a look here
    sorting on transient attribute
    Frank

  • Lock tables when load data

    Are there any way to lock tables when i insert data with SQL*Loader? or oracle do it for me automatically??
    how can i do this?
    Thanks a lot for your help

    Are there any problem if in the middle of my load (and commits) an user update o query data ?The only problem that I see is that you may run short of undo space (rollback segment space) if your undo space is limited and the user is running a long SELECT query for example: but this problem would only trigger ORA-1555 for the SELECT query or (less likely since you have several COMMIT) ORA-16XX because load transaction would not find enough undo space.
    Data is not visible to other sessions, unless, the session which is loading data, commits it. That's the way Oracle handle the read committed isolation level for transaction.
    See http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96524/c21cnsis.htm#2689
    Or what happens if when i want to insert data someone has busy the table?You will get blocked if you try to insert data that has the same primary key as a row being inserted by a concurrent transaction.

  • Confusion in FILTER and SORT operations in the execution plan

    Hi
    I have been working on tuning of a sql query:
    SELECT SUM(DECODE(CR_FLG, 'C', NVL(TOT_AMT, 0), 0)),
           SUM(DECODE(CR_FLG, 'C', 1, 0)),
           SUM(DECODE(CR_FLG, 'R', NVL(TOT_AMT, 0), 0)),
           SUM(DECODE(CR_FLG, 'R', 1, 0)),
           SUM(DECODE(CR_FLG, 'C', NVL(TOT_AMT, 0), -1 * NVL(TOT_AMT, 0))),
           SUM(1)
         FROM TS_TEST
        WHERE SMY_DT BETWEEN TO_DATE(:1, 'DD-MM-YYYY') AND
           TO_DATE(:1, 'DD-MM-YYYY');Table TS_TEST is range partitioned on smy_dt and there is an index on smy_dt column. Explain plan of the query is:
    SQL> explain plan for  SELECT SUM(DECODE(CR_FLG, 'C', NVL(TOT_AMT, 0), 0)),
      2         SUM(DECODE(CR_FLG, 'C', 1, 0)),
      3         SUM(DECODE(CR_FLG, 'R', NVL(TOT_AMT, 0), 0)),
      4         SUM(DECODE(CR_FLG, 'R', 1, 0)),
      5         SUM(DECODE(CR_FLG, 'C', NVL(TOT_AMT, 0), -1 * NVL(TOT_AMT, 0))),
      6         SUM(1)
      7    FROM TS_TEST
      8   WHERE SMY_DT BETWEEN TO_DATE(:1, 'DD-MM-YYYY') AND
      9         TO_DATE(:1, 'DD-MM-YYYY');
    Explained.
    SQL> @E
    PLAN_TABLE_OUTPUT
    Plan hash value: 766961720
    | Id  | Operation                            | Name                | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    |   0 | SELECT STATEMENT                     |                     |     1 |    14 | 15614   (1)| 00:03:08 |       |       |
    |   1 |  SORT AGGREGATE                      |                     |     1 |    14 |            |             |       |       |
    |*  2 |   FILTER                             |                     |       |       |            |          |       |       |
    |   3 |    TABLE ACCESS BY GLOBAL INDEX ROWID| T_TEST             | 79772 |  1090K| 15614   (1)| 00:03:08 | ROWID | ROWID |
    |*  4 |     INDEX RANGE SCAN                 | I_SMY_DT         |   143K|       |   442   (1)| 00:00:06 |       |       |
    Predicate Information (identified by operation id):
       2 - filter(TO_DATE(:1,'DD-MM-YYYY')<=TO_DATE(:1,'DD-MM-YYYY'))
       4 - access("SMY_DT">=TO_DATE(:1,'DD-MM-YYYY') AND "SMY_DT"<=TO_DATE(:1,'DD-MM-YYYY'))
    17 rows selected.
    SQL>I am not able to understand the FILTER & SORT operations. As there is an index on SMY_DT column, so index range scan is fine. But why a FILTER (Step no 2) and SORT (Step no 1) operation after that ?
    Oracle version is 10.2.0.3 on AIX 5.3 64 bit.
    Any other information required please let me know.
    Regards,
    Amardeep Sidhu

    Sort aggregate tells you that there was performed an aggregate operation which returns one row, in opposite to sort order by or hash group by which indicates you have grouping, and there more than one row can be returned.
    SQL> SELECT SUM(comm) FROM emp;
    SUM(COMM)
          2200
    Plan wykonywania
    Plan hash value: 2083865914
    | Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT   |      |     1 |     2 |     3   (0)| 00:00:01 |
    |   1 |  SORT AGGREGATE    |      |     1 |     2 |            |          |
    |   2 |   TABLE ACCESS FULL| EMP  |    14 |    28 |     3   (0)| 00:00:01 |
    SQL> SELECT AVG(comm) FROM emp;
    AVG(COMM)
           550
    Plan wykonywania
    Plan hash value: 2083865914
    | Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT   |      |     1 |     2 |     3   (0)| 00:00:01 |
    |   1 |  SORT AGGREGATE    |      |     1 |     2 |            |          |
    |   2 |   TABLE ACCESS FULL| EMP  |    14 |    28 |     3   (0)| 00:00:01 |
    SQL> SELECT MIN(comm) FROM emp;
    MIN(COMM)
             0
    Plan wykonywania
    Plan hash value: 2083865914
    | Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT   |      |     1 |     2 |     3   (0)| 00:00:01 |
    |   1 |  SORT AGGREGATE    |      |     1 |     2 |            |          |
    |   2 |   TABLE ACCESS FULL| EMP  |    14 |    28 |     3   (0)| 00:00:01 |
    SQL> SELECT deptno, SUM(comm) FROM emp GROUP BY deptno;
        DEPTNO  SUM(COMM)
            30       2200
            20
            10
    Plan wykonywania
    Plan hash value: 4067220884
    | Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT   |      |     3 |    15 |     4  (25)| 00:00:01 |
    |   1 |  HASH GROUP BY     |      |     3 |    15 |     4  (25)| 00:00:01 |
    |   2 |   TABLE ACCESS FULL| EMP  |    14 |    70 |     3   (0)| 00:00:01 |
    SQL>Edited by: Łukasz Mastalerz on Jan 14, 2009 11:41 AM

  • CAPP Functionality and Custom Z table when maintaining work center standard

    Hi,
    i have to do enhancmenet to transaction CR02,
    Production planning needs to update PP routers with Standard Values that pertain to setup, machine, labor, man calculation, machine calculation.  They will use CAPP functionality to accomplish this. Work centers will be classified with characteristics identified as CAPP standard values. The actual standard values will be assigned to each work center using transaction CR02, program SAPLCRA0. The work centers will be classified and standard values assigned.Upon saving the work center entries, the system needs to update the Z table with the assigned characteristic values and store the information by plant and work center. When the CAPP program is executed, the program will go a Z table where the work center characteristics are stored.

    What if I really don't care about the old historical values??? I only want to populate this information from this point forward. Would that change your mind as to which method to choose???
    In this case, you can use the Append Structure. There would be more advantages as you don't have to keep track of data consistency, Locking / Unlocking mechanism etc.
    Please refer to the section [Further Remarks on Append Structure|http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb61446011d189700000e8322d00/frameset.htm]
    Regards,
    Naimesh Patel

Maybe you are looking for

  • I have deleted images out an email body and foxfire deleded all inages.nothing will come through with the emails. How can I get my pictures back?

    There was something in the body of my email and I right clicked on it and clicked on delete image. Foxfire opened a white bar across the top of my screen saying that "Foxfire would delete all of aol 's images and before I realized I could click the u

  • Tables InDesign CS4

    Is there a way you can create tables from scratch using InDesign? or do you have to import them? When I import them, it will never fit into the text frame. I tried using the fitting technique, but never fix the problem.

  • Elements 7.0 and 5.4 plug-in download issues

    I cannot download the 5.4 or 5.5 plug-in to use the RAW feature for my Canon G10 camera in Elements 7.0. Adobe tech support is of no assistance after numerous e-mails and four tech support discussions, one of which ended with the technician hanging u

  • Final Cut X progressively runs out of Application Memory

    I'm using Final Cut Pro 10.1.4 on 10.10.1 Yosemite, on my 2012 Macbook Pro Retina. Everything is completely up to date, but I'm experiencing a weird bug with Final Cut. When the app is started with any project open, it functions normally at first. Ho

  • Enhancement Request - Named Branches

    Hi, I'm a newb, so maybe this is something that's already covered.  One problem I've had is relating the many branches on the "Page Processing" section to the buttons they affect.  I don't see the branch number on any of the metadata defining a butto