Report Attribute - Column Attribute - Sort

I have a SQL Query (PL/SQL function body returning SQL Query) report. I have the number of returned limited to 100 rows (Report Attributes - Layout and Pagination - Max Row Count). When I run this report without any column sorts (none of the Column Attribute Sort columns are checked) it runs fast. If I set either the Sort Sequence, or check any one of the Sort columns, the report takes forever to run. This with only 100 rows on the report.
Where is the sort being performed - Is the sort being performed within Oracle (meaning, in the database) or is it being sorted in Apex or on the Client?
Note that there is no "order by" nor "group by" contained within the SQL - just a simple 2 table join (an inner join).

Thank You, Thank You, Thank You.
That is indeed the point I am trying to make.
My report is a SQL Query (PL/SQL Function body returning SQL Query) and is based on information provided in several PopUp LOVs. The more LOVs used, the more information provided to the WHERE CLAUSE, and therefore the less data returned to the screen.
When the End User produces a small report, they are likely to want to sort it.
But when they bring back huge amounts of data, they don't want it sorted. Especially not automatically sorted.
In most cases, this is happening when we are joining two or three tables with say 10 million rows on each table. The join condition is good (meaning there is not a Cartesian Product) but the resultant data is 10 million rows - something you not likely want to sort. Even with a limit on the number of rows returned (Report Attributes - Layout and Pagination - Max Row Count) to something reasonable, like 500, the 10 million resultant rows are first being sorted and then the first 500 returned.
So, yes, a "sort-enabled" report should NOT automatically sort. Which is what is happening.
Of course, it might be a good thing to have some sort of Variable that we could set on a page to decide if we want automatic sorting. On most pages, an automatic sort is great - as the amount of data returned will always be small.
On the pages where I have this problem, it would be great to do the automatic sort when one or more of the PopUp LOVs are populated. So, within a "After Submit" process I might want to turn automatic sorting on.
Hey, if we are going to ask for an enhancement/change, we might as well ask for something really flexible.

