Group By limit on Apex 4 interactive reports?
There was a thread on this previously but now archived,
group by only allow 3 columns.
May I ask is this limit removed or more columns allowed in the latest Apex (4.2.4?) ?
Thanks,
John
john2013 wrote:
There was a thread on this previously but now archived,
group by only allow 3 columns.
May I ask is this limit removed or more columns allowed in the latest Apex (4.2.4?) ?
The answer is still no. As pointed out previously, a patch release (only the final digit of the version number is incremented) will only include bug fixes, not enhancements.
You can easily find out about the latest version of APEX for yourself by creating an account on apex.oracle.com, or by reading the documentation.
Similar Messages
-
How to create a fixed-width column within an APEX 4 interactive report?
This thread is a follow-up to {message:id=9191195}. Thanks fac586.
Partial success: The following code provided by fac586 limits the column width of the Apex 4 interactive report column as long as the column data contains whitespace within a Firefox 3.6 browser:
<pre class="jive-pre">
<style type="text/css">
th#T_DESCRIPTION {
width: 300px;
td[headers="T_DESCRIPTION"] {
width: 300px;
word-wrap: break-word;
</style>
</pre>
Notes:
1. The code above is put into the HTML header section for the page.
2. T_DESCRIPTION is defined as VARCHAR2(2000).
3. The code above works within the Firefox 3.6.12 browser but does not work within the Internet Explorer 7.0.5730.13 browser.
I tried adding "float: left;":
<pre class="jive-pre">
<style type="text/css">
th#T_DESCRIPTION {
width: 300px;
td[headers="T_DESCRIPTION"] {
width: 300px;
word-wrap: break-word;
<font color="red"> float: left;</font>
</style>
</pre>
Notes:
1. "float: left;" does not require whitespace and successfully splits the column between characters in lieu of whitespace.
2. "float: left;" shrinks the cell height and allows the page background to show through... couldn't determine how to fix this.
3. The code above works within the Firefox 3.6.12 browser but does not work within the Internet Explorer 7.0.5730.13 browser.
I've done some more research, but I still haven't discovered how to create a fixed-width column within an APEX 4 interactive report that displays properly within an Internet Explorer 7 browser.
Any ideas and help will be appreciated.Thanks for your help with this!
<pre class="jive-pre">
what theme are you using?
</pre>
A customized version of theme 15.
<pre class="jive-pre">
Floating a table cell makes no sense (to me anyway).
</pre>
You are correct. I was just trying a different approach ... trying to think out of the box.
<pre class="jive-pre">
Think you'll need to create an example on apex.oracle.com with sample data
if there are any further problems.
</pre>
Great suggestion! The code your provided works in the Firefox 3.6.12 browser, but still doesn't work within my Internet Explorer 7.0.5730.13 browser.
UPDATE:
I have recreated the problem at apex.oracle.com, you can use the following information to check it out:
URL: http://apex.oracle.com/pls/apex/f?p=43543:100::::::
Workspace: IR_FIXED_WIDTH_COLS
Username: GUEST
Password: Thx4help
Application: 43543 - CM_RANDY_SD
Note: Table name is TEST_DATA
The following code provided by fac586 works in both Firefox 3.6 and IE7 using default theme "21. Scarlet" at apex.oracle.com; however, it doesn't work when I use a copy of our customized theme "101. Light Blue":
<pre class="jive-pre">
<style type="text/css">
.apexir_WORKSHEET_DATA {
th#T_DESCRIPTION {
width: 300px;
max-width: 300px;
td[headers="T_DESCRIPTION"] {
max-width: 300px;
word-wrap: break-word;
</style>
<!--[if lt IE 8]>
<style type="text/css">
/* IE is broken */
th#T_DESCRIPTION,
td[headers="T_DESCRIPTION"] {
width: 300px;
</style>
<![endif]-->
</pre>
Any idea what in the theme could be causing the fixed width column to be ignored in IE 7?
Edited by: CM Randy SD on Dec 7, 2010 11:22 AM -
APEX 5 Interactive Report Link Hidden Column Pivot Report
Hi,
i have some interactive report (on table demo_orders)
If i put a link on, lets say USER_NAME and pass parameter, lets say #CUSTOMER_ID#, i can see
the value substituted correctly in the report link.
Using the pivot feature, e.g.:
Pivot-Coumns:
customer_id
Rowcolumns:
Order_id,
User_name.
Functions:
Sum - Order Total
the substitution doesnt seem to work anymore, the link looks like this:
f?p=43666:9:28969915122817::NO:RP:P9_CUSTOMER_ID:#CUSTOMER_ID#
a demo is there:
https://apex.oracle.com/pls/apex/f?p=43666:9
(using open door credentials)
thanks,
geraldHi Gerald,
Thank you for reporting the issue. This is logged as bug 20950850. We will look into fixing.
Regards,
Christina -
APEX 4 Interactive Report set font color of negative values to red
I have an interactive report with several columns containing numerical values. If the value is negative, I want the font color to be red. Can someone help me with this process please.
Application Express 4.1.1.00.23
Thanks!
ChrisHi,
Use build in highlight
http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/ir_using.htm#sthref1343
Then save report default layout
http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/ir_using.htm#CHDDDBCG
Regards,
Jari
My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai -
Variable or Substitution String in Interactive Report Filter
Background: I have an application that has a number of customized Interactive Reports where the Filter on the reports is set to a custom company name. When I install the application, I do not want to go through the reports and change the filter for the new company's name. The filters I need to change are all set by LOVs.
Question: Is there a way that I can do one of the following:
- associate a Filter with a Variable or Substitution String such that I can set that variable or string on login and then the user always sees the correct Filter displayed in the Interactive Report?
- or is there a code method to update a sql apex table behind the scenes to reset the Filter to the new value. So that I could run that after installation as part of a customization / set-up time?
System Info: 4.1.0.00.32
Thanks,
Stephen
I used the IR_FILTER function, and while it allowed for a new filter to be set. It did not save the filter after logout or for other users accessing the Primary report. I could not find a SAVE Interactive Report function. So, my question still stands on looking for a method to set and save Filters programatically.
Edited by: slsmith on Apr 19, 2012 8:07 PMHi,
I don't have access to an Apex 3 environment to check this, but I think that the Apex 4 Interactive Reports save the filters slightly differently and an attempt to mimic that functionality using IR conditions would fail.
The only alternative I can think of right now is to have an additional column that returns 0 or 1 - eg:
SELECT FIELD1,
FIELD2,
FIELD3,
CASE WHEN (FIELD1 IS NULL OR FIELD2 IS NULL OR FIELD3 IS NULL) THEN 1 ELSE 0 END INCLUDE_NULLS
FROM YOURTABLEand then apply a filter to INCLUDE_NULLS = 1
Andy -
Default Style Column Breaking in an Interactive report
In a normal SQL report there are two types of column break formatting:
1) Default Breaking Format e.g.
aaa 123
456
bbb 789
123
2) Repeat Headings e.g.
aaa
123
456
bbb
789
123
Interactive reports seem to only implement Repeat Headings . Is it possible to break columns in an IR report using "Default Breaking Format"? If so how?
thanks
PaulPJB wrote:
Is it possible to add conditional column formatting in an Interactive Report in Apex 4.1? I've found numerous examples for older versions using the standard (classic) report, but I haven't found any with the new Interactive Report. Is this possible? and if so, can someone point me in the direction of some documentation or examples?
Oracle Application Express (APEX)
As interactive reports lack the HTML Expression feature of standard reports, the simple way to do this unfortunately requires violating the separation of concerns and generating structural (a <tt>span</tt> element) and presentational (an in-line style sheet) aspects in the query:
select
⋮
, case
when trunc(calling_date,'DD') = trunc(sysdate,'DD')
then
'<!-- ' || to_char(calling_date, 'YYYYMMDD') || ' --><span style="color: #3399FF;">' || to_char(calling_date) || '</span>'
else
'<!-- ' || to_char(calling_date, 'YYYYMMDD') || ' --><span>' || to_char(calling_date) || '</span>'
end calling_date
⋮For number/date columns to be properly sortable, the leading edge of the column must be an HTML comment that provides the required sort order using character semantics, as shown here.
The Display As column attribute for such columns must be set to Standard Report Column.
This method has side effects: some IR filters won't work; aggregate calculations can't be applied to the column; and report exports contain the HTML rather than the expected value.
Other approaches involve using Dynamic Actions/jQuery/JavaScript, or using the built-in highlight as suggested above, then saving the highlighted report as the default. -
Conditional Column Formatting in an Interactive Report?
Is it possible to add conditional column formatting in an Interactive Report in Apex 4.1? I've found numerous examples for older versions using the standard (classic) report, but I haven't found any with the new Interactive Report. Is this possible? and if so, can someone point me in the direction of some documentation or examples?
I simply want to change the color of the text depending on whether a column has a value (eg. Error or Problem).
ThanksJB wrote:
Is it possible to add conditional column formatting in an Interactive Report in Apex 4.1? I've found numerous examples for older versions using the standard (classic) report, but I haven't found any with the new Interactive Report. Is this possible? and if so, can someone point me in the direction of some documentation or examples?
Oracle Application Express (APEX)
As interactive reports lack the HTML Expression feature of standard reports, the simple way to do this unfortunately requires violating the separation of concerns and generating structural (a <tt>span</tt> element) and presentational (an in-line style sheet) aspects in the query:
select
⋮
, case
when trunc(calling_date,'DD') = trunc(sysdate,'DD')
then
'<!-- ' || to_char(calling_date, 'YYYYMMDD') || ' --><span style="color: #3399FF;">' || to_char(calling_date) || '</span>'
else
'<!-- ' || to_char(calling_date, 'YYYYMMDD') || ' --><span>' || to_char(calling_date) || '</span>'
end calling_date
⋮For number/date columns to be properly sortable, the leading edge of the column must be an HTML comment that provides the required sort order using character semantics, as shown here.
The Display As column attribute for such columns must be set to Standard Report Column.
This method has side effects: some IR filters won't work; aggregate calculations can't be applied to the column; and report exports contain the HTML rather than the expected value.
Other approaches involve using Dynamic Actions/jQuery/JavaScript, or using the built-in highlight as suggested above, then saving the highlighted report as the default. -
Interactive Report Download to CSV limit is 65535 in APEX 3.2
Hello ,
I have an IR report in APEX 3.2 that returns around 75,000 rows . I have set the maximum row count in the report attributes under Pagination to 200,000 rows.
Despite this when I download the report to CSV, only 65535 rows are downloaded .
Is this a known bug with APEX 3.2 ? can someone please share the link if this bug is documented.
If not, Is there some other attribute I need to change to increase the download limit ?
Thanks,
Dippy
Edited by: Dippy on Jan 7, 2011 1:59 PMHi Tony,
Thanks for the reply . I have adjusted maximum row count to 100,000, even then I can download only 65535 .
I have around 12-15 Interactive Reports(each with different Query) and I do not want to write a custom download procedure for each report and also the application is in production.
I just want to understand(confirm) if it is a existing bug (3.2) , if there is any patch that will solve this or if there is a setting somewhere that I have missed.
Can you please check with some other query on your 3.2 installation ?
I ran a test on
select rownum
from all_objects where rownum < = 80000Norma report I was able to download all the rows but IR stopped at 65535
Thanks,
Dippy
Edited by: Dippy on Jan 10, 2011 11:33 AM -
Between operator for group by date in Apex Interactive Reports
Hi,
In the interactive reports filter, i couldn't find the 'between' operator for date field (got a 'group by date' in my sql query (source). I am just wondering, Is it beacuse of the group by date clause?. Is there any way to show the 'between' operator in the interactive reports filter.
ThanksI just opened an existing IR style report, went to actions, filter, selected a date column and found between at the bottom of the list of values.. Are you sure the date you are trying to filter on is a true date column?
Thank you,
Tony Miller
Webster, TX
What if you really were stalking a paranoid schizophrenic... Would they know?
If this question is answered, please mark the thread as closed and assign points where earned.. -
Interactive report "group by" endsum is only a page-sum!
Interactive report "group by" endsum (total for a numeric column) is only the sum of the values of the last page! Is this a bug?
You can test on the page: http://apex.oracle.com/pls/otn/f?p=1949:1 User/password = apex/apex
You see a sample - as png picture - on the page: http://progkor.inf.elte.hu/a/GroupByEndSum.png
Albertjohn2013 wrote:
Anybody installed the latest APEX? i believe it's 4.2.3.
You can find out for yourself by requesting a workspace on apex.oracle.com, which always runs the latest production release.
Could you please tell me
is the limitation for interactive report "group by" action increased? (3 columns max for my 4.2 version)
No. Patch releases like 4.2.3 are never likely to include significant changes in functionality. They only provide bug fixes.
I consider this is a major drawback...
Interactive reports follow the 80/20 rule. They satisfy 80% of the requirements of 80% of users 80% of the time. If your requirements fall into any of the remaining 20% categories then you have to build something yourself. APEX is a development tool after all... -
Interactive Report question-New to Apex
Hi, I am new to Apex..I request your help in solving a prob..
I am trying to create an interactive report(IR) which has more than 160 columns..It says the max limit is 60(or 64) columns..I remember when I was just starting to build the app it did allow me to create the report with 160+ columns but I didnt want to start with IR..My entire application has been built and this is the only thing that has to be done..Is there anyway to create an IR with 160+ columns now that I am almost finishing up the app..
(just a thot-may be create another app with the IR and then import that page-if you think that will work plz guide me on how to do it)
Regards,
RHi R,
I had the same thought; if it's possible to create a new appl with IR with 160+ columns then do so.
After creating a new appl go back to the original appl, open one of the pages, click the copy button on top of the page, click 'Page in another application', select the new appl with the IR, then select the page with IR ...... follow the steps
Kind regards
Mel -
Interactive Report Returns Misleading Data Because of ROWNUM Limit
Hi, We have been relying on widespread use of Interactive Reports for internal Business Intelligence in our company, and they have been very popular. However, a user found a data discrepancy when sorting a report because the ROWNUM limit of :APXWS_MAX_ROW_CNT is applied before the user requested ORDER BY clause. We are running Apex version 3.2.0.00.27 on a 10.2.0.4 database.
The IR query returns quotes from our custom quoting application, and the default number of rows is 100 (and is changeable by the user). The user wanted to see the most recent quotes, so he selected the "Creation Date" column header and simply applied a descending filter. The most recent quote returned was dated last week. However, if he applied an additional filter of "creation date in the last week", he did see today's date and mostly current quote rows.
When I ran debug on his IR query, I can see that the ROWNUM limit is applied first, then the ORDER BY. This means that the database fetches the first x rows that match the supplied parameters, and then orders the result set. However, this is not what the user meant, he wanted the first rows of an ordered set.
Here's the debug query output (with the middle removed because it's long):
select
"QUOTE_NUMBER",
"CUSTOMER",
"CUST_CONTACT",
"QUOTE_STATUS",
"TOTAL_PRICE",
"TOTAL_WEIGHT",
"WHSE",
"SHIP_DATE",
"PO_NUMBER",
"ORACLE_REFERENCE",
"INSIDE_SALESREP",
"OUTSIDE_SALESREP",
"CREATION_DATE",
"ID",
"ORA_CUST_ID",
"CUST_CONTACT_ID",
count(*) over () as apxws_row_cnt
from (
select * from (
SELECT
kh.id,
kh.ora_cust_id,
kh.quote_number quote_number ,
kh.cust_contact_id,
k2_customers_pkg.get_contact(cust_contact_id) cust_contact ,
k2_customers_pkg.get_cust_name(kh.ora_cust_id)customer,
k2_customers_pkg.get_cust_number(ora_cust_id)
( ......... more sql goes here )
AND k2_customers_pkg.get_outside_salesrep_number(kh.ora_site_id)||'%' LIKE :P64_OUTSIDE_SALES||'%'
AND kh.whse_code like :P64_WAREHOUSES||'%'
AND ((1=
CASE WHEN :P64_ITEM_ID IS NULL THEN
1
ELSE
(SELECT 1
FROM k2_quote_lines kl
JOIN k2_ingredients ki
ON ki.quote_line_id=kl.id
WHERE (1=1
AND kh.id=kl.quote_id
AND ki.ora_item_id=:P64_ITEM_ID AND ROWNUM=1))
END)
OR 1=(
SELECT 1 FROM k2_quote_lines kl WHERE kl.quote_id=kh.id AND kl.part_id=:P64_ITEM_ID AND ROWNUM=1
) r
) r where rownum <= to_number(:APXWS_MAX_ROW_CNT)
order by "CREATION_DATE" DESC,"QUOTE_NUMBER" DESCHowever, what the user wanted is to have the ORDER BY applied first, then the limit. I realize performance may suffer, but users are now alarmed that they cannot trust these reports. I'm tempted to log a SR with Oracle on this.
Any thoughts on this? Is this fixed in 4.0?
Thank you, Wolf MoritzHi, thanks for the response. I did spend a bit of time on trying to trick the interactive report into reversing the rownum and order by clauses. But ultimately I didn't see how to do it. Whatever query I paste into the source of the report is then wrapped in a couple of containing select statements which first applies the rownum limit and then the order by clause (if the user selects any columns to sort by).
So this query:
select * from scott.empBecomes:
select
"EMPNO",
"ENAME",
"JOB",
"MGR",
"HIREDATE",
"SAL",
"COMM",
"DEPTNO",
count(*) over () as apxws_row_cnt
from (
select * from (
select * from scott.emp
) r
) r where rownum <= to_number(:APXWS_MAX_ROW_CNT)
pAnd a user applied sort becomes:
select
"EMPNO",
"ENAME",
"JOB",
"MGR",
"HIREDATE",
"SAL",
"COMM",
"DEPTNO",
count(*) over () as apxws_row_cnt
from (
select * from (
select * from scott.emp
) r
) r where rownum <= to_number(:APXWS_MAX_ROW_CNT)
order by "DEPTNO" DESCIf I could somehow bind to some item for the order by string I might then be able to trick the report into ordering the result set first (which I know can't really be done unless using dynamic sql). Forcing an initial hard coded order by isn't practical on this particular report, although I do see why that might work in some circumstances.
Side note on the oddly placed case statement: This interactive report has some page level "meta" parameter items, and that case statement was meant as a way to avoid an exists statement on a particularly large table if no value was submitted for P64_ITEM_ID. It's been a long time since we deployed the report, so it's probably worth testing some explain/autotrace plans on this case statement vs an exists statement in the predicate. But for now it works!
Thanks, Wolf -
How to set different default interactive reports for different user groups?
I'm probably overlooking an obvious solution, but how do I set different default interactive report for different user groups?
For the same interactive report, I want one set of users to see a default where the default filter is based on column X. However, another group of users doesn't have authorization to see that column so I need to set the default filter to something else for them.
ThanksYou can set a filter on a report in a URL - would that help? I think with apex 4.x you can also link to a saved default report or alternative report...
-
Interactive report Group By functions support Number
Dear All,
I developed an interactive report that retrives its data from a package. Now i want to use a group by and use Max function.Since my columns' types are STRING, I cant use Max function.Does anyone know any solution for that?
MAny thanks in advance.
Best regards,
Zahrajohn2013 wrote:
Anybody installed the latest APEX? i believe it's 4.2.3.
You can find out for yourself by requesting a workspace on apex.oracle.com, which always runs the latest production release.
Could you please tell me
is the limitation for interactive report "group by" action increased? (3 columns max for my 4.2 version)
No. Patch releases like 4.2.3 are never likely to include significant changes in functionality. They only provide bug fixes.
I consider this is a major drawback...
Interactive reports follow the 80/20 rule. They satisfy 80% of the requirements of 80% of users 80% of the time. If your requirements fall into any of the remaining 20% categories then you have to build something yourself. APEX is a development tool after all... -
Controlling # columns in interactive report's Group By format?
Hi,
I have an interactive report with columns category, attribute1 to attribute 6.
I want to generate a report of sum of attributes 1-6, grouped by category column.
I see the group by option of interactive report is limited to only 3 columns. Is there a setting I can override to get more than 3 columns in my group by?
Thanks,
Zakia.use pivot table plugin read related blog ORA-00001: Unique constraint violated: Pivot Table plugin for Apex
and use it in report.
Maybe you are looking for
-
IPod mini connects, but I can't store music on it (german screens)
I got a problem, i resettet the ipod, downloaded the latest software for it and my iPod and installed it.. If i try to store music on it i get a message like this: [img]http://666kb.com/i/ag9a4thggiyu7exq1.jpg[/img] in english: The file XXXXX can not
-
I recently updated to the OS X Maverick and the keyboard just stopped functioning after working fine the first day. Pressing any key just produces a ding, but no mark. Pressing the return key produces a black dot as if you were putting in a confid
-
Every time I try to start a new message in iMessage on my Mac Mini (OS is Yosemite) it crashes. Any ideas on what might be wrong? Here is report that comes up after crash. Process: Messages [504] Path: /Applications/
-
yesterday I purchased a new ipod classic to replace one that had worn out. The price was $179. I wonder if I am eligible for the extended warranty for $59. Can't seem to navigate through the apple support option to get answer. Anyone know?
-
hello! i need help with my i pad 3 i cant type anything anymore .only it shows a picture with a cable and the i tunes sign now at i tunes says that i have to clean the i pad up...that means i will loose all my pictures there???i have about 1500 pictu