Report Sort

Hi,
I have created a report using 'PL/SQL function body returning SQL Query'. The columns in the report are dynamically generated.I have selected the option 'Use Generic Column Names (parse query at runtime only)'.Also the option 'Function returning colon delimited headings:' in Report Attributes tab is used for generating report headings dynamically. Even though the sort option is selected in columns 'cols01 - cols60', I am not getting the sort link in the report headings when the report is generated.
Thanks,
Rekha

Rekha,
Looks like a bug to me. I'll log it. Thanks for bringing it to our attention.
Scott

Similar Messages

  • Wrong folder and report sorting

    We installed BO XI R2 SP4. Folder and report sorting is incorrect. How to fix that?

    Hi Wallie,
    we just started our mirgation from 6.5 to XI
    so BO XI SP4 on .NET is our first XI installation.
    Sort order is incorrect for both folders and objects
    and for both asc and desc orders.
    Most of folders/objects are sorted correctly but several of them are out of order.
    Examples:
    __ASC order__                            DESC order
    Class                                        User         
    Customer                                  Report Samples
    Data                                         Report Conversion
    Document                                 Feature
    Accident                                   Admin
    Admin                                       Accident
    Feature                                     Document
    Report Conversion                      Data
    Report Samples                         Customer
    User                                         Class
    I believe it gives the picture.
    Valentin.

  • Custom report sorting

    Custom report sorting
    I need to display the report column header in vertical format, hence I’ve to use to use some css code along with column name for that. Also, I want this column to be sorted by clicking the column name. So, I’m embedding the following url along with css and column name to enable sorting on this column when user clicks the column header. I got the following url by looking at the standard report with sorting enabled on a column.
    http://test.com:7777/pls/htmldb/f?p=100:22:&APP_SESSION:fsp_sort_1::RP&fsp_region_id=1870116795285540
    My questions are …
    How can I toggle the url to append “_desc” to the fsp_sort_1 parameter dynamically when the user clicks the column name, as it is done when standard column sorting is selected.?
    How can pass region id dynamically in the above url (last number in the url)?
    Any ideas are appreciated
    Thanks,
    Surya

    hi pavan
    i can just tell you that i had no issues with custom column sorting in webi with Enterprise XI 3.0 and Xcelsius 2008.
    Best Regards
    Ulrich

  • Custom Rowtype Template with apex.widget.report.sort() - does this work?

    Hi Folks!
    I have a report with a custom rowtype template (3 rows for each dataset) and I have fiddeled around with the build-in javascript sorting-function. (Cause as it seems you can't use the standard sorting functionality on custom rowtemplates.) I came up with a short solution, but I would like to know how safe this is.
    Setup very simple:
    The Header-Template [before rows]
    <table id="myDomId">
        <thead><tr>
            <th><a href="javascript:sortCol(1)">Col1</a></th>
            <th><a href="javascript:sortCol(2)">Details</a></th>
            <th><a href="javascript:sortCol(3)">Col3</a></th>
        </tr></thead>
    Then the javascript handling runs like that:
    var qmmSorter = {};
    $(function(){
       setupSorters();
    function setupSorters(){
        qmmSorter.DomCatch = /\d+/.exec($('#myDomId>div').attr('id'))[0];
        qmmSorter.lastCol = 1;
        qmmSorter.asc = true;
    function sortCol(colnum){
    //console.log(colnum);
        if (qmmSorter.DomCatch) {
            qmmSorter.lastCol = colnum;
            qmmSorter.asc = !qmmSorter.asc;
            javascript:apex.widget.report.sort( qmmDomCatch,'fsp_sort_'+colnum + ( qmmSorter.asc ? '' : '_desc') );
    Maybe I'll also add some arrows to indicate what sorting took place. Tested so far in IE9 and Moz - all we really use in our internal network.
    But this seems all a bit just too easy. so I'd be really thankful for your comments.
    Tanks and greetings,
    Tobi

    TobiP wrote:
    But this seems all a bit just too easy. so I'd be really thankful for your comments.
    It would be even easier to use column header substitution and retain the built-in sort functionality (although this includes the sort direction image bug).
    <table id="myDomId"> 
      <thead><tr>
        <th>#1#</th>
        <th>#2#</th> 
        <th>#3#</th> 
      </tr></thead>

  • How to get last column used in report sorting?

    hi,
    how to get last column used in report sorting?
    simon

    How to identifiy which column was sorted having different reports on page?
    just use:
    'YOUR_STATIC_REGION_NAME' instead of p_static_id,
    :APP_ID for p_app_id,
    :APP_PAGE_ID for p_page_id
    :APP_USER_ID for p_app_user.
    and dont forget to grant SELECT on #OWNER# to APEX_030200.WWV_FLOW_PREFERENCES$
    good luck and thank you Juergen.Schuster
    Simon

  • APEX_ITEM report - SORT doesn't work

    Hi,
    For the following report, the SORT doesn't work. I've also tried with the "Report Attributes", but same result. Does someone know is there a way to make it sorted or can confirm it's not possible.
    Thanks.
    SELECT
    APEX_ITEM.CHECKBOX(11,id_cc_delai_recueil) id_cc_delai_recueil,
    APEX_ITEM.HIDDEN(12,id_cc_delai_recueil)||APEX_ITEM.HIDDEN(13,id_cc_regle)||APEX_ITEM.TEXT(14,numdelai,3) numdelai,
    APEX_ITEM.SELECT_LIST_FROM_LOV(15,typedoss,'DOSSIERS OU DOCUMENTS',NULL,'NO') typedoss,
    APEX_ITEM.TEXT(16,suppdoss,3) suppdoss,
    APEX_ITEM.SELECT_LIST_FROM_LOV(17,rem_suppdoss,'REMARQUE_DELAI',NULL,'YES','','') rem_suppdoss,
    APEX_ITEM.TEXT(18,perioactif,3) perioactif,
    APEX_ITEM.SELECT_LIST_FROM_LOV(19,rem_perioactif,'REMARQUE_DELAI',NULL,'YES','','') rem_perioactif,
    APEX_ITEM.TEXT(20,periosmact,3) periosmact,
    APEX_ITEM.SELECT_LIST_FROM_LOV(21,rem_periosmact,'REMARQUE_DELAI',NULL,'YES','','') rem_periosmact,
    APEX_ITEM.SELECT_LIST_FROM_LOV(22,dispoinact,'DISPOSITION1',NULL,'NO') dispoinact,
    APEX_ITEM.SELECT_LIST_FROM_LOV(23,rem_dispoinact,'REMARQUE_DELAI',NULL,'YES','','') rem_dispoinact
    FROM
    cc_delai_recueil
    WHERE id_cc_regle = :P52_ID_CC_REGLE
    ORDER BY
    3,
    2

    Paulo,
    Remove the Order By clause from your Select statement and then use the Report Attributes to determine your sort order.
    Jeff

  • Report: sorting of data and temporary table sorting

    We have a report that runs a procedure, which inserts data into a temporary table using the supplied parameters. The report then selects data from this table.
    Previously the report has always displayed data in the same order in which it was inserted into the table, even though no sorting is specified by the report itself. I realize that the report itself ought to specify the sorting in order to guarantee it, but this has worked in the past.
    As part of an application/Oracle upgrade the report has been recompiled. Data is now displayed in a different order as before. However, each time we run it now, it IS the same (new) sorting. So it's still consistent, but consistent in a different way than before.
    Is there some way to go back to the old sorting (display in same order as inserted into table) - without having to re-code this (and all the other) reports in order to specify the sorting? We think that data is still inserted into the temporary table in the same order as before. We are using the same version of Crystal Reports.
    Edited by: user489847 on May 31, 2010 4:01 AM

    Crystal Reports.This is the Oracle Reports forum.
    Anyway, I have seen this in one of our applications too. Suddenly the ordering was different, because there was no explicit order by. There is never a guarantee of the ordering if you do not specify it.
    You should ask this in the database forum too, since this is not really Reports related.

  • Report Sorting with PL/SQL Headings

    Hi,
    I have PL/SQL Headings for my reports. Is there a way to use the sorting feature nevertheless?
    I tried to put the sorting syntax in my PL/SQL Headings, but it breaks at the first colon.
    BTW: How can I get the region_id? Is there a "hidden" substitution string like &APP_ID.?
    return 'Projekt' || ':' || to_char(sysdate,'WW/RR') || ':' || to_char(sysdate,'WW/RR') || ':' || 'Bericht'
    Regards, Juergen

    Hi Juergen,
    Column heading sorting does not work when using a PL/SQL function to determine the column headings in the current version. This issue has been resolved and it will be working in the next release. There is no substitution string to determine the region ID and I would not recommend hard-coding URLs in your headings PL/SQL function because the URL sort syntax used might change in future versions.
    Regards,
    Marc

  • Help on Oracle Report sort option!

    Hi,
    My query in Q_1 of Oracle report is select &a_code ori_code ,&a_desc ori_description from &a ori_lup order by &b. When click on OK button it says
    ORA-00936: missing expression
    select ori_code,ori_description from ori_lup order by ==>
    I am not able to resolve this problem.
    What I am trying to do is I have some maintenance tables which have almost same columns like code, description. I want to define a single report and pass on parameters to this report, so that I can use same report for different tables. If I dont give order by clause it is working fine, but I should also provide sort option based on user selection of sort by code/description.
    Thanks for your help.
    Param Dasana
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Andrew Tselischev ([email protected]):
    Hi
    If I correcly understand you need sorted query, if the parameter 'b' is given, and not sorted query otherwise.
    This may be done, for exeample, by the following way.
    1. Delete the text 'order by' in your query as follows:
    select &a_code ori_code ,&a_desc ori_description from &a ori_lup &b
    2. Create 'AFTER PARAMETER FORM' trigger:
    function AfterPForm return boolean is
    begin
    IF LENGTH( LTRIM( RTRIM( :b ) ) ) > 0 THEN
    :b := 'ORDER BY ' | | :b;
    ELSE
    :b := '';
    END IF;
    return (TRUE);
    end;
    I think it will help for you.
    Andrew<HR></BLOCKQUOTE>
    Thanks Andrew , it worked with your suggestion!!!
    Param.
    null

  • Bug in report sorting? Sort doesn't work in last group level.

    Is this a known error? Is there documentation from Oracle about it?
    My query is a simple select from a table. I then created three group levels. Each group contains a value for sorting (up arrow next to column). However, data is not sorted by the value in the third group.
    Try:
    create table test_sort (a number, b varchar2(5), c varchar2(5));
    insert into test_sort (a, b, c) values (1, 'A', 'X');
    insert into test_sort (a, b, c) values (1, 'B', 'Y');
    insert into test_sort (a, b, c) values (1, 'B', 'Z');
    insert into test_sort (a, b, c) values (1, 'A', 'Z');
    insert into test_sort (a, b, c) values (2, 'A', 'Z');
    insert into test_sort (a, b, c) values (2, 'A', 'Y');
    insert into test_sort (a, b, c) values (2, 'A', 'X');
    insert into test_sort (a, b, c) values (1, 'A', 'Y');
    insert into test_sort (a, b, c) values (1, 'B', 'X');
    Create a query tabular report with the wizard (select * from test_sort). Then make the groups: first a, then b, then c. Make sure that there is an arrow next to the values (sorting).
    The report only displays a and b values sorted.
    Edited by: user489847 on Jun 3, 2010 1:19 AM

    Hello,
    This is the normal behaviour documented here :
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwcontxt/props/pi_col_break_order.htm
    Restrictions
    Break Order has no effect on columns that belong to the lowest group of a particular query.
    Break Order only affects columns in groups that are above the lowest child group of a query.
    You have to add an "ORDER BY" in the SQL query in order to sort the columns belonging to the "lowest group"
    Regards

  • Custom report sorting + pagination

    Hi,
    We have a classic Apex report which can be sorted by three different columns. These columns are indexed, so that with a first_rows(n) hint the first page of rows are fetched quickly, even though the entire result set has > 5 billion rows.
    We need to alter this report to use a pipelined function in order to remove the SQL from Apex. Therefore we need the pipelined function to do the order by and pagination internally, rather than Apex adding the order by and pagination - otherwise Oracle would have to materialise the entire result set.
    Can anyone suggest a way to do tihs?
    Is there a way to get a user's sort preferences and pagination for a report in PL/SQL?
    I traced apex_util.remove_sort_preferences to see them in WWV_FLOW_PREFERENCES$, but would prefer to use an Apex API if one is available.
    Thanks.

    Hi,
    I have found the solution to control the message.
    In tread Translation or Replacement for Message This form contains unsaved changes.. it says that there is an undocumented text message WWV_RENDER_REPORT3.UNSAVED_DATA.
    Now i still have the wish to change the java alert box to an modal dialog, anybody??
    Kees.

  • Problem (bug?) in report - sort

    I receive this error:
    failed to parse SQL query:
    ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    I know where this comes from, but I don't know how to solve it (the first time). Below how you can reproduce my error.
    Test-case:
    1. Create a page with a form with one field, static value 1;
    2. Add to that page a report with select id, column from table where id = :p1_x; Make the columns sortable.
    3. Add to that page an other report with select id, column from table2 where id = :p1_x; Make the columns sortable.
    4. If you run the page, you see the form with the item (value 1) and the 2 report with the right results (1 row; id=1)
    5. After Sorting on a column of one of the reports, you receive the error on the other report.
    When you rerun the page and do the sort also on the other report, the error is gone (for that user).
    So to resolve my issue, I need to login with every user, do the sort on all the reports and then I don't have the error.
    How can I do it simpler, so that I don't have this error anymore?

    Dimitri,
    I reviewed your application and found what's causing your sorting issue. When using column heading sorting, you can choose the columns for which you want to enable sorting. This selection is done on the report attributes page. Next to the sort flag, you'll find the "sort sequence" attribute. That attribute allows you to define the default sort sequence for your report. When having column heading sorting enabled, you need to set the sort sequence for at least one column. So to fix your issue, edit both reports and set the sort sequence for e.g. the first column to 1.
    Regards,
    Marc

  • Report sort ascending image

    Hi,
    I would like to change the sort image on my reports
    (Ascending image and Descending image) when I switch themes.
    How can I acheive that since I cannot use a template ?
    Can I use a &item. variable in that field ??
    Thanks
    Francis.

    We have directory for each client like that : /i/CLIENT1, /i/CLIENT2 but I can't put my ascending report image in this folder. I saw that this image must be in the ax folder (http://domain/ax/arrow_up_gray_dark.gif). How can I put my ascending image in /i/CLIENT1, if it's possible ?
    Thanks
    Sylvain Michaud
    Homepage : http://www.insum.ca
    InSum Solutions' blog : http://insum-apex.blogspot.com

  • Standart report sorting with HTML expression in it

    hi,
    got a query with report links like +'<_a href="f?p=&APP_ID.:26:&APP_SESSION.:::26:P26_YEAR,P26_MONTH,P26_BACK,P26_STATUS,P26_PROJECT:&P22_YEAR.,&P22_MONTH.,22,0,'||id||'">'||saved||'</_a>'+
    with 'saved' being a numeric value, report column sorting does not work. any suggestions?
    simon

    Hi Simon,
    As you are outputting the entire HTML using SQL, you need include something at the beginning of the HTML that allows sorting to work on the correct values. I tend to use the "title" (tooltip) attribute and ensure that numbers are of equal length by padding them with zeros:
    '&lt; title="' || TO_CHAR(saved,'000000') || '" href = "' ..... etc
    {code}
    Andy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • APEX report sorting makes report slow

    Hi,
    I have some reports in APEX that are fast (3 sec) when I have no sorting enabled and they turn slow (20 sec) when I enable column sorting.
    The reports are based on data running over a DB-link, all tables come from the same DB-link. When I launch the queries (with filled in parameters) in SQL+ then it takes no more then 5 sec (with or without sorting). The result is about 1000 to 2000 records (only showing 25 in the report with pagination).
    How can I make the report fast (less then 5 sec) with sorting enabled?
    Is there any known bug in APEX that is the source of my problem?
    Thanks in advance.

    Good point, but I already have recreated the report (delete and recreate) with no result. Cause I know that sometimes the reports run slow, cause they are somehow confused with the sorting, and in most cases it helps to recreate the report (which resets the report ID, so that it's like clearing the user preferences).
    First I thougt it had to do something with the user preferences, but I think that it is something different.
    I really don't know how to explain the time difference between SQL+ and APEX.

Maybe you are looking for

  • How can I make a report public so the user doesn't have to login

    I am new to apex and am looking at using some of the reporting tools in apex to create reports in our existing application which is all hand coded htp.p calls The users already login to our application using their own oracle users and passwords throu

  • Lotus Notes 8.5 missing in IntelliSync List

    Hey all, since I use the new Version of Lotus Notes i'm not able to sync my calendar anymore. If I select "Configure Sync" there is no Lotus Notes in the list. (see picture below) Screenshot IntelliSync Then I did a "debug session" using ODS Default

  • Telephone number - Clickable request

    Hi Please forgive me if I have done this wrong - this is my first post I have created a PDF, in Acrobat X on Win XP, that has 'cells' or fields that a manager as well as an engineer can fill in What I am unable to do is make the telephone field - CLI

  • ICloud and keychains

    Hi, So i was attempting to get my mac and my ipad calendars to sync up but having no such luck when after a lot of research i found it was becuase of my icloud and i needed to verify my apple id password. however when I attempted to do that i get a m

  • Downloading Non-current Adobe Creative Suite Programs

    I purchased Adobe Creative Suite 4 a while ago, and would like to download it online, using a product key or serial #.  (I just bought a computer without a disk drive.)  However I don't see any links to download older programs like these.  Any advice