Gridview, Sorting, Filtering

I am new to gridview and orcale sql and I need some advice how to proceed.
I have a gridview that is filled with 180,000 records. I need to know how the pros handle this when it comes to limiting the number of records, filtering and resorting answer sets.
Let say we limit the rows coming back to 500 (or we give the user the option of selecting the number of rows they wish to have returned) (but we show on the header of the gridview that there are a total of 180,000 rows) and let's say they are currently in ascending alphabetic order on LastName.
If a user wishes to resort in desending order....how then do we start from the letter 'Z' and work backward 500 records?
Same goes for paging: If we limit the number of rows to 500 and they start paging through the gridview what happens when we have reached the 500th record? How do we keep going to get the next 500?
And filtering. What if they ask for all LastNames that begin with 'S', if we are only displaying 500 rows, how do we obtain again those records with the LastName begining with 'S' and what if that goes beyond 500?
For all of these situations do we need to constantly requery the database? Or do the pros fill a dataset table of some sort and then do all of the sorting, filtering and 'select the number of rows return' options there?
If you have a good working sample, I would appreciate seeing it.
Also, currently my headings in the gridview allow the records to be resorted by clicking the heading. I got some code one time when I was using a access database. Is this a proper way to handle resorting?
thanks

I am new to gridview and orcale sql and I need some advice how to proceed.
I have a gridview that is filled with 180,000 records. I need to know how the pros handle this when it comes to limiting the number of records, filtering and resorting answer sets.
Let say we limit the rows coming back to 500 (or we give the user the option of selecting the number of rows they wish to have returned) (but we show on the header of the gridview that there are a total of 180,000 rows) and let's say they are currently in ascending alphabetic order on LastName.
If a user wishes to resort in desending order....how then do we start from the letter 'Z' and work backward 500 records?
Same goes for paging: If we limit the number of rows to 500 and they start paging through the gridview what happens when we have reached the 500th record? How do we keep going to get the next 500?
And filtering. What if they ask for all LastNames that begin with 'S', if we are only displaying 500 rows, how do we obtain again those records with the LastName begining with 'S' and what if that goes beyond 500?
For all of these situations do we need to constantly requery the database? Or do the pros fill a dataset table of some sort and then do all of the sorting, filtering and 'select the number of rows return' options there?
If you have a good working sample, I would appreciate seeing it.
Also, currently my headings in the gridview allow the records to be resorted by clicking the heading. I got some code one time when I was using a access database. Is this a proper way to handle resorting?
thanks

Similar Messages

  • How to do sorting/filtering on custom java data source implementation

    Hi,
    I have an entity driven view object whose data should be retrieved and populated using custom java data source implementation. I've done the same as said in document. I understand that Query mode should be the default one (i.e. database tables) and createRowFromResultSet will be called as many times as it needs based on the no. of data retrieved from service, provided we should write the logic for hasNextForCollection(). Implementation sample code is given below.
    protected void executeQueryForCollection(Object qc, Object[] params, int noUserParams) {      
    Iterator datumItr = retrieveDataFromService(qc, params);
    setUserDataForCollection(qc, datumItr);
    hasNextForCollection(qc);
    super.executeQueryForCollection(qc, params, noUserParams);
    protected boolean hasNextForCollection(Object qc) {
    Iterator datumItr = (Iterator) getUserDataForCollection(qc);
    if (datumItr != null && datumItr.hasNext()){
    return true;
    setCallService(false);
    setFetchCompleteForCollection(qc, true);
    return false;
    protected ViewRowImpl createRowFromResultSet(Object qc, ResultSet resultSet) {
    Iterator datumItr = (Iterator) getUserDataForCollection(qc);
    Object datumObj = datumItr.next();
    ViewRowImpl r = createNewRowForCollection(qc);
    return r;
    Everything is working fine include table sorting/filtering. Then i noticed that everytime when user perform sorting/filtering, executeQueryForCollection is called, which in turn calls my service. It is a performance issue. I want to avoid. So i did some modification in the implementation in such a way that, service call will happen only if the callService flag is set to true, followed by executeQuery(). Code is given below.
    private boolean callService = false;
    public void setCallService(boolean callService){
    this.callService = callService;
    public boolean isCallService(){
    return callService;
    protected void executeQueryForCollection(Object qc, Object[] params, int noUserParams){
    if (callService)
    Iterator datumItr = retrieveDataFromService(qc, params);
    setUserDataForCollection(qc, datumItr);
    hasNextForCollection(qc);
    super.executeQueryForCollection(qc, params, noUserParams);
    Issue i have:
    When user attempts to use table sort/filter, since i skipped the service call and set null as userDataCollection, createRowFromResultSet is not called and data which i retrieved and populated to view object is totally got vanished!!. I've already retrived data and created row from result set. Why it should get vanished? Don't know why.
    Tried solution:
    I came to know that query mode should be set to Scan_Entity_Cache for filtering and Scan_View_Rows for sorting. I din't disturb the implementation (i.e. skipping service call) but overrided the executeQuery and did like the following code.
    @Override
    public void executeQuery(){
    setQueryMode(callService ? ViewObject.QUERY_MODE_SCAN_DATABASE_TABLES : ViewObject.QUERY_MODE_SCAN_ENTITY_ROWS);
    super.executeQuery();
    By doing this, i could able to do table filtering but when i try to use table sorting or programmatic sorting, sorting is not at all applied.
    I changed the code like beolw*
    @Override
    public void executeQuery(){
    setQueryMode(callService ? ViewObject.QUERY_MODE_SCAN_DATABASE_TABLES : ViewObject.QUERY_MODE_SCAN_VIEW_ROWS);
    super.executeQuery();
    Now sorting is working fine but filtering is not working in an expected way because Scan_View_rows will do further filtering of view rows.
    Question:
    I don't know how to achieve both filtering and sorting as well as skipping of service call too.
    Can anyone help on this?? Thanks in advance.
    Raguraman

    Hi,
    I have an entity driven view object whose data should be retrieved and populated using custom java data source implementation. I've done the same as said in document. I understand that Query mode should be the default one (i.e. database tables) and createRowFromResultSet will be called as many times as it needs based on the no. of data retrieved from service, provided we should write the logic for hasNextForCollection(). Implementation sample code is given below.
    protected void executeQueryForCollection(Object qc, Object[] params, int noUserParams) {
      Iterator datumItr = retrieveDataFromService(qc, params);
      setUserDataForCollection(qc, datumItr);
      hasNextForCollection(qc);
      super.executeQueryForCollection(qc, params, noUserParams);
    protected boolean hasNextForCollection(Object qc) {
      Iterator datumItr = (Iterator) getUserDataForCollection(qc);
      if (datumItr != null && datumItr.hasNext()){
        return true;
      setFetchCompleteForCollection(qc, true);
      return false;
    protected ViewRowImpl createRowFromResultSet(Object qc, ResultSet resultSet) {
      Iterator datumItr = (Iterator) getUserDataForCollection(qc);
      Object datumObj = datumItr.next();
      ViewRowImpl r = createNewRowForCollection(qc);
      return r;
    }Everything is working fine include table sorting/filtering. Then i noticed that everytime when user perform sorting/filtering, executeQueryForCollection is called, which in turn calls my service. It is a performance issue. I want to avoid. So i did some modification in the implementation in such a way that, service call will happen only if the callService flag is set to true, followed by executeQuery(). Code is given below.
    private boolean callService = false;
    public void setCallService(boolean callService){
      this.callService = callService;
    public boolean isCallService(){
      return callService;
    protected void executeQueryForCollection(Object qc, Object[] params, int noUserParams){
      if (callService) {
        Iterator datumItr = retrieveDataFromService(qc, params);
        setUserDataForCollection(qc, datumItr);
      hasNextForCollection(qc);
      super.executeQueryForCollection(qc, params, noUserParams);
    }Issue i have:
    When user attempts to use table sort/filter, since i skipped the service call and storing of userDataCollection, createRowFromResultSet is not called and data which i retrieved and populated to view object is totally got vanished!!. I've already retrived data and created row from result set. Why it should get vanished? Don't know why.
    Tried solution:
    I came to know that query mode should be set to Scan_Entity_Cache for filtering and Scan_View_Rows for sorting. I din't disturb the implementation (i.e. skipping service call) but overrided the executeQuery and did like the following code.
    @Override
    public void executeQuery(){
      setQueryMode(callService ? ViewObject.QUERY_MODE_SCAN_DATABASE_TABLES : ViewObject.QUERY_MODE_SCAN_ENTITY_ROWS);
      super.executeQuery();
    }By doing this, i could able to do table filtering but when i try to use table sorting or programmatic sorting, sorting is not at all getting applied.
    I changed the code like below one (i.e. changed to ViewObject.QUERY_MODE_SCAN_VIEW_ROWS instead of ViewObject.QUERY_MODE_SCAN_ENTITY_ROWS)
    @Override
    public void executeQuery(){
      setQueryMode(callService ? ViewObject.QUERY_MODE_SCAN_DATABASE_TABLES : ViewObject.QUERY_MODE_SCAN_VIEW_ROWS);
      super.executeQuery();
    }Now sorting is working fine but filtering is not working in an expected way because Scan_View_rows will do further filtering of view rows.
    If i OR'ed the Query Mode as given below, i am getting duplicate rows. (vewObject.QUERY_MODE_SCAN_ENTITY_ROWS | ViewObject.QUERY_MODE_SCAN_VIEW_ROWS) Question:
    I don't know how to achieve both filtering and sorting as well as skipping of service call too.
    Can anyone help on this?? Thanks in advance.
    Raguraman
    Edited by: Raguraman on Apr 12, 2011 6:53 AM

  • Providing sorting filters for a table in webdynpro java application

    ho to provide sorting  , filters , for a table in webdynpro java application .

    Hi Pradeep,
    Please go through the following article on implementation of filtering and sorting:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f024364b-3086-2b10-b2be-c0ed7d33fe65
    The article contains a link to a sample application using the TableSorter and TableFilter Class.
    The same classes can be used by any other web dynpro application. Download the sample application and copy the classes. In case of a specific requirement, modify the TableSorter and TableFilter classes.
    Regards,
    Kartikaye

  • Sorting & Filtering in the same table

    Hello,
    i had table with 5 entries in it.
    First Column  -     a, ba, ab, aa, bb
    Second Column - 4, 2, 1, 3, 5
    I had sucessfully implemented Sorting & Filtering functionality to that table.
    single Action:
    1) when I sort 'First' column, as expected it is sorting that column - display 5 rows
    2) when I filter 'First' column with value 'a', as expected it is filtering that column - display 4 rows (as 'a' is in 4 entries)
    Double Action:
    1) when I Filter 'First' column with value 'a', result displayed is 4 rows, then on that 4 entries when sorted the second column -- reuslt is good 4 entries (ie the sorting is done on the filtered entries)
    2)Vice vesa, when i sort 'Second' column & Filtered the first column - the displayed result is not correct
    First Option: (2 actions one after another) when sort second colum and then filtered the First column - result should be the sorted & filtered values of second column ignoring the first.(ie result should be -- a, aa, ab, ba, but filtering result is not sorted). How can i achive this?
    if first option is not possible then second option
    Second option: when i sort the second column & filter the first column,  then the result should be -- Filted the first column & sort the second column and then the result should display (it should be like sorting is done on the filtered values).
    Conclusion: If I filter a column, then filtered entries displayed should be in a sorting order (may be ascending).
    Thanks
    Maha
    Edited by: Maha Hussain on Aug 6, 2009 12:02 PM
    Edited by: Maha Hussain on Aug 6, 2009 12:18 PM
    Edited by: Maha Hussain on Aug 6, 2009 12:25 PM
    Edited by: Maha Hussain on Aug 6, 2009 12:56 PM

    Hi Maha,
    Please go through this pdf you will get the solution definitely,
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f024364b-3086-2b10-b2be-c0ed7d33fe65
    thanks,
    viswa

  • Does the iPod follow the iTunes "sort filters" in Cover Flow?

    Two quick questions:
    1) Is it now generally agreed upon how Cover Flow is sorted on the iPod? (i.e. Is it by +album title+, by artist, or by +album artist+?) Can you change how it's sorted?
    2) If you have used the "sorting" tab feature in iTunes when editing song info, (for example, I have "album artist=Foo Fighters" in song info, but I also have album artist Foo Fighters sorting as "A1 Foo Fighters" for various listing reasons to keep it ahead of other album artists), will the iPod know to follow these sorting decisions?
    The main reason I ask, is that I am digitizing my collection of 400+ cds, 100 of which are classical, 100 are musicals, 100 are rock, and 100 are other genres. I've had a lot of fun in iTunes with the Sorting tab in the song info box, which has allowed me to really sort my albums the way I want. For a classical album, like Bach's St. Matthew Passion, I leave the actual album title "as is," but then I have the Sorting album box sort this as "Classical, Bach's St. Matthew Passion," so that when I sort by album, all my classical cds show up together, in alphabetical order by album title, then my rock cds, etc. I do the same thing for album artist...I'll insert my own prefix, like "A1" or "Classical" or "Musicals" before the album artist name to make sure the genres stay together, even when I sort by album artist.
    I'd like to use the iPod's Cover Flow, so I NEED to know the way the iPod Cover Flow will sort...If it sorts by Album Artist, I'll be much more careful with how I apply Album Artist "sorting" filters to my song info in iTunes. And I need to make REALLY sure that the iPod will actually abide by the iTunes Sorting tab, because otherwise all this tagging work I'm doing is for nothing.

    As far as I can tall the tracks are initially sorted by the *Sort Artist* field. If this field doesn't exist it takes the value of the Artist field, with the provio that a leading "The " is ignored. Once grouped by artist the albums are sorted by the *Sort Album* field. Again, if this field doesn't exist it takes the value of the Album field with a leading "The " ignored. In iTunes artist names begining with numerals are listed first but on the iPod they are listed after those starting with A-Z and before the compilations.
    When displaying the covers the iPod displays a new cover every time the album name and/or album artist changes. If you have one album by a given artist it should show once, even if there are guest artists listed in the artist field. If you have two albums however you may end up with four covers shown. This can be fixed by setting the *Sort Artist* to the main artist for each track with guests.
    When the album is selected every track with the same album name is listed, most obvious if you flip over *Greatest Hits* and find 100+ tracks listed. To fix this you need to give every album a unique name. e.g. append ", Artist" to affected album titles. You can do this invisibly by making this change to the *Sort Album* field but it's worth noting this bug exists in iTunes too and it's probably better done visibly when using other views. The *Sort Album* field comes into it's own however when you want a group of albums displayed in a specific, non-alphabetical order. I have the Hitchhikers Guide radio series which I have reoganised to appear as single albums and set the fields as *Hitchhikers Guide 1*, *Hitchikers Guide 2* etc. to list them in the right order while still displaying the full album title.
    Lastly the albums are displayed with the Artist field of the first track rather than the album artist. Looks odd on compilations and where the first track has a guest artist. No fix or workaround that I know of...
    It took a while, but every one of my albums is listed in Cover Flow exactly once.
    tt2

  • GridView Sorting with multiple word in header

    Dear All
    we have dynamic GridView. we want to sort the gridview. we have multiple words in the header column like (Chicken Burger, Small Pizza , Chicken Roll etc). i m using below code but its giving me error on clicking header (Chicken Burger) like
    Cannot find column Chicken Inserts.
     protected void gv_SearchResults_Sorting(object sender, GridViewSortEventArgs e)
                 string Search= "SearchAllFOs";
            DataTable dtbl = ShowAllItemsData(SearchAllFOs);
            gv_SearchResults.DataSource = dtbl;
            gv_SearchResults.DataBind();
            if (ViewState["Sort Order"] == null)
                dtbl.DefaultView.Sort = e.SortExpression + " DESC";
                gv_SearchResults.DataSource = dtbl;
                gv_SearchResults.DataBind();
                ViewState["Sort Order"] = "DESC";
            else
                dtbl.DefaultView.Sort = e.SortExpression + "" + " ASC";
                gv_SearchResults.DataSource = dtbl;
                gv_SearchResults.DataBind();
                ViewState["Sort Order"] = null;
    Thanks and Best Regards Umair

    Hello Muhammad Umair 2756,
    Since we saw this GridViewSortEventArgs  https://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridviewsorteventargs(v=vs.110).aspx
    Your project is actually a web project and please follow CoolDadTx's suggestion to post on ASP.NET forum.
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Group Sort Filtering

    Hi
    I have a report which has a group sort on number of days sickness leave for employees over a period of a year .
    Is there a way of setting a condition on the group (sub) total to exclude total sickness less than 8 days and the individual lines that make up the sub total?
    Or could you advise of an alternate way to do this.
    So to recap I need to exclude employees whose sickness total for a year is less than 8 days.And the report lists individual entries of sickness for a year by employee.
    I am using Discoverer Desktop version 4.
    Thanks
    Edited by: user650649 on 23-Jul-2010 02:28

    Hi,
    In general, you can do this by using an analytic sum function in a calculation. So you would calculate the total number of days sickness partitioned by the employee and the year. You can then include this calculation in a condition to exclude all the records where this total is less than a given value.
    Regards,
    Rod

  • Row selection messed up after sorting

    JDev version: 11.1.1.4 (but also reproducable in 11.1.2.1)
    See http://kpdwiki.be/Bart_L/tableIteratorSortSync.zip (open BO726.jws and run runThis.jspx)
    Situation:
    - iterator 'EmployeesIterator' which points to a view with Employees -> ChangeEventPolicy='none'
    - Bindings which all point to this iterator:
    - Tree binding 'Employees' used for an af:table with employees (firstname, lastname)
    - Attribute bindings 'FirstName' and 'LastName' which is used in a formLayout to show the currently selected employee
    - Operation Bindings to iterate through the employees (First, Previous, Next, Last)
    - runThis.jspx
    - formlayout with FirstName and LastName
    -> partialtriggers: Next-button and table (for the rest, no partialtriggers)
    - Next-button
    - table with employees
    Problem:
    1) if you select one of the employees in the table, and sort one of the columns, the first row will be selected. This is normal behaviour
    2)
    a) select the first row
    b) press the 'Next' button a few times. Now the selected employee in the iterator is 'X'
    c) in the table, select employee 'X' by clicking on its row
    d) sort one of the columns.
    Result: In the iterator, the first row of the table is selected, while the table selection shows something different!
    --> this is different behavior than the situation described in 1)
    --> after doing something with the table (sorting, filtering, selecting rows, ...), I would expect that the selected row in the table is always the same as the selected row in the iterator.
    Questions:
    1) Is this a bug?
    2) If yes, is this a known bug?
    3) If no: am I doing something which is not allowed? Or should I do something different here?

    I can reproduce the problem in 11.1.1.4.
    First employee is Steven King, which is selected. I then press next a few times till the output text reads Bruce Ernst (the table selection is still on Steven King, while the iterator points to Bruce Ernst). I then click on Bruce Ernst in the table, so it is selected (iterator stays on the same record). If I then sort the table, the table selection stays on Bruce Ernst, while the output text shows the first record in the table after the sort.
    We have the same issue using a non-modal popup to edit table rows (non-isolated task flow, sharing data controls & transaction). Our edit popup has navigation controls. When we scroll through records in the popup, the table selection doesnt refresh (changeEventPolicy = none). If we then select the record in the table that we scrolled to in the popup , without closing the popup, and then sort the table (with the popup still open), the selection stays on the previously selected record, whille the popup shows the first record in the table after the sort.

  • Using InfoPath to make a form that filters multiple rows alphabetically into their according SharePoint Lists.

    Hello,
    I would like to create a form in InfoPath that looks similar to something you would see in excel, by that mean that I am able to enter multiple lines of data. After I submit the form, the data will be sorted/filtered by the first letter of the brand name
    into their appropriate list in SharePoint.
    JBL (InfoPath Form) -> (Sharepoint List) "J"
    Bose (InfoPath Form) -> (SharePoint List) "B"
    Lexicon (InfoPath Form) -> (SharePoint List) "L"
    Etc...
    I was wondering how I would achieve this? Workflow?
    Thanks in advance,
    Luke

    1. kudos on having JBL be both the first record of sample data, and also the initials of all three records :)
    2. within SP, you can create a calculated column for the first character in the string (LEFT(col,1))... you may need to promote the field from IP into the list.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • How to sort documents on a single page?

    I'm trying to create a page within my website that has documents that can be sorted/filtered so tht only certain documents display according to the sort term.  Honestly, I feel I must be missing something obvious but I can't seem to find anything via Google or in Adobe Help that is directly related to what I want to do.  Here is an example from another church's website that basically has the same format for the documents that I'd like to mimic.
    http://www.gracechurch.org/about/resources
    It's seems to me like it should be fairly straightforward and that Dreamweaver (I'm using CS5.5) must have some automated way to start this.  If somebody could just point me in the right direction, I'd be most appreciative.
    Aaron

    The website is hosted by network solutions which claims to have support for most of the programming languages.  Database support is Access and SQL.
    I know that network solutions has it's own web based design app that has support for this type of programming.  It's a simple drag and drop design.
    http://www.networksolutions.com/support/content-inserting-document-libraries/
    But I didn't want to use the web based app just for that, I wanted to learn the coding to do it myself since I'm using Dreamweaver.

  • Filter/sort approach

    we develop intranet application, and on the server side we decided to use CMP entity beans as persistence layer. but we have now some problems how to impement sorting/filtering at client side. for expample you can see a list of cars on page in table with some columns user should have possibility to filter data by one ore more columns filter and also order data by one or more columns. and now i have doubt how to provide this functionality in CMP bean i can't write ejbFind method fort all combinations of criteria and ordering user requested how can this problem be solved reasonably?
    to perform filterting and sorting on application level?
    to use some proprietary solution? (jboss we use provides dynamic
    queries)
    or is there any other possibilities???
    thanx for any help??
    PXP Slovakia s.r.o.
    Boris Brinza
    IT Developer
    Kukuricna 1, 831 03 Bratislava, Slovakia

    Hi,
    You can avoid multiple database calls by storing the results in a Collection and then use Collections.sort everytime the user wants to reorder the data.
    As to where you would keep the collection, it would depend on your architecture. If you had a stateful session bean that was handling the user's requests, that would be a good place. Or you could keep it in the servlet session context (not a good idea if you have a huge collection).
    Ta ta,
    Jagan.

  • Complete Sorting Criteria Hierarchy for songs/episodes/groups with Classic

    Ok, I have an idea that I think would help a lot of people. Let us begin a thread that tries to explain, in detail, the sorting filters, in order of priority, that the iPod Classic uses to sort its lists of albums, songs, tv episodes, etc., once you have a list in front of you on the screen. This goes for Cover Flow mode, regular listing, etc.
    Here is what I propose. For example, let's start with songs. In iTunes, when you choose to edit the info on a particular song, you can choose which fields to populate. You may or may not enter the year, the track number, the composer, etc. On your iPod, then, if you click on an Album, the songs you see within that album will be listed by +track number, as they were assigned in iTunes+. Track number takes highest precedence in the hierarchy when it comes to sorting songs within an album.
    - But, if you go Main Menu->Music->Albums, how are all the albums sorted? Alphabetically by album title? Alphabetically by artist? Is there a way to sort them by year? Would you like the freedom to choose, if Apple provided it?
    - How are the compilations sorted into the mix?
    - How does applying an "album artist" affect the sorting, as opposed to just applying an "artist?"
    - How do songs that are "grouped" together with the same "Grouping" field affect sort lists on the iPod?
    - In Cover Flow mode, now with firmware upgrade 1.0.2, what is the sort criteria for albums in Cover Flow? Alphabetically by album title? Alphabetically by artist of the first track on the compilation? Alphabetically by "album artist?" What if no "album artist" has been attributed to a "compilation?"
    - What about TV Episodes? Within a particular season, what is the primary determining factor for sorting episodes? Is it alphabetically by title? By release date? Or by episode #? Or by something else?
    To some, this may seem tedious or trivial. But there seem to be so many issues flying around right now, and many of them center squarely upon the inability to sync and sort properly. Many people are digitizing a cd library for the first time with the release of the 160 GB iPod Classic, and when you're trying to organize HUNDREDS of songs, albums, compilations, and tv episodes, understanding exactly how the iPod sorts all your precious data is crucial. Knowledge is power, and we want to know.
    ANY help you can contribute to any aspect of iPod sorting, no matter how obvious or how technical, would be appreciated by all.

    Ok, I have an idea that I think would help a lot of people. Let us begin a thread that tries to explain, in detail, the sorting filters, in order of priority, that the iPod Classic uses to sort its lists of albums, songs, tv episodes, etc., once you have a list in front of you on the screen. This goes for Cover Flow mode, regular listing, etc.
    Here is what I propose. For example, let's start with songs. In iTunes, when you choose to edit the info on a particular song, you can choose which fields to populate. You may or may not enter the year, the track number, the composer, etc. On your iPod, then, if you click on an Album, the songs you see within that album will be listed by +track number, as they were assigned in iTunes+. Track number takes highest precedence in the hierarchy when it comes to sorting songs within an album.
    - But, if you go Main Menu->Music->Albums, how are all the albums sorted? Alphabetically by album title? Alphabetically by artist? Is there a way to sort them by year? Would you like the freedom to choose, if Apple provided it?
    - How are the compilations sorted into the mix?
    - How does applying an "album artist" affect the sorting, as opposed to just applying an "artist?"
    - How do songs that are "grouped" together with the same "Grouping" field affect sort lists on the iPod?
    - In Cover Flow mode, now with firmware upgrade 1.0.2, what is the sort criteria for albums in Cover Flow? Alphabetically by album title? Alphabetically by artist of the first track on the compilation? Alphabetically by "album artist?" What if no "album artist" has been attributed to a "compilation?"
    - What about TV Episodes? Within a particular season, what is the primary determining factor for sorting episodes? Is it alphabetically by title? By release date? Or by episode #? Or by something else?
    To some, this may seem tedious or trivial. But there seem to be so many issues flying around right now, and many of them center squarely upon the inability to sync and sort properly. Many people are digitizing a cd library for the first time with the release of the 160 GB iPod Classic, and when you're trying to organize HUNDREDS of songs, albums, compilations, and tv episodes, understanding exactly how the iPod sorts all your precious data is crucial. Knowledge is power, and we want to know.
    ANY help you can contribute to any aspect of iPod sorting, no matter how obvious or how technical, would be appreciated by all.

  • Bug or feature: TableView sorts the underlying list?

    that's at least highly unexpected - all variants of table sorting I know, support some kind of sortedView on top of the user model (either by a framework outside of the table, as GlazedList, or internal as core swing).
    Is it a not-yet-done feature or yet another variant of leaving the hard stuff to the user dev?
    CU
    Jeanette

    JonathanGiles wrote:
    This is by-design. We consider the items list in the TableView to be the view model - clicking on a column results in the view model being sorted.
    There are ways around this. If you provide a TransformationList (e.g. SortedList) wrapped around an ObservableList, the TableView will sort the SortedList, leaving the underlying ObservableList unsorted and still available via SortedList.getDirectSource() or getBottomMostSource() (depending on how many layers of wrapping you have).that's exactly what I keep complaining about:
    - framework handles the trivial stuff: it simply pushes a comparator into a sortable list is or lets collections.sort do the work
    - developers are left with the harder parts like index mapping
    Actually, the framework is hit by those missing harder parts as well:
    - SortedList freaks out on mutable elements, basically because the internal index mapping is not optimal (http://javafx-jira.kenai.com/browse/RT-14965)
    - Selection synch is broken when sorting/filtering (and TableView taking the extreme easy way out in clearing ... tseee), don't have a report handy, but know that you are aware of the issue : - )
    - no way to "unsort" a TableColumn (http://javafx-jira.kenai.com/browse/RT-15166) in the general case. Even for a SortedList, that would involve to restore the original comparator (instead of leaving the TableColumnComparator in place)
    Cheers
    Jeanette

  • Table.Sort only sorting records in preview pane

    I have the following M query:
    let
        OrgIdParameter = Excel.CurrentWorkbook(){[Name="ClientFilter"]}[Content],
        OrgIdValue = OrgIdParameter{0}[Column2],
        Source = Sql.Database("JOHNSQLD53", "EnterpriseAnalytics"),
        dbo_vFactEngrgServiceLocMonthlyAsOfSnapshot = Source{[Schema="dbo",Item="vFactEngrgServiceLocMonthlyAsOfSnapshot"]}[Data],
        #"Filtered Rows" = Table.SelectRows(dbo_vFactEngrgServiceLocMonthlyAsOfSnapshot, each [BeProspectClientOrgId] = OrgIdValue),
        #"Sorted Rows" = Table.Sort(#"Filtered Rows",{{"SnapshotYear", Order.Ascending}})
    in
        #"Sorted Rows"
    however, the sort is working on the records that show in the preview pane (about 36 records), then the data goes back to being unsorted in the rest of the table when loaded in power pivot (224 rows).
    any idea why?

    I believe that Power Pivot does not reliably preserve the input sort of the data; this is a feature of the data model, not of Power Query.

  • Filtering a Report on the active record of another Report on the same page

    Hello,
    I have a Form and Report on the same page in an APEX app. The interactive report is used for sorting/filtering etc. and the Form is used to present the data for one record at a time, as well as allow updates in selected fields. This was done using the wizards, the little 'edit' button is clicked to change the form to the selected record.
    I also have (or want to have) a second non-interactive report on the page, which displays some records based on the record of the main report that is currently selected and appearing in the form.
    I tried doing a simple 'SELECT fields WHERE link field is equal to main report', but it always says no data found.
    Basically, I need to be able to have a query for the second report that says 'SELECT these fields WHERE the site is equal to the site currently being displayed in the form'.
    When the little pencil/paper 'edit' button is clicked on a report, does this set some ActiveRow or something like this that I can use to filter the second report?
    As you can tell from this post, I am in my database skill infancy, and any literature/pointers on how to achieve this (outside of MS ACCESS...) would be appreciated.

    Okay, I have somewhat got my head around Column Links, and have put the key link field into the URL:
    The value is P4_MDF, and in this URL example it has taken the value of 'WLAH01'
    f?p=880:4:3924084145794812::NO::P4_MDF,P4_ESA_CODE,P4_SITE_NAME:WLAH01%2CWLAH%2CWYRALLAH
    Now I just need to work out how to use this value in the URL to filter the classic report.
    I have used this query:
    SELECT *
    FROM
    "MACHINE_INFO"
    WHERE CCP = :P4_MDF
    As CCP in the report im trying to filter is the same as MDF in the IR that I am clicking the Column Link
    This is the Debug for the 2nd 'filtered' report (which filters everything)
    0.09: show report
    0.09: determine column headings
    0.09: parse query as: EXPAT
    0.09: binding: ":P4_MDF"="P4_MDF" value="WLAH01"
    0.09: print column headings
    0.09: rows loop: 15 row(s)
    I'm slowly getting the hang of this, any assistance would be great!

Maybe you are looking for

  • How do I install Tiger without DVD drive?

    How do I install Tiger without DVD drive on a Powerbook? My Powerbook had some problems recently, the HDD and the Superdrive where gone. I replaced the HD but can not get Tiger installed here because the DVD drive isn't working. I boot right now from

  • When I click on a link, a new window opens but is blank and says "stopped" at the bottom

    Happens on any website.eg-if I am looking for a quote on moneysupermarket.com and I lick on the required link, a new window will open but it will be blank and in the bottom left hand corner the word stopped appears

  • "iPod Service Failed to Start" message when upgrading iTunes

    When upgrading iTunes from Version 7 to the newest version, I got an error message stating "Service, 'iPod Service' failed to start. Verify that you have sufficient priviledges to start system services." So I canceled the download and rolled back to

  • Change E-mail Notification Level

    How do you change the header for a notification e-mail sent by the Workflow system? I would like to have notification e-mails show up in inboxes as "high priority" (in Microsoft Outlook this is signified by a bold, red exclamation point).

  • Can a cancelled CC sub interfere with a fresh new one?

    I cancelled a CC sub at the 11 month period to sign up for another year. Adobe said the old sub would cause no problems. But CC frequently reports a problem with my account. My apps work, but I don't think they will update. The Creative Cloud wants t