Apex 3.0 bug? - report add column
Hi
I do not know about I have to post this on the "Comment apex 3.0 page" or here.... May be I have found a bug... please look at this
When I create a Report with the Wizard, and add som column of at table to the report. Afterwards I add some more columns from the same table (on the report -> Query Definition -> "Add/remove columns".
When I try to run the page I got the error:
failed to parse SQL query:
ORA-00918: column ambiguously defined
I see in the qurey, there is add one more from statment, but it is the same as the first statment.....? I know it is the same table I add a column from but... or is it just me...
"DEMO_CUSTOMERS"."CUSTOMER_ID" "CUSTOMER_ID",
"DEMO_CUSTOMERS"."CUST_STREET_ADDRESS1" "CUST_STREET_ADDRESS1",
"DEMO_CUSTOMERS"."CUST_STREET_ADDRESS2" "CUST_STREET_ADDRESS2",
"DEMO_CUSTOMERS"."CUST_CITY" "CUST_CITY",
"DEMO_CUSTOMERS"."CUST_STATE" "CUST_STATE",
"DEMO_CUSTOMERS"."CUST_POSTAL_CODE" "CUST_POSTAL_CODE",
"DEMO_CUSTOMERS"."PHONE_NUMBER1" "PHONE_NUMBER1",
"DEMO_CUSTOMERS"."PHONE_NUMBER2" "PHONE_NUMBER2",
"DEMO_CUSTOMERS"."CREDIT_LIMIT" "CREDIT_LIMIT",
"DEMO_CUSTOMERS"."CUST_EMAIL" "CUST_EMAIL",
"DEMO_CUSTOMERS"."CUST_FIRST_NAME" "CUST_FIRST_NAME",
"DEMO_CUSTOMERS"."CUST_LAST_NAME" "CUST_LAST_NAME"
FROM
"#OWNER#"."DEMO_CUSTOMERS" "DEMO_CUSTOMERS",
"#OWNER#"."DEMO_CUSTOMERS" "DEMO_CUSTOMERS"
Query is:
SELECT
"FLOWTYPECATEGORIES"."FLOWTYPECATEGORY_ID" "FLOWTYPECATEGORY_ID",
"FLOWTYPECATEGORIES"."FLOWTYPECATEGORY" "FLOWTYPECATEGORY",
"FLOWTYPECATEGORIES"."VALID" "VALID",
"FLOWTYPECATEGORIES"."TREND" "TREND"
FROM
"#OWNER#"."FLOWTYPECATEGORIES" "FLOWTYPECATEGORIES",
"#OWNER#"."FLOWTYPECATEGORIES" "FLOWTYPECATEGORIES"
there is table name duplicated.
When I remove new column "TREND" then query is:
SELECT
"FLOWTYPECATEGORIES"."FLOWTYPECATEGORY_ID" "FLOWTYPECATEGORY_ID",
"FLOWTYPECATEGORIES"."FLOWTYPECATEGORY" "FLOWTYPECATEGORY",
"FLOWTYPECATEGORIES"."VALID" "VALID"
FROM
"#OWNER#"."FLOWTYPECATEGORIES" "FLOWTYPECATEGORIES"
and everything is OK.
Similar Messages
-
Oracle APEX 4.0 - Interactive Report - Table Column Filter Issue
Environment: Oracle APEX 4.0 - Interactive Report - Table Column header Filter Issue
We have developed an interactive report using Oracle APEX 4.0, which contains a record count of around 3,000 Rows. All the rows values are unique in nature. When we try to filter the same with the help of column header filter option available in the interactive report,We get only 1000 records.
Could some one help us, why this behaviour under APEX Table Column Header Filter as if it does not display beyond 1000 distinct values.
Is there a way or workaround on how to get all the records in the column header filter?
Thanks in advance.
KrishHi
Thanks for the advice and this issue has been moved to the below URL
Oracle APEX 4.0 - Interactive Report - Table Column Filter Issue Posted: No
Krish -
Oracle APEX 4.0 - Interactive Report - Table Column Filter Issue Posted: No
Environment: Oracle APEX 4.0 - Interactive Report - Table Column header Filter Issue
We have developed an interactive report using Oracle APEX 4.0, which contains a record count of around 3,000 Rows. All the rows values are unique in nature. When we try to filter the same with the help of column header filter option available in the interactive report,We get only 1000 records.
Could some one help us, why this behaviour under APEX Table Column Header Filter as if it does not display beyond 1000 distinct values.
Is there a way or workaround on how to get all the records in the column header filter?
Thanks in advance.
KrishKrish,
Interactive report has hard coded limit to display 1000 rows of column filter LOV for performance. Unfortunately, the limit cannot be changed. The workaround is to define a Column Filter LOV for the column instead of using "Default Based on Column Type".
Regards,
Christina -
Bug report: Reordering columns
Version 2.2
Came across a major bug in the reorder columns feature in Report Attributes
1. Create a report region with the following query
select
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15
from dual2. Click on Report Attributes
3. Uncheck the Show checkbox on columns 5 and 6
4. Click Apply Changes
5. Click the Down arrow on Column 15 to move it to the first position
6. Click on the Edit icon on Column 15 (or any other column) to go the Column Attributes page
7. Without changing anything, click Apply Changes on the Column Attributes page to come back to Report Attributes
Now, instead of Columns 5 and 6 having their Show checkbox unchecked, columns 4 and 5 have it unchecked!
[I have a report region with 2 dozen fields and a bunch of internal PK fields are not shown on the report so they had their Show checkbox unchecked. I re-ordered a bunch of fields and ran the report and was shocked to see all the internal fields exposed the the real fields hidden!]
ThanksCarl:
Any update on this? What is the cause of the bug? Is there another workaround?
[It is very easy to forget to click Apply Changes after using the arrows to move the columns up and down and instead click on the Edit Column attributes icon and boom, that just messed up the columns' visibility on the report!]
Apex reports in general and the Report Attributes page is probably one of the most heavily used pages in the Builder so I think this is a critical issue.
Thanks for any update. -
RFUMSV00 tax report - add column numbers
Hello
Is it possible to add for every column in RFUMSV00 (transaction S_ALR_87012357) a sequential number (which will correspond to numbers in legaslation vat report) ?
Something like this:
1 2 3 4
Invoice nr. Customer Total ID nr.
11111 sdn forum 1000 DE111111Hi (again)
After reading the SAP note number 1628714 ( https://websmp107.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=1628714&_NLANG=E ), I think that there isn't an SAP-standard solution.
Best regards.
Paco M -
RFUMSV00 - tax report - add columns numbers
Hello
Is it possible to add for every column in RFUMSV00 (transaction S_ALR_87012357) a sequential number (which will correspond to numbers in legaslation vat report) ?
Something like this:
1 2 3 4
Invoice nr. Customer Total ID nr.
11111 sdn forum 1000 DE111111No Body responded very strange !!!!!
-
OIM report / add column to working report
Hi,
I need some help with OIM reports.
Cannot add a column to a working report. What I have done is that I have changed the Stored procedure and then changed the Report XML Metadata to include that column.
The report just turns out to be blank after the changes made.
A snippet of the change to the Stored Procedure(added line in bold):
-- contruct the query
strColumnList := ' tusracc.system as "SYSTEM", ' ||
' vifs.ifsemp_employee_id as "EMP_ID", ' ||
' vusr.usr_first_name || '' '' || vusr.usr_last_name as "EMP_NAME", ' ||
*' vusr.usr_status as "USR_STATUS", ' ||*
' tusracc.attribute as "ATTRIBUTE", ' ||
' tusracc.attrvalue1 as "ATTRVALUE" ';
strFromClause := ' v_users vusr, v_ifsusers vifs, tmp_user_access tusracc ';
strWhereClause := ' tusracc.usr_key = vusr.usr_key ';
strWhereClause := strWhereClause || ' and vusr.usr_key=vifs.usr_key(+)';
IF strsortcolumn_in IS NULL THEN
strOrderByClause := ' 2 ' ;
ELSE
strOrderByClause := strsortcolumn_in ;
END IF;
IF strsortorder_in = 'DESC' THEN
intSortDirection_in := 0;
ELSE
intSortDirection_in := 1;
END IF;
-- run the report query
XL_SPG_GetPagingSql(strColumnList,
strFromClause,
strWhereClause,
strOrderByClause,
intSortDirection_in,
intStartRow_in,
intPageSize_in,
select_stmt
OPEN csrresultset_inout FOR select_stmt;
ELSIF intdocount_in = 2 THEN
OPEN csrresultset_inout FOR select dummy from dual;
END IF;
In the report XML Metadata I have added a line for the USR_STATUS column(change in bold):
<Report layout="Tabular">
<StoredProcedure>
<InputParameters>
<InputParameter name="v_resource_name" parameterType="varchar2" order="1" fieldType="LookupField" fieldLabel="report.ResourceAccessList.label.resourceName" required="true">
<ValidValues lookupCode="Lookup.Reports.Objects"/>
</InputParameter>
</InputParameters>
</StoredProcedure>
<ReturnColumns>
<ReturnColumn name="SYSTEM" label="customer.report.system" display="true" position="SectionHeader" primarySort="true" filterColumn="false" />
<ReturnColumn name="EMP_ID" label="customer.report.emp_id" display="true" position="SectionHeader" primarySort="false" filterColumn="false" />
<ReturnColumn name="EMP_NAME" label="customer.report.emp_name" display="true" position="SectionHeader" primarySort="false" filterColumn="false" />
*<ReturnColumn name="USR_STATUS" label="global.label.Status" display="true" position="SectionHeader" primarySort="false" filterColumn="false" />*
<ReturnColumn name="ATTRIBUTE" label="customer.report.attribute" display="true" position="SectionHeader" primarySort="false" filterColumn="false" />
<ReturnColumn name="ATTRVALUE" label="customer.report.value" display="true" position="SectionHeader" primarySort="false" filterColumn="false" />
</ReturnColumns>
</Report>
Anything that I have missed to do? We have restarted the app server, but it still doesn't work.
Regards,
ThomasArghle.....
I found the reason for the blank result page with this...
apparently we are not allowed to name a resulting column in a stored procedure to USR_STATUS, silent fail :/
When I renamed this to EMP_STATUS it all works as intended...
Duh!
I wonder in where it says not to do this... -
What is Maximum No. of columns in APEX 3.2 Interactive Report
Hi All,
Is there any limitation on maximum number of columns in a APEX (3.2) Interactive Report page, I have a report containing more than 200 columns. I am tyring to add another 25 new columns and found this error msg: ORA-06502: PL/SQL: numeric or value error: character string buffer too small.
I can add 5-6 new columns and it's runing okay but after that the msg. is coming.A query 225 columns wide? Is that not a bit excessive? I can't imagine that being particularly user-friendly. Perhaps it might be worth considering some sort of master->detail type report with the relevant filters for content - that should give your users something a mite bit more manageable.
-
Add Columns to Updatable Report
Hello,
i need some help regarding an "Updatable Report".
My goal is to have some SelectLists in comluns named "2008_05", "2008_08", ....."2010_01", "2010_04".
The user must have the option to add more cloumns.
My process on submit is:
declare
SQL_STRING varchar2(4000);
begin
SQL_STRING := 'ALTER TABLE TAB_REPORTS ADD "' || :P3700_COLUMN_NAME || '" varchar2(100)';
EXECUTE IMMEDIATE(SQL_STRING);
return;
end;At the moment I have this code for a standard report returning a SQL query:
declare
q varchar2(4000);
begin
q := 'SELECT R_ID, PLANT_NAME, UNIT_NO, R_TSO_NO TSO_NO';
For i in (SELECT * FROM USER_TAB_COLUMNS
WHERE table_name = 'TAB_REPORTS'
AND column_name like '2%')
loop
q := q || ', ';
q := q || 'APEX_ITEM.SELECT_LIST_FROM_LOV (1, ';
q := q || chr(34);
q := q || i.column_name;
q := q || chr(34);
q := q || ', ';
q := q || chr(39);
q := q || 'LOV_QER';
q := q || chr(39);
q := q || ', ';
q := q || 'null';
q := q || ', ';
q := q || chr(39);
q := q || 'Y';
q := q || chr(39);
q := q || ') as "';
q := q || i.column_name;
q := q || '"';
end loop;
q := q || ' FROM TAB_REPORTS ';
q := q || ', TAB_SD';
q := q || ', TAB_CONTACT';
q := q || ' WHERE TSO_NO = R_TSO_NO';
q := q || ' AND CON_PLANT_NAME = TAB_SD.PLANT_NAME';
q := q || ' AND R_TSO_NO = decode(:P3700_FILTER_PLANT_NAME, ';
q := q || chr(39);
q := q || 'all';
q := q || chr(39);
q := q || ', R_TSO_NO, :P3700_FILTER_PLANT_NAME)';
q := q || ' ORDER by PLANT_NAME, UNIT_NO';
return q;
END;The function returning a SQL is not working for an updatable report.
It has to be static i think.
Any solutions or ideas?
Thx & greetings
ChrisProblem solved. See [this post|Add columns to CV04N report;
Regards.
Gregory. -
How to add column to report from the same table? Gives error now
Steps to reproduce:
Build a report on a table with easy report, select all columns
Add column to the table
Edit report and add column (one has to click Show Related Tables Only: No to view the same table!)
Report will give error as it will be build as
SELECT ... FROM table1, table1AH HAAA!!!!
And I was afraid to convert from the "SQL (Structured Query)" to "SQL". Probably because I blew up my other reports...
Thanks! -
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?
ThanksWell, 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 -
Custom pagination for APEX 4.2 interactive report using Page Zero
Hi,
I want to implement an «Custom pagination for APEX 4.2 interactive report» using a «page zero».
I recently migrate from Apex 3.1 to Apex 4.2 and my «Custom pagination for APEX 3.1 interactive report» using a «page zero» is not working any more.
So now I try to adapt an excellent example of Jari Laine for 4.0 but using a page zero.
I put the code JavaScript to Page zero but I must create an dynamic action to fire only for an interactive report region.
It’s a good idea?
Thank youThought I would try once more with my DatePicker question.
On the Apex.Oracle.Com website I have created a 1 page application that has an Interactive Report.
[url http://apex.oracle.com/pls/apex/f?p=15655:1]
user = 'test'
password = 'test'
I have 2 questions :
(1) In IE7, press 'Actions', 'Filter'. On the Column dropdown list, select 'Order Timestamp'.
Notice the prompt icon to the right of the 'expression'. This should change to the Datepicker, but in IE7 it does not. Try the samething in Firefox or Chrome and the Datepicker will appear.
Is this a BUG, or does Apex 4.02 not support IE7 ?
(2) In Firefox or Chrome, where you can now see the Datepicker, you will notice that it is the new style picker, not the old style ( called 'classic' ). I want to change it so that it shows the 'classic' datepicker not the new, but cannot see how to do it, if indeed you actually can.
I would really appreciate it if someone could take a look and let me know if I am going mad, or if we need to get all our users onto IE8. We have now gone live with Apex 4.02 and need to resolve these issues.
Thanks in advance.
Edited by: DooRon on 10-Mar-2011 05:13 -
Report Template, Column Template, Column Template Condition
I have a template, Standard Revenue from Standard, I have cloned for a Classic report.
Application ###>Shared Componets>Templates>Edit Report Template
Column Template 1 looks like:
<td#ALIGNMENT# headers="#COLUMN_HEADER_NAME#" class="t1data_revenue">#COLUMN_VALUE#</td>
I have set Column Template 1 Condition to:
"Use based on PL/SQL expresiion"
I have tried several expression in "Column Template 1 Expression" - last one is:
case
when #COLNUM# <= 2 then false
when #COLUMN_VALUE# < 0 then true
else false
end case;
I am trying to use the value in "Column Template 2" when to value of the #COLUMN_VALUE# < 0
where "Column Template 2" is :
<td#ALIGNMENT# headers="#COLUMN_HEADER_NAME#" class="t1data_revenue_negative">#COLUMN_VALUE#</td>
I get the following error when I run the page:
ORA-01403: no data found
and
ERR-1025 Error processing PLSQL expression. case when #COLNUM# <= 2 then false when #COLUMN_VALUE# < 0 then true else false end case;
Any help will be appreciated.
thank you,
jwmHi,
That's actually easier. See: [http://apex.oracle.com/pls/otn/f?p=267:60]
The SQL for both reports is:
SELECT EMPNO, ENAME, NVL(SAL,0) SAL, NVL(COMM,0) COMM
FROM EMP
ORDER BY EMPNOThe SAL and COMM columns have been formatted using:
999G999G999G999G990D00For the Row Template, the Row Template 1 setting contains an empty space (you have to have something in there otherwise Apex adds back in a default row containing five cells!). The condition for this is:
TO_NUMBER('#COMM#','999G999G999G999G990D00') < 100The template will see the data as a string, so we use the same number format to convert that string back into a number and compare this to 100. If we didn't use formatting on the numbers and we are sure that every row contained a number (hence the use of NVL()), then you could use:
#COMM# < 100Row Template 2 contains the format for the rows that need displaying:
<tr>
<td class="t18Data">#1#</td>
<td class="t18Data">#2#</td>
<td class="t18Data" style="text-align:right">#3#</td>
<td class="t18Data" style="text-align:right">#4#</td>
</tr>and is unconditional.
The only other settings on the Row Template are the Before Rows:
<table class="t18Standard" style="border-collapse:collapse; border:1px solid black;">
<tr>
<th class="t18ReportHeader">Empno</th>
<th class="t18ReportHeader">Ename</th>
<th class="t18ReportHeader" style="text-align:right">Sal</th>
<th class="t18ReportHeader" style="text-align:right">Comm</th>
</tr>and After Rows:
</table>Of course, you will note that the record counters at the bottom still show the number of records in both reports - as the SQL still outputs the same data, this doesn't change.
Andy -
Add column dinamically to listview
hi,
somebody know how can i add columns dinamically to a listview? i am going to
show data on these new columns.
thanks in advanced
Bruno MunozHi Andy,
A DB trigger can be created that accesses Apex Items? Or what do you mean? I didn't know that was possible.If so, does it check the session on it's own? because multiple instances could be running and in such case, there could be more than one value for the item. If it's possible to use an item's value with nv('Pnn_ITEMNAME')it could solve lots of problems :-)
About the other option, I understand that Hidden columns can't be accessed with apex_application.g_fnn(Row), and said column doesn't have to appear in the report.
If I can access an Item's value whith a Trigger and that value is the one from the user sending the request, that would be the ideal answer.
Thanks,
Marc
Edited by: MarcS on Nov 16, 2008 1:03 PM -
Hi,
This is a bug report, I think.
I have a one-column GridControl with mandatory column. Normally, DAC framework prohibits from navigation out of empty field and emits one of those DAC-1002 or DAC-603 errors. The only exception I noticed was a double-click on another row. In this case navigation allowed but an error is still produced.
Today I was playing with this GridControl and discovered that I can drag the yellow frame across rows. And here comes a bug - GridControl doesn't change the current row on InfoBus according to current selection marked by yellow frame.
In my case it brings the following problem: if the cursor is placed on the new empty row, user drags the cursor to another row and then tries to use any other navigation means except dragging, he gets a navigation error. DAC framework still thinks that the current row is the empty one and produces an error telling that the attribute cannot be empty.
Dev Team, any comments?
Regards,
VladimirHmm... Nobody answers. I'll try another variation of the same question.
DAC framework implicitly validates attributes on the base of Mandatory constraint in the Entity Object definition. Is it possible to set the level of this validation? For example, I want to conduct validation only when user navigates out of the row or the whole rowset, but not when he just leaves a field.
Regards,
Vladimir
Maybe you are looking for
-
WALMART SPOOF The following message has been sent to my cell phone twice.
The first time was in January 2012 (approx.). The next time was on the date and time shown below. The first time it was sent I diligently replied to the web site show and waited for further instructions. Nothing happened, blank screen. So I refreshed
-
How to setup usb card in pci express slot
how to setup a usb card in a pci express slot,
-
Windows 8.1, iOS 8.1.3, Itunes 12.1 64 bit, constantly get 'waiting for changes to apply' when trying to sync my new ipod touch. Downloaded latest version f itunes, and ipod software up to date. Really frustrated I can't sync my music! Please can som
-
Exclude single WBS in a Report
Hi Experts, I'm trying to exclude an WBS from a Cost report, using the multiple selection but it's not working. I would like to see all the planned cost of the project excluding all those cost under a specific WBS. Can anybody help me? Thanks!
-
Photoshop CS5 New Document - RGB as default
I work in the print industry, and do a fair share of copy + paste into a new photoshop document. My photoshop color settings are set as I need them (CMYK), but everytime I create a new document in Photoshop, it defaults to RGB, and I have to change i