How to restore default sort order on a table?

Have an ADF table with some sortable columns, populated by an SQL view (having its own Order By).
Looking for a way to let user revert to default sort order after sorting columns.
Currently, I have a button linked to:
public String cmdRefreshOrders() {
this.getTblOrders().setSortCriteria(null);
DCIteratorBinding iter = ADFUtils.findIterator("iterUnderlyingTable");
iter.executeQuery();
return null;
This doesn't work
Any ideas?

Tried. Doesn't work.
Iterator doesn't have a setOrderByClause() -- closest I see is applySortCriteria(), which takes an array of SortCriterias, not a String. Might be able to parse Order By string to create array of SortCriterias, but this smells wrong. Probably wouldn't work anyway because ...
Tried doing iter.applySortCriteria(null) before executeQuery. This accomplished nothing -- the sort created from clicking the column header persisted.
Looks to me like the sort is persisting as some property in the table or in the display column.
Any more ideas?
Thanks
Ed

Similar Messages

  • How to set default sorting order in ADF Table

    Hi,
    I want to set the default sorting order as ascending in adf table. Please help me regarding how can we do it.
    Using JDev 11.1.1.5.0

    Hi Frank,
    Thanks for the quick reply.
    I have done binding of table with list of pojos.
    The Class for which Data control is created is as:-
    public class DemoDC {
        private List<TableEntity> tableList =
            new ArrayList<TableEntity>();
        public List<TableEntity> getTableList() {
            return tableList;
        public void setTableList(List<TableEntity> tableList) {
            this.tableList = tableList;
    where TableEntity is a pojo which has all the columns as its attributes.
    Now when i do the above steps , after clicking on pencil icon and seecting the iterator name in the iterator tab (DemoDC-> tableList) , and selcting the 'sort criteria' tab when i select a column and try to set the sort order  I get error as ' Iterator can not be created for the selected node ' .

  • How to set default sort order for all folders/albums/etc

    This is driving me nuts, having to change the sort order from manual to file name every time I change projects or folders (and I have a lot of both). Is there a way to set the default to just sort by file name ascending? Or sort by timestamp (that's date + time, not just date)?

    Chuckcars wrote:
    I am in process of doing some rearrangement to make Projects as the main box (the file drawer) with headings like: iPhone, Assignments, Events, Landscape, People, Travel. Then, a specific folder under the project. Then, an Album under the Folder.
    This should be started as a new thread -- do so if you have any questions.
    Strongly recommend using Projects as intended (see comments by Frank and DLSCreative in current thread ^1^ and long comment by me in another thread ^2^ ). In your case that would mean Folders with the headings you've selected, the (most likely) Projects, then Albums (and perhaps more Folders).
    ^1^ http://discussions.apple.com/thread.jspa?threadID=2716711&tstart=0
    ^2^ http://discussions.apple.com/thread.jspa?threadID=2654297&tstart=0

  • How to change the sort order of complex table in drop down

    Hi Team,
    I have a complex table which is working but the sort order i want in a different way. How can i change?
    Regards,
    Gupta

    Gupta,
    My screen field definitions are as follows:
    1. Location
    2. Partner
    --In my previous reply, the first screen shot is without any parent index. So it is giving all values in alphabetical order only.
    --After that I created parent index for partner with location, So the partner values are depend on location chosen.
    In my TEST1:
    --I just selected "Andhra pradesh" as location, In partner field drop down it is showing "Ragava" "Suman" "Sunitha" only.
    --Because these are only the values belong to "andhra pradesh" location and these are coming in alphabetical order only.
    TEST2:
    --Here I selected "Gujrat" as location, In partner field drop down it is showing "Avinash" "Mohan" "Suman" which are belong to "Gujrat" location, These are also in alphabetical order only.
    Hope this clears now. Still any query please post.
    Thanks,
    Swaroopa.

  • Default column sort order for 11g table

    Could anyone give me some indication on how I would go about setting the default sort order for a table?
    I have a table with a few columns, and dataset returns in a particular order, but my table decides to sort if in any given order until I manually click on the column header and sort it.
    I would like to have it done by default on a particular field.
    Any info is appreciated.
    Thanks
    Jonny

    As Chris says, the easiest way and best re-use way is to use the order-by clause in your underlying model layer SQL query. For instance in ADF BC this would be in a View Object's query.
    However as you haven't dictated your model layer technology, there is another way in JDev 11g. In your web page that contains the ADF Faces RC table, select the binding tab at the bottom of the page, then double click on the iterator in the binding page, and in the Edit Iterator Binding dialog, select the Sort Criteria tab. This allows you to override the sort order on the iterator's columns.
    CM.

  • Default Sort Order for Library View

    It would be fantastic if there were a user defined preference for a default sort order in Library view. For example, some users may prefer to always view the images by File Name, or Rating, etc, without having to change the sort order for each individual folder they view via Lightroom.
    Thanks!

    Thanks for your suggestion Allan, but it doesn't work.
    I'm specifically referring to the defaults that Aperture 3 adopts when you use the "File, Import, Folders as Projects with the projects and albums setting.
    What I'm finding is regardless of the setting in the Library preferences, the default sort order for the project is Date and Manual for the album.
    Yet if I create a project manually the default sort order is as per the Library prefs. Strange.

  • HT2470 Why does this not explain how to change the sort order?

    Why does this (i.e. support at Apple.com) not explain how to change the sort order? I can "arrange" by Date Modified for example but it won't let me switch to use most recent dates first. Also, what is Apple-speak for arrange versus sort anyway? It seems I used to be able to click on a column heading in finder and get a drop down arrow allowing me to change the sort sequence.

    Arrange roughly translates to "group the items in the folder." Sort is how each group is ordered. If you have arrange set to none, you can sort by anything. However, there is no way in the Arrange/Sort menu to choose the direction. The only way to do that is in the List View, and you must have Arrangement set to None.
    I've submitted an Enhancement Request to allow choosing sort direction from the Arrange/Sort menu, but I haven't ever gotten a response, which is good and bad. Good because they will often respond that they have considered it and don't plan on implementing. Bad in that they've haven't implemented it.

  • Want to change the default sort order of a Advanced table

    Hi all ,
    Hope all of you doing good.
    I am trying to change the deafult sort order of a " View Applicants" advanced table on Irecruitment selfservice page , using personalization feature but its not sorting as expected.
    The default sort order is asc by the name of the applicants. I wanted to override it by " Date Applied " desc using personalizing the advanced table.
    But its not sorting by Date applied and still shows the sort by applicant name.
    Any inputs will be greatly helpful
    I am using the Oracle Apps 11.5.10 version.

    Hey guys m I got the answer for the below question.
    Oracle have few Restriction and limitation on such Advanced table in sorting the data,
    Few of them are as mentioned below ...
    1. Sorting is not allowed for tables that allow inserts.
    2. Sorting is not supported for tables containing updateable columns
    3. Sorting is disabled when the Select column is checked for a row in a table or when Hide/Show is present in a table.
    Because of the above limitations , we cannot sort or override the existing alphabetical name sort order to Date applied sort order on the View Applicant advanced table.
    You can observe that , View Applicant page is having an option called "Update Status" which allow us to update applicant’s status or rating in the Advanced table.
    On such updatable advanced tables, oracle does not allow us to override the sort order on any of the table columns.
    Keeping it in a nutshell , I can say it's does not allow us to change the sort order of the view applicant advanced table ( which is having updateable columns ) to sort them in Date applied instead of Name( which is default ).

  • Default sorting order used by oracle

    Can anyone please let me know whether oracle uses any default sort order or not when executing an sql which does not have any sort order/ order by clause?
    I have a sql query where no sort order is specified.
    Now if I add some more columns in the select clause and execute the same query, the number of records returned are same and also the records are same.
    But the order in which they are displayed is different from the previous query.
    Could anyone please let me know whether oracle uses any default sort order or not when executing an sql which does not have any sort order/ order by clause
    or does it depend on the columns of the table?
    Thanks in advance.

    To answer your direct question "why the order in the previous example differ".
    When you added additional columns to the select list, that changed the query plan generated for the query. This caused Oracle to pick up the rows in a different order. There are a number of reasons this could happen, the new selected columns caused a different index (or no index) to be used for one of the tables in the query, it caused a different table to be be used as the "driving" table (i.e. the first one accessed), it caused a different join method to be used.
    HTH
    John

  • How to remove the approved order from the table in sapui5

    Hi Experts,
      how to remove the approved order from the table in sapui5.
    After Approving the order how to remove the order from the table in sapui5.
    Please help me.
    Thanks & regards
    chitti Babu

    Hi,
    Probelm is OBIEE on your machine.Some one might have deleted pdf option.
    Refer : http://obiee101.blogspot.com/2009/07/obiee-dashboard-default-controls.html
    Try to find out tag that is to be removed from controlmessages.xl so that you have only HTML.
    Update :
    Stop BI Server.Try removing below tag and restart server.
    (sawm:if name="enablePDF">(a class="NQWMenuItem" name="pdf" href="javascript:void(null)" onclick="return PortalPrint('@{pdfURL}[javaScriptString]',@{bNewWindow});">
    <sawm:messageRef name="kmsgDashboardPrintPDF"/></a)</sawm:if)
    Regards,
    Srikanth
    Edited by: Srikanth Mandadi on Apr 19, 2011 3:36 AM

  • How to Control the Sorting Order of iPhone Contacts from Outlook?

    In a series of editing steps we've loaded ca. 1,900 personal and business contacts from Outlook into a 1st gen iPhone with 2.0.1 software on it. To our surprise we found that while most of the entries were listed and sorted by company, certain entries were listed and sorted by the person's name. It looked random and there didn't seem to be any way to control it on the iPhone.
    While troubleshooting the problem we synced up the iPhone with an empty Address Book on a MacBook Pro and found that the sort order flag was indeed set differently on these entries. When we changed the sorting flag of a contact in the Mac's Address Book to "Company" it also changed on the iPhone after the next sync.
    Problem: In our business environment it is impossible to switch to Macs for contact administration. We need to do it from Outlook. This is one of several features needed for the adoption of iPhones.
    Question: Is there a way to control this flag on the individual iPhone contact entries from Outlook Contacts?

    Well, I think we figured it out.
    Outlook doesn't offer a sorting flag on person or company name. Instead it uses a separate "File As" string. The problem with our contacts was that this "File As" string was frequently edited to be something else than exactly the personal or company name, e.g. it was set to an abbreviated company name. Once we set the "File As" to any of the defaults offered, i.e. person or company name, the sorting flag in iPhone was properly set through the synchronization.
    Obviously, the application logic compares the content of these fields in Outlook and decides how to set the flag. If it can't find the company name in "File As" it defaults to person.
    This was an expensive holdup for us. It cost us 2 man days to figure it out. Is there any place where such application logic is described?

  • Default sorting order

    Hello,
    When I search for a specific podcast, it lists 50 entries from the feed, on the iTunes search page. The default selected column is the first one; 1-50. How is this order primarily determined? By popularity? I'm noticing jumbled up entries. For example, old ones mixed with new ones. It seems like it is sorted by popularity, but wanted to confirm.
    Thanks for your assistance.

    Apple's Podcast Tech Specs page says:
    'The order in which the episodes appear is based on the pubDate for each item, with the most recent episodes appearing at the top of the list.'
    However clicking on different columns will produce a sort order based on the contents of that column.

  • How to restore default OS X Lion theme?

    Recently, I downloaded an app named "Cloak" which changes the color of your Finder, but it didn't work so I uninstalled it. After I did that, it changed the buttons around. For example on Safari, when I press the red exit button it goes full screen instead. Other things happen too (Look at the photo) How do I restore default OS X Lion theme so that it goes to normal? It's really ******* me off, help me pleaseee?

    An example of the 3rd party programs that people insist on installing and wonder why their systems go haywire.
    I would suggest going to the developers site and seeing if they have a downloadable uninstaller.
    http://www.taoeffect.com/blog/2009/05/cloak-manage-your-invisible-files/
    If you install these eye candy programs, they become entwined with your core system and the result is often as we see above, or often worse, like data loss through disc or system failure.
    Good Luck

  • How to change the Sort Order?

    Hi,
    I want to do a sorting on 3 fields in the order say for Eg:Name,Number,Dt.On the report I have grouped by Number so by default it appears in the sort list(Asec),So my sort order on the report looks like Number,Name,Dt but as per the requriment I want to sort it first by Name, then by Number, and then by Dt.
    Is there a work around for this...

    Try to insert a summary on name field in group footer like maximum(,).
    Now go to report>group sort expert>select all based on maximum(,)
    Now the report sorts based Name field instead of number field
    Regards,
    Raghavendra

  • How to control photo sort order in flickr publish folder

    Using LR 5.3 and trying to control the sort order of photos in a Publish folder (Flickr). When I drag-and-drop the photos, they never end up in the location indicated by  the dark black bar that appears under the mouse cursor. Usually appear within 5 or 6 places of the dropped location, but sometimes up to 20 places away from the dropped location. Futzing with the location sometimes gets them closer, but not always. It's very frustrating. I've seen comments about certain restrictions for manual sorting (e.g. not feasible in Smart Collections), but no specific reference to sorting in a Publish service. Is there a way to put the photos into the exact order that I want in a Flickr Publish folder? (Note: drag and drop does not work correctly... that's the problem).

    Click the Action icon > show view options > Arrange by none > sort by name.

Maybe you are looking for

  • I have windows 7 and I can't open the iTunes store

    I can't get into the store. I upgraded to the latest version but it still will not allow me to go to the store. Help please

  • How do I setup Yahoo mail with OS X Mail?

    Hi, I am seeing some odd behaviour using Yahoo mail and the Mail app built into OS X.  I use UK based Yahoo mail, OS X 10.8.1 and Mail 6.0 that comes included. In OS X Mail I have the Inbox, Sent and Trash mailboxes listed with the neat icons, then u

  • User can see the subject are but nothing under the subject area.

    Hi I have OBIEE 11g. I was thinking this is a very simple case where I have one subject area for which I want to create a user such that it can create analysis and reports on that subject area. I BIAdmin can do that currently. So I created a new user

  • Anglican iCal calendar

    I have been trying to search for an iCal calendar for any Anglican church holidays, but coming up empty.  Was hoping someone might point me in the right direction. Thanks

  • Languages and "InDesign Defaults"

    Hello! I have a simple question about additional languages and InDesign defaults. When I install new languages in ISpellingMgr implementation it adds entries to the application language list permanently i.e. if I remove my plugin - names of my langua