Similar Messages

  • Report not initially sorted as defined by Report Attributes "Sort Sequence"

    I have a Report Region with Type SQL Query and Source "SELECT * FROM <table>" where <table> has a primary key from a sequence. Under Report Attributes, I have Report Column "ST_NM" with Show and Sort checked and having a Sort Sequence of "1". I assume this is to set the iniital display sequence but regardless, the report rows display in Primary key order initially.
    To try it: http://apex.oracle.com/pls/apex/f?p=21997:2 with Dever/Ima9Dever
    1) How do I set the initial display sequence to be other than the primary key sequence?
    [Note: It seems to work part (or all?) of the time under our 4.1 implementation.]
    Thanks,
    Howard
    I thought this one would be easy!

    Howard (DBA in Training) wrote:
    I have a Report Region with Type SQL Query and Source "SELECT * FROM <table>" where <table> has a primary key from a sequence. Under Report Attributes, I have Report Column "ST_NM" with Show and Sort checked and having a Sort Sequence of "1". I assume this is to set the iniital display sequence but regardless, the report rows display in Primary key order initially.
    To try it: http://apex.oracle.com/pls/apex/f?p=21997:2 with Dever/Ima9Dever
    1) How do I set the initial display sequence to be other than the primary key sequence?
    [Note: It seems to work part (or all?) of the time under our 4.1 implementation.]Standard reports store sort columns persistently across sessions as user preferences. It's likely that Dever user has at some point clicked to sort on the PK column and created a persistent preference. Try it with a new user that has never viewed the page before...
    See +{thread:id=2433320}+ for more on this, including how to reset it.

  • How to change report attributes like heading, sort etc programmatically

    Some of the columns from a classic reports using pl/sql as region source should be sortable. Is it possible to change this attribute (sort = yes) using JavaScript or APEX API?
    David
    Edited by: david on Sep 6, 2011 11:56 PM

    There is something I don't understand here. Why do you need to point at the sxd? What is changing? Like I mentioned before. If the contents of the xsd change, all the report will do is - at best - drop the changed fields so you will be missing data. Perhaps some of the following will help;
    [Crystal Reports Guide To ADO.NET|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/401c4455-a31d-2b10-ae96-fa57af5aec20?quicklink=index&overridelayout=true]
    [Crystal Reports For Visual Studio .NET Reporting Off ADO.NET Datasets|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/2091d0c3-da1d-2b10-22be-a3426b183f75?quicklink=index&overridelayout=true]
    [Crystal Reports For Visual Studio 2005 Walkthroughs|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23?quicklink=index&overridelayout=true] (page 332 on).
    Ludek

  • Interactive Report Attributes: Missing a column?

    This is for Application Express 3.2.1.00.12
    I'm working on a report with the columns pulled in a SQL statement in the Region Definition section of the Interactive Report Attributes screen. We want to alter the column names so they are more user friendly, so on the Report Attributes tab, I'm looking for the column name we wish to alter, but it is not showing up. Now, in the final report, the column is visible with the header from the name of the column from the database, so the system is aware of the column and can display it, but for some reason we can't see it in the Report Attributes tab.
    Why would a column be invisible or inaccessible in the Report Attributes tab? There are 100 columns displayed in the Report Attributes: Column Attributes section. Is that the reason I'm missing some columns; 100 is a hard column limit on that page?
    Thanks in advance for all help you can provide.
    Matthew Nagler
    Edited by: user13579247 on Jul 20, 2011 10:45 AM
    Edited by: user13579247 on Jul 20, 2011 12:20 PM

    Hi,
    You are almost right place. You need click icon before 100th column name, order to go screen where you can edit column attributes.
    In that screen right top is buttons (Cancle, Apply, < and >)
    Regards,
    Jari
    Edited by: jarola on Jul 21, 2011 5:43 PM
    It might documentation guides you to right screen
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/app_comp.htm#sthref978
    >
    To access Column Attributes:
    1. On the Workspace home page, click the Application Builder icon.
    2. Select the application.
    3. Select a page. The Page Definition appears.
    4. Under Regions, click Interactive Report next to the name of the report region you want to edit.
    The Interactive Report Attributes page appears with the Column Attributes section at the top of the page.
    5. To access the Column Attributes page, click the Edit icon next to the appropriate column Alias.
    >
    Edited by: jarola on Jul 21, 2011 5:44 PM

  • Sorting images mislabeled in Report Attributes?

    I added some custom images in the Sorting section of the Report Attributes. When I ran the report the images displayed were opposite of what I expected (i.e. the descending image displayed for an ascending sort and vice versa.) Upon further investigation it appears that the labels in the Sorting section are indeed reversed. The descending image is displayed when the sort order is ascending and vice versa. Is this a bug?

    Erik,
    Thanks, this explains it. By specifying the request as part of your URL you run into the recently uncovered issue. The request you're setting is REMFROMLIST and ADD2LIST. You probably either have links that include those requests or you have branches where you specify them. Either way, in order to get reports sorting to work, you'll have to make sure that the request strings are not part of your URL. This is a work-around and the upcoming HTML DB patch release will solve this issue.
    One way of avoiding this is to have computations on the previous pages that set a napplication level or page level item to the REMFROMLIST and ADD2LIST values and then you can use those items for your conditions that are currently evaluating those strings.
    Hope this helps and sorry for the inconvenience,
    Marc

  • Number of columns in the Report Attributes

    Hi,
    In the report attributes, there are around 100 columns, but I am able to see around 70. If i want to change the order of the columns i need to view everything. What is the solution for this?
    Regards,
    Pallavi

    From my experience there are two options. One is copy your query out to another editor, delete the region and rebuild it after changing the order of the select statement in your query. This works well, but becomes cumbersome if you have lots of custom attributes or links on the columns.
    The other is to modify the source of an application export. We have had to do this before on an import form, because the number of input items exceeded the limit in APEX. The export file is a sql script and has parameters in the section that creates the report region that reference each column (COL09 for instance). You could re-org those and attempt to import the application. !!!This of course is not supported by Oracle should something not work correctly. I would make sure to take a backup and do not import over top of the existing application.!!!
    Good luck!

  • Moving columns up/down in Report  Attributes

    Is there a faster way to move columns up/down in the Report Attributes region? When I have a query like
    select
    col1,col2,...
    and I add a column before col1, it gets added after all the columns and I have to click Up several times to have it positioned at the start of the column list. This is a tad painful when dealing with more than 4-5 columns.
    Can I suggest putting a column display sequence on each column also?
    Thanks

    Has this been discussed?
    A "display sequence" text box would be nice if there is not an alternate method.
    Dave

  • Report Attributes: arranging sequence of columns

    in a non-interactive report, in order to specify the sequence of the columns, we have to use the up/down arrows from Report Attributes->Column Attributes.
    Any tricks to make this easier?
    Has anyone heard about whether this will be draggable in 4.0?
    I don't mean to sound ungrateful.... I am having tremendous success pulling my project together, but this is such a tedious way to arrange the column sequence!
    Thanks
    Marion

    Hi Tony - I ordered that book over a week ago from half.com but it hasn't arrived yet; Thanks for reminding me - I'll look for a status on the ship-date. I also ordered the book by Greenwald and am going thru it (but I tend to get sidetracked trying to do stuff with my own business needs)
    I do try to surf and look in documentation and find answers for myself, but sometimes it's counter-productive when I don't even have the vocabulary to know what it is that I'm looking for.
    For example, other applications, I know the concept of 'margins' and so, even if I don't know where the settings are, I know to search for margins.
    But here, there is so much to learn that I don't even always have the words to know what it is that I'm looking for!
    Thanks for the suggestion Tony - I appreciate it -
    Marion

  • Report Attributes. Count of columns limit

    Hello,
    I've found that Apex display only up to 100 columns in "Report Attributes" area of report properties. But now I create a report with more than 100 columns (that is a kind of project planning system). Is it possible to delete this limitation in current release or in upcoming 3.1.1 ?
    Thanks in advance,
    Alex

    Hello,
    I've found that Apex display only up to 100
    columns in "Report Attributes" area of report
    properties. But now I create a report with more than
    100 columns (that is a kind of project planning
    system). Is it possible to delete this limitation in
    current release or in upcoming 3.1.1 ?
    Thanks in advance,
    AlexWhy would you try to generate a report with over a hundred columns? Maybe you should look at do doing some smaller reports, since most people will NOT be looking at that many columns..
    I used to work with MS Project and project management reporting and can not remember ever having reports with that much data packed into one report..
    Thank you,
    Tony Miller
    Webster, TX

  • Report Attributes: Add column link and derived column

    On the Report Attributes page (4000:420), under the Tasks list on the right side of the page, there are 2 links, "Add column link" and "Add derived column". This is the first time I am noticing them.
    The usage is clear, they add columns to the report to function either as a drill-thru link column or just a read-only derived field.
    Doing it this way does NOT modify the source query for the report region.
    Is there any benefit to using this feature versus adding a "null column_link" or "null derived_col" columns to my source query then setting attributes for those columns?
    Thanks

    Well, one disadvantage I can see of using the 'Add Column link' is that if I have more than 1 of such columns, they all show up as '[column link]' on the Report Attributes page with no way to tell what the underlying links are. Instead, if I were to manually add these dummy columns to my query itself, I would give them meaningful column aliases that indicated where they link to.
    Suggestion: Maybe a tooltip could be added to the Report Attributes page for such columns which indicate what the underlying link is without actually going to the Edit page for that column.
    Thanks

  • Set Default Report Attributes

    Hi,
    Is is possible to set the default report attributes for interactive reports so when I create a new one I don't have to go through and change the defaults. Basically I want to set the "Show Null Values as" variable to null rather than a dash for all newly created Interactive Reports, I know I can change the value once the report is created but I'd rather it default to null in case I forget to change it.
    I've searched though the interface and OTN with no luck, any ideas?
    Thanks in advance.

    Joe
    Standard reports (and hence the evil that is tabular forms) store sort columns persistently as user preferences. The <tt>apex_util.remove_sort_preferences</tt> method can be used to remove them, resetting reports to the default sort order. However this is not a precision instrument: it removes the user's sort preferences for all reports...
    It is possible to remove the sort preference for individual reports using the <tt>apex_util.remove_preference</tt> method by reverse engineering the required sort preference name from the admin user preference report.

  • Fail to parse SQL query after report attributes changes on sample app

    This errors occurs in the sample application istalled in Workspace PMW on the http://htmldb.oracle.com web site. Goto home page, edit Page 1, Select "Top Orders" in Region, select report attributes, change max count from 5 to 5 in "Layout and Pagination", apply changes, run page and parse SQL error occurs. Select "debug" and the following is shown regarding the query.
    0.10: query could not be parsed:
    SELECT a.ORDER_ID, a.ORDER_TIMESTAMP, a.CUSTOMER_ID,
    b.cust_last_name || ', ' || b.cust_first_name cust_name, NVL(a.ORDER_TOTAL, 0)
    FROM demo_orders a, DEMO_CUSTOMERS b
    WHERE a.customer_id = b.customer_id
    ORDER BY NVL(a.ORDER_TOTAL, 0) DESC order by 5 desc,5 desc
    failed to parse SQL query:
    ORA-00933: SQL command not properly ended
    I can't see that I'm doing anything wrong but maybe someone can shed some light on this!
    Thanks

    this is sort of an oversight on our part. what's going on is that the sample app installs with that order by clause in the query. at the same time, the report attributes page for that region has a default sort sequence value of "1 desc" (even though column heading sorting isn't enabled). when you go to that page and try to apply any change, htmldb tries to set things up correctly for you...and you end up with that double order by. the best way to avoid the issue is to remove the order by clause from the query on the Region Definition page.
    hope this helps,
    raj

  • Not able to open Modal Page through a report attribute link

    Dear All,
         Not able to open Modal Page through a report attribute link, kindly help me...
      I am using skill builders modal page plugin ...
    Thanks and Regards,
    Madonna

    Here's what you have to do.
    You set up your column link like this:
    Link text: whatever you like
    Link attributes: onclick="return false;" class="open_modal"
    Target: Page in this application
    Page: number of the page you want to open in your modal window
    You set up your dynamic action like this:
    Event: Click
    Selection type: jQuery selector
    jQuery selector: .open_modal
    (notice the dot at the beginning!)
    Action: SkillBuilders Modal Page (2.0.0) [Plug-in]
    Event Scope: Dynamic
    And finally, in your True Action (SkillBuilders Modal Page (2.0.0)), URL Location should be set as Attribute of Triggering Element.
    And that's pretty much all it takes.
    Hope this helps.

  • Global Report Attributes

    Marc:
    Is there a way to specify Global Report Attributes that would apply to all report regions on any page in the application?
    For example, I would like all columns with an alias of, say customer_name to be assigned to a CSS class of customer_name. This way, I can style that class in a custom CSS file and any report anywhere in the app would get that style. Currently, I have to open up each Report Attributes page, specify the CSS Class on each column. This gets to be a pain.
    Thanks

    Vikas,
    You might get answers quicker, if you don’t address a specific person but ask all forum participants. This question seems like something that others might haven an idea about as well.
    One thing you could try would be using the #COLUMN_HEADER_NAME# substitution string in your report column template, e.g.:
    <td class="#COLUMN_HEADER_NAME#">#COLUMN_VALUE#</td>
    Regards,
    Marc

  • Change report attributes dynamically?

    Can we change the report attributes dynamically? For example, I want to dynamically set some columns to be showed or not. I plan to use a radiogroup, when I choose "Partial View", the report only show some columns; when I choose "Full View", the application changes the column attributes from "hidden" to "shown".
    Anyone knows how to do that in APEX 3.0? Thanks a lot.

    I have a radiogroup, which has two values, 1 for "Partial View" and 2 for "Full View".
    I set the "condition type" to be "Value of Item in Expression 1 = Expression 2", "Expression 1" to be ":P400_RADIO" and "Expression 2" to be "2".
    Anything wrong here?
    Thanks a lot for your quick reply.

Maybe you are looking for

  • Tabbing issues - form fields and HTML links

    I have a few HTML links in the top of a page with a form starting half way down the page. When using the tab order, I am able to specify tab order no problem in the form fields but when previewing or using the PDF and tabbing through, the tab order g

  • 10.4.7 Update-Cannot Restart, Despite Message "You need to restart your..."

    Aloha, All. I know there's a string on this, BUT. . . it's gotten rather full, and in one of the contributor's words, "over-generalized." Here are the specific details of my problem: Used Software Update to download and update to OS X 10.4.7 on my 15

  • Where are my cc applications?

    I downloaded and installed photoshop, dreamweaver and premier pro cc versions (I previously had cs6 of all these) but cannot find them in my start menu. I see all my cs6 applications but no cc. Where are they? How do I run them? They show as installe

  • I cannot use my debit card to add to my account.

    When I add my debit card to the app store. It will reject my card and say " The Billing of the previous protease has failed because your payment card was Declined. Please update a new card." some thing like that. So I need to add my card to app store

  • OK, so here's my NEW question!

    Can the old Mac Mini get online seeing as it does not have an airport card?? My husband would like to continue to use it, but of course he wants to use it wirelessly. Right now it's hard wired by an ethernet cable. Thoughts??