Column header sorting: NULLS first/last

Column header sorting doesnt seem to support the NULLS FIRST /LAST feature of the SQL ORDER BY clause.
So, if my data has nulls in it, I cant control where they appear when I click on the column header to sort it.
Is this added to the upcoming 2.0 version?
Thanks

Same question over here: in the J2EE app that I'm rebuilding with Apex, we use NULLS last in all pages, wether order is descending or ascending.
Is 'nulls first/last' supported in any way now?
Are there workarounds to achieve this?
Thanks,
Toon Koppelaars

Similar Messages

  • Query can't include an "ORDER BY" clause when having column heading sorting

    I'm getting the following error when I try to include "ORDER BY" in my sql statement :
    "Your query can't include an "ORDER BY" clause when having column heading sorting enabled"
    I have used other sql statements with "ORDER BY" but this is the first time I have come across this and I don't understand why it's going wrong. Does anyone have a suggestion as to how I could fix it? Here is one of the sql statements which I have tried which is giving me the error:
    select "ID_NUMBER",
    "PROJECT_NAME",
    "PROJECT_TYPE",
    "OWNER",
    "PRIORITY",
    "STATUS",
    "END_DATE",
    "COMMENTS"
    from "PROJECT"
    WHERE "STATUS" != 'Completed' AND "STATUS" != 'Cancelled'
    ORDER BY "END_DATE"
    Regards,
    Ed.

    You must deselect column heading sorting that is in the page "Report Attributes" .This is a check box placed on the same line of the element of the report.
    bye

  • Sort Nulls First with Manual Tabular Form????

    I just created a manual tabular form and it appears to be in working order. Now I need to order the report results on 2 columns (which I have working using the sort sequence in the column attributes), but I also need the blank row (added row) to appear on top of the results.
    What do I need to do to add the blank row on top?? Sort Null: First does not work in my case.
    Thank you,
    Tammy

    select
      apex_item.hidden(1,null) log_id,
      apex_item.text(2,null) empty_field,
      apex_item.text(3,null) log_date,
      apex_item.text(4,null) z_time,
      apex_item.text(5,null) log_lead,
      apex_item.text(6,null) log_event,
      apex_item.text(7,null) project_id,
      apex_item.text(8,null) status,
      apex_item.checkbox(9,null) chkbx,
      apex_item.hidden(10,null) seq_id
    from dual
    connect by level < 4
    union all
    select
      apex_item.hidden(1,c001) log_id,
      apex_item.text(2,c002) empty_field,
      apex_item.text(3,c003) log_date,
      apex_item.text(4,c004) z_time,
      apex_item.text(5,c005) log_lead,
      apex_item.text(6,c006) log_event,
      apex_item.text(7,c007) project_id,
      apex_item.text(8,c008) status,
      apex_item.checkbox(9,seq_id) chkbx,
      apex_item.hidden(10,seq_id) seq_id
    from apex_collections
    where collection_name = 'LOG_ENTRIES'

  • Tooltip for column header sorting

    If I enable column header sorting, is there a way to put a tooltip (HTML 'title' property, I guess) on the column header saying 'Click here to sort by this column'?
    The triangle image shows this alt text but that triangle image is shown only next to the column that is currently sorted, not all the columns.
    [My column headings come from a custom PL/SQL function, not declaratively on the Report Attributes page]
    Thanks

    See
    http://htmldb.oracle.com/pls/otn/f?p=24317:28
    The following seems to work.
    Add this javascript to the Page Attributes Header section
    <script type="text/javascript">
    function AddTooltip()
    var l_link;
    var l_hrefs=document.links;
    for (var i=0; i < l_hrefs.length; i++) {
       l_link=l_hrefs;
    if (l_link.href && l_link.href.indexOf('fsp_sort_')>=1) {
    l_link.title="This is a tooltip"
    </script>
    Then call it from the onLoad as follows
    onLoad="AddTooltip();"
    Seems to work like a charm.
    Thanks
    BTW, anyone know how to prevent the [ i ] inside a [ pre ] from being interpreted as an italic tag? I thought all text inside a PRE tag is left untouched?

  • How to implement column header sort

    Hi all,
    Does anyone know how to configure Oracle 9i AS Portal Release 2 column header sort.
    In Portal, Oracle has setup the IDE to sort your columns using arrow keys in the
    column headers. I would like to do the same thing without using the Custom Form.
    TIA,
    Daniel N

    I would suggest using the built in Collections framework for sorting.
    have class A implement the Comparable interface then implement the compareTo method as follows:
    public int compareTo(Object o) {
        A a = (A)o;  // <-- may cause ClassCastException if (o instanceof A) != true, but that should not be a problem.
        int value = attr1.compareTo(a.attr1);
        if (value != 0) return value;
        value = attr2.compareTo(a.attr2);
        if (value != 0) return value;
        value = a.attr3.compareTo(attr3);  //Notice I switched a.attr3 and attr3 for desc
        return value;
    }That should do it for you.
    Now put everything into an instance of java.util.List and pass that to java.util.Collections.sort(java.util.List);
    If you didn't create class A, and therefore can't add a method to it, then implement a Comparator. The idea is the same, just look at the java.util.Comparator API and use java.util.Collection.sort(java.util.List, java.util.Comparator) method to sort;

  • Column header sorting: Checkboxes

    Column header sorting doesnt seem to work like one would expect when the column is a checkbox rendered using htmldb_item.checkbox().
    If I have a some boxes checked, some unchecked on a page and I click on the column header, I would expect all the checked and unchecked boxes to show up together. But they dont. Does the HTML for the checkbox interfere with the sorting? Is there a way to make it sort what you see on screen?
    Thanks

    Vikas,
    What you get when using htmldb_item calls in your query are varchar2 columns. So it’s ordered by the resulting strings, including all HTML tags that are rendered by that procedure. You might be able to do what you are describing by using Tyler’s sorting hack somehow:
    Dynamic Selection of Report Column Format
    Regards,
    Marc

  • Problem with column heading sorting

    I have a problem with a classic report.
    I created a simple report. We want to sort the report, when we click the column heading. But when we cklick on the column heading, nothing happens. In firefox we get the error "apex.jQuery.datepicker is undefined".
    When we created another simple report and connect against another database (but the same web-server), we can sort the report, when we cklick a column heading. On both databases we installed the same apex version (=4.0.1.00.03).
    on "apex.oracle.com" (workspace:ama / user:demo / pwd:demo) I created an example.
    what is wrong?? Can anyone help me ??
    Thanks
    Robert

    Hi Jari,
    yes, you are right. I changed my query. I attempted to find a solution and so I changed the query several times => I used other tables, with or without date columns, with or without columns in the select and so on.
    You said, the problem is the authentication scheme. It crossed my mind that I do another change:
    during the creation of my application apex created a login page => page 101. For my example application I don't need a login page, and so I droped the page. After starting the application I saw the error message "page 101 not found ". So I searched for a property where apex definies the "start page" respectively "login page". But I don't found anything. Then I looked into the export file and searched for "101". I found the package procedure "wwv_flow_api.create_auth_setup" and the parameter "p_invalid_session_page", which receive the value "101". In apex the property "Session Not Valid Page" was blank. So I inserted the page number "1" (=the first and sole page in my application).
    After the explained changes I could start my report.
    I don't know, whether these informations help to find the problem!
    Regards
    Robert

  • Column header sort - case sensitivity issue

    Hi guys,
    I'm having an issue with the built in column sorting when you click the headers on a report. Basically case sensitivity is taken into account and capital letters get sorted before smaller case letters, for example:
    Cats
    Dogs
    Zebra
    ants
    bears
    How would I be able to fix this built in sort?
    Thanks,
    Luis

    Luis,
    See if Denes's solution helps: Report sort by column header question .
    Scott

  • Column header sorting

    Is there a way I can click on a displayed column (A) and have the actual sort be performed on the value in another hidden column B?
    Thanks

    Yes.
    select empno,ename
      from empEdit the report attributes > Edit the Empno Column
    In the "HTML Expression" field near the top, of the empno column attributes page, type in:
    #ENAME#
    Save it then un-check the "show" column for ename on the report attributes page. You can also change the column header for empno to "Name" (or whatever you want).
    Basically, you are displaying the ename data in the empno column. It will sort on empno, but display ename.
    Thanks,
    Tyler

  • Can clicking on column heading sort the column contents instead of drill in

    I have a pivot table with data that the client doesn't want to drill into. Instead, they want to be able to click the column heading and have the pivot table re-sort the data in the table based on the data in that column. Is that possible, or are clickable column headings only used for drilling in OBIEE? Thanks.

    Madan -
    That seems like a feature that should be added to the Pivot Table view if they are going to have it in the Table View. Still, thanks for pointing out the "Enable column sorting in Dashboards" check box in the Table view. I'll see if I can either get this data into the Table view, or at least let the client know the limitations of OBIEE.
    Thanks again.
    Daniel

  • Webdynpro Table: Column Header sort icon not visible

    In design time in NWDS, my table headers have this up/down arrow icon that is visible to indicate sorting.
    At runtime it is not displayed.  How come?

    Hi KF,
    According to the Node Structure
    Employee
    |----
    name
    |----
    no
    |----
    sal
      public static void wdDoModifyView(IPrivateEmployeeView wdThis, IPrivateEmployeeView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
    if (firstTime) {
               IWDTable sortTable = (IWDTable) view.getElement("Put the table id here");
    <b>
               wdContext.currentContextElement().setEmployeeTableSorter(new TableSorter(sortTable, wdThis.wdGetSortEmployeeAction(), null,
               new String[]{"name","no","sal"})); </b>
    //Instead of column id passes the attribute name of the node that is bound with the table.
    //EmployeeTableSorter is the context attribute of type …….utils.TableSorter
      public void onActionSortEmployee(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionSortFundID(ServerEvent)
         wdContext.currentContextElement().getEmployeeTableSorter().sort(wdEvent, wdContext.nodeEmployee());
        //@@end
    Table Sorter : table not getting sorted
    Regards,
    Mithu

  • 2720: Address Book sort order - "first/last" versu...

    My 2720 cannot make up its mind whether to list my contacts by last name or by first name. Some are Bob Smith while others are Smith Bob.
    I can see the problem. When I go to edit Smith Bob, I have two fields: First name and Last name. When I go to edit Bob Smith, I see that I have only one field: Name.
    I suspect the discrepancy is because some would have been ported from an older phone.
    My question: is there a way to fix this that's not mind-bogglingly tediously deleting them and re-adding them? (I can't simply edit them, since they're stuck in the format they came in.)

    Any contacts that are stored on the SIM card (or that have been copied to the phone memory from the SIM card) will have only two fields: name and number, because that's all a SIM card is capable of storing. Likewise, some phones made by other companies (my old Sony Ericsson K800i was an example) also don't have two fields for the name, so contacts transferred from a phone like that would be the same, so you are probably right to guess that the contacts copied from an old phone would have one-field names.
    There is no easy way to split a name into two fields, but using the Communication Centre in PC Suite to edit contacts is slightly easier. You still need to do each affected contact individually, but it is quicker and easier through a PC interface than in the phone itself.

  • 3.1 Bug - Add row not working if Sort Nulls defautls to first.

    In some situations when you click "Add" to add a new row of a tabular form you are not provided a blank row, although you can see the row count is incremented in the lower right corner.
    This occurs if the setting of Sort Nulls first/last is allowed to default in the region attributes. By default nulls are sorted first. If your tabular form has a sort on any column and you try to add a row, the new row sorts to the top. If you have more than a screens worth of rows your blank row is not visible because APEX places focus to the last page of the result set. A work around is to go to the region's Report Attributes tab and look for "Sort Nulls" and set it to last.
    But even if you do this you may still run into problems. For example if you sort on a column that has a lot of null values, your blank row may still not appear as the last row and so may not be visible.
    I'm wondering if this is a know issue and if there are plans to correct.
    I mentioned the bug to David Peake when he was out here this week, but I didn't realize what was causing the weird behavior. Too bad I couldn't get his opinion about the cause.
    Thanks!
    Ken

    I'm seeing something that might be related to this, might not. I've setup a tabular form (Apex 3.1.0.00.9) and added a select list (Select list with submit) to help control the number or rows displayed.
    Let's say I select 30 rows to be displayed. Then I click the Add Row button. I'm getting my new empty row at the bottom of the list of records, however I'm only seeing 5 rows of data displayed above my new empty row, rather than the complete list of records (I only have 15 rows in the table right now).
    Another oddity is that the the pagination shown in the pagination select list shows "row(s) 1-15 of 16" even though the report is showing only 5 rows of data. It's almost as if some pagination value has been cached and not updating.
    Anyone got any ideas?
    Earl

  • Sort by clicking on the column heade with LIFO

    Good morning!
    I would like to sort by last entry is first (LIFO) in my report.
    To do that, I have to un check in sort:
    Home>Application Builder>Application ***>Page 1>Report Attributes*(Otherwise APEX shows: "Your query can't include an "ORDER BY" clause when having column heading sorting enabled.")*
    When I follow the APEX suggestion, my report lost feature to sort by clicking on the column header.
    I still want to keep sorting ability on any column just by clicking on the column header.
    Thanks in advance,
    Sam

    Sam,
    First remove the order by clause from your query and then try to set the sorting using the sort sequence. Thanks.
    Regards,
    --Manish                                                                                                                                                                                                                                                                                               

  • Urgent: Formular question: get first/last month value with qty value

    We've got a query result as the following:
    Jan_2007 -- Feb_2007 -- Mar_2007 -- Apr_2007
    0 --- 54 --- 0 --- 3
    23 ---0 --- 12 --- 7
    In the above query result,
    1st row shows the sales quantity in Jan_2007 is 0, in Feb_2007 is 54, in Mar_2007 is 0, and in Apr_2007 is 3.
    2nd row shows the sales quantity in Jan_2007 is 23, in Feb_2007 is 0, in Mar_2007 is 12, and in Apr_2007 is 7.
    We would like to add a new column to get the first/last month value with quantity, e.g., in 1st row, the 1st month value with quantity value (>0) is Feb_2007, and the last month value with quantity value (>0) is Apr_2007. Therefore the 1st month value with qty is Feb_2007 and the last month value with qty is Apr_2007. In 2nd row, the first month value with qty is Jan_2007 and the last month value with qty is Apr_2007. But how to use formular to get the 1st/last month values with qty?
    We will give you reward points!

    Hello Kevin,  
    You can create forumula using [Boolean Operator|http://help.sap.com/saphelp_nw04/helpdata/en/23/17f13a2f160f28e10000000a114084/content.htm]
    IF<Logic Expression> THEN <Expression1> ELSE <Expression2> can also be made using a formula in the form
    You can also use the [AND, OR Logical operators |http://help.sap.com/saphelp_nw04/helpdata/en/23/17f13a2f160f28e10000000a114084/content.htm]to check all the keyfigure columns.
    Thanks
    Chandran

Maybe you are looking for

  • Windows Vista update for palmOne LifeDrive

    http://www.palm.com/us/support/windowsvista/#palmdesktop LifeDrive Manager (for LifeDrive) and File Transfer (for Tungsten T5), the desktop applications that simplify file synchronization between your handheld and PC, are currently not compatible wit

  • How to populate item category tree with UNSPSC codes?

    I have created an application engine to read a UNSPSC code csv file and execute a component interface to load the item categories. I am having a problem updating the tree we use in ePro. Do I need to set up something before I run this? It looks like

  • XML failure with ASN no Process DELIVERY_INFO_GR for ASN in status is not allowed

    Hi All, In production , we are having many XML failures while sending inbound delivery to SNC from ECC. In SXMB_Moni,  ASN XXXX: Process DELIVERY_INFO_GR for ASN in status is not allowed. Becasue ASN is not exist in SNC but in ECC GR status is comple

  • Is it possible to rollback image copy backup?

    Hi, I have got an image copy with a tag which I apply incremental backups everyday. The image copy is rolled forward everyday. Is it possible to rollback the image copy? I have got incremental backups of everyday and one recent full image copy of dat

  • Is there any difference in SAP 4.7 and ECC 5.0

    Dear, Is there any difference in SAP 4.7 and ECC 5.0... Thanx & Regards, Mohammad Nabi