No data found on Report based on a collection
Hi all,
I got a page with this 'after-header' process :
begin
if(apex_collection.collection_exists(p_collection_name => 'users')) then
apex_collection.delete_collection(p_collection_name => 'users');
end if;
apex_collection.create_collection_from_query(
p_collection_name => 'users',
p_query => 'select user_name from demo_users');
end;And then, I try to display the collection data in a report, like with this SQL statement.
select *
from apex_collections
where collection_name='users'I got a 'No data found' for this report... I try this very basic example to understand collections, and I don't know what I'm missing...
Thanks a lot
Dovik
Hi,
No problem
Check collection naming
http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/advnc.htm#CIHHCGGD
Have nice day
Br,Jari
Similar Messages
-
No data found in report csv or pdf output on first page load
No data found in report csv output on first page load. Report shows up on page, but no data found in csv or pdf output. I always need to submit the page and then it shows data in downloads. The page contains a form (read-only) with a report that references 4 page items by using something like the following:
and b.employee_no = v('P5_EMPLOYEE_NO')
and c.fisc_year_pk = v('P5_FISC_YEAR_PK')
and b.job_class = v('P5_JOB_CLASS')
and b.organization = v('P5_ORGANIZATION')
Again, report in the page shows up except there is no data in downloads. Can anyone help me solve this problem? I'm running Oracle APEX 4.2.1 in Oracle database 11gR2.
Thanks.Sounds like a classic session state issue.
You need to populate you page items using page rendering computations to ensure they're set to session state.
Or if the download is triggered from a button press, you need to ensure those page items are submitted to session state, perhaps via a PL/SQL action.
Scott -
Interactive Report Based On A Collection
Hi guys
Using Apex 3.2
I have a classic report based on a collection, which works fine.
I am now trying to create an interactive report based on the same query (collection), but no data is returned.
I there anything special I need to do with an interactive report.
Cheers
GusGo into Interactive Reports Actions Menu > Select Columns > Add all missing columns to right side and apply (Display In Report)
OR
Check interactive report attribute settings
Thanks -
Hi, I am new to Apex so please be clear with your answers. We use a report based on a view when I access the report in the application I receive "no data found" error. If test the query in SQL commands it works fine. If I check the view in object browser I see data. I am perplexed as to why I receive a no data found error on the front end. Any suggestions will be greatly appreciated. Thank you in advance.
Apex Version: 4.1.0.00.32
Newbie tryin to learn(Texas twang)Thank you for your quick response! Sometimes as a tech we look for the hard answer vs the easy one. One of the binding variables(P0:PLANS) was misspelled after correcting the issue we were able to see the report.
-
Show "No Applicable Data Found" for Report 0SD_C01_Q22
Hi Gurus,
I just activated BI Content Report, 0SD_C01_Q22 and it's relevant InfoSource, DataSource and so on. The data from R3 were loaded into the infoCube successfully.
However, it shows "No Applicable Data Found" when I executed the query.
I have tried to create a new query based on the same InfoCube but has NO limitation parameter. However the result was the same.
Can anyone consult out?
CheersHi my friends,
I have tested it with a really simple report that has no selection condition. But the result is the same.
Also, I have checked the data in infoprovider with LISTCUBE but the data are definitely available.
By the way, I test it with an account hazing profiles as SAP_ALL and S_A.SYSTEM. The super user account should have enough authorization.
So my friends, anymore ideas? Pls help out....
Cheers. -
Report export to csv - no data found in report
Hi all,
I've followed the steps to export my report to a csv file. In the Report Attributes, Report Export section I have:
Enable CSV output: Yes Separator: , Enclosed By:
Link Label: Export
Filename: Changes.xls
But when I open it in excel, no data found is the only test showing in cell A1.
Is there something else I need to do? I don't understand why it's not exporting my report - there is data on my screen in the report.
Thanks,
DaveDave,
Have a look in my blog:
http://deneskubicek.blogspot.com/2007/03/csv-export-problem.html
There is an explanation on how to avoid that.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://htmldb.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
Hide button if no data found in report
Hello,
I am using oracle 10g apex 3.2
I am displaying a report with print button.
What i want is if the report doesn't show any data i.e. no data found then i want to hide print button.
How to do this.
thanks
SwapnaHi Swapna,
In the print button's Condition, select condition type as 'EXISTS (SQL Query returns atleast one row)' and in expression1 copy and paste the report SQL.
Regards,
Sagay -
How to display a message when no data found in report
Hi all
i have report with few user parameters
when i run the report and no data found then i want a message
Please Guide
thanks And Reagds
Vikas SinghalHi,
one solution is to
1) create a summary column CS_COUNT where you count the number of records returned by your query (Function: count, Source:any field of your dataset Reset at:Report)
2) create a text area where you say for example "No records found...", and enclosing it in a frame.
3) Create format trigger for the frame like
IF :CS_COUNT = 0 THEN
return (TRUE);
ELSE
RETURN (FALSE);
END IF;
OR, if you launch your report from a form and you want a popup message, you can create a before report trigger like:
if :CS_count = 0 then
srw.message(1000, 'your message');
raise srw.program_abort;
return(false);
else
return(true);
end if; -
Strange problem: ORA-01403: no data found when report has a sort
Hi,
I have a report which behaves very strangely but only for one particular user. The report runs fine when no columns are set as sort-by in the report attributes. As soon as I try and set a column to sort (any column, it doesn't matter) this user gets the error message:
failed to parse SQL query:
ORA-01403: no data found
appear where the report should be on the page. The rest of the page displays OK. No other users are affected. If I remove the sort then the report is OK for this user (unsorted though!)
The report is a structured query with custom column headings, nothing unusual, quite basic. I have tried exporting and reimporting the page but it doesn't fix it. Same behaviour for this particular page in our test system as well.
I could rebuild the page but I'd rather know what is wrong in case it happens to some other region.
Thanks,
SteveSteve,
The reports engine stores the sort settings in the user preferences. This is done so that when you return to a report, it maintains the earlier sort settings. Like in your response to the HTML DB studio posting, you would keep your report sorted by "Created On" descending or ascending even when you come back another time. It's save to remove those preferences; all that's going to happen is that your users will see the report using the report's default settings the next time they go to that page. I will try to investigate this problem further, whatever additional information you can provide, will be helpful,
Marc -
Data Selection for report based upon a 'Prompt Value'
I want to report information in my report based upon a 'user input prompt value'
for example:
'Enter Shareholder Selection - A-Active, I-Inactive, B-Both Active and Inactive'
if the user enters 'A', the report selects only active shareholders
if the user enters 'I', the report selects only inactive shareholders
if the user enters 'B' the report selects all shareholders, active and inactive
the field in the database that this based upon is their total share value.
if this field is greater than zero (>0) they are considerd 'active'
if this field is equal to zero (=0) they are considered 'inactive'.
I have tried creating some type of filter, but am not having any luck.
I saw a few examples within the forums that I have tried without any luck....unfortunately most of the examples I've seen are base one only two choices.
I'm sure I need to create some type of 'independant varible' but am not sure how to do that either.
Any suggestions would be appreciated.
Thanks.Hi Daryl,
I Tried this unsuccessfully in DESKI . We can't Eliminate Rows having Empty Measure Values or Measure with 0 as values using Table Level Filter as FIlter can't FIlter rows based on Prompt value selection dynamically. Filters filter rows at a time and not based on 3 condition as Active, Inactive and Both. thus filters are of no use.
I Tried this in WEBI, and it is working perfectly you donu2019t have to create any Object in Universe, you can do it using function UserResponse() at report level.
Hence if you are comfortable using WEBI for Generating this report then Follow the steps.
1. Create Report With Name and Shares Object. It will display all Shareholder Names and No.of shares they hold.
2. Use Status Object in Query filter, use condition as u201CEqual Tou201D and Select prompt. It contains Active, Inactive and Both as values.
3. Report will Display all Shareholder names and No. of shares like 45, 789, 0, 4562 where 0 is inactive Shareholder and all other are active shareholder.
4. Create Variable using Formula.
=If(UserResponse("Enter Status:")="Active" And [Shares]>0;[Shares];If(UserResponse("Enter Status:")="Inactive" And [Shares]<=0;[Shares];If(UserResponse("Enter Status:")="Both";[Shares])))
5. Remove Shares Object from the report and Put Variable created with Names of Shareholders.
6. Select Table-> Properties-> Display-> Uncheck the Option u201CShow Rows with Empty Measure Valuesu201D
7. Report will display Value correctly as per your Prompt value selection.
I Hope this Helpsu2026
Thanksu2026
Pratik -
Creating report based on user selected Date Range
Hello.
I am trying to display an Apex report that selects data for the report based on a user entered date range.
It's a simple page with two date picker fields (p18_start and p18_end).
The report region SQL looks like this:
SELECT *
FROM prj_items
WHERE LM_DT BETWEEN :p18_start AND :P18_end
One table, one field on the table to search and two Apex variables.
I thought this would be fairly simple, but I am obviously missing something.
I not even sure what other information is needed to help me figure this out.
-JodyHi,
You can set defaults for the datepickers if you need to - this could be done in a computation on the page for each item and conditional on the item being null.
When I've done something similar to this, I've created two hidden page items - eg, :P19_FIRST_DATE and :P19_LAST_DATE and populated these with the earliest/latest date that the user could reasonably select (perhaps, in your case, the MIN(LM_DT) and MAX(LM_DT) values).
Then your SQL would be:
select * from PRJ_ITEMS
where LM_DT BETWEEN TO_DATE(NVL(:P19_START,:P19_FIRST_DATE), 'DD-MON-YY')
AND TO_DATE(NVL(:P19_END,:P19_LAST_DATE), 'DD-MON-YY')If you don't want to set default dates, you could do something like:
SELECT * FROM PRJ_ITEMS
WHERE (:P19_START IS NULL AND :P19_END IS NULL)
OR (:P19_START IS NOT NULL AND :P19_END IS NULL AND LM_DT >= TO_DATE(:P19_START,'DD-MON-YY'))
OR (:P19_START IS NULL AND :P19_END IS NOT NULL AND LM_DT <= TO_DATE(:P19_END,'DD-MON-YY'))
OR (LM_DT BETWEEN TO_DATE(:P19_START,'DD-MON-YY') AND TO_DATE(:P19_END,'DD-MON-YY'))There are various reasons why your two dates are being cleared when the page is reloaded. Firstly, you should check the branch that returns to the same page - make sure you are not clearing the cache for the page. Then, have a look to see if there is a "reset page" process (usually created for you when you create a form page). Then, check the Source settings for the items. Typically, these would be "Only when current value in session state is null" and a Source Type of "Static Assignment" with the "Source Value or Expression" left empty.
Andy -
Using apex_item in a report based on collection
Hi:
Need some assistance please.
I have a report based on a collection and have used apex_item.text to create some of the text fields.
I need an onchange event to call javascript on one of the columns. I have found that when the colum (created by apex_item.text) is set to "Standard Report Column" that onchange fires as expected but does not when set to "text field".
The issue is that because the column is set to standard report column it displays the html and I don't want this.
Can I use the text field and still make use of onchange, or, can I eliminate the display of the html in the field?
Any assistance would be most appreciated.
Regards,
BrucePost Author: wendy biyela
CA Forum: WebIntelligence Reporting
Hi Kiran
Try this. Assumed measures: [Date] and [Closing balance]
Assuming this is your table in the report, below i have shown you the formulae that should be in your table. Previous() is a function and will work depending on your table. In this case Previous is the previous date so the first Opening balnce will always be null.
Date Opening Balance Closing balance
=[Date] =Previous([Closing balance) =[Closing Balance]
Regards, -
R12: How to filter Open Item Revaluation Report based on GL Date
Hi,
Anybody know how to filter Open Item Revaluation Report based on GL Date from and GL Date to in R12?
Since we just upgraded from 11.5.10 to 12.1.3 and found we cannot filter those report for specific date. It shown all data included the old data from 8 years ago also.
We need to run the report only for specific date only. Please share with me if anyone know about this.
Thanks.Pl do not post duplicates - R12: How to filter Open Item Revaluation Report based on GL Date
-
IR report - No Data Found exception
Hi,
I have created one IR report in apex. I need to get the no data found exception on this report i.e. if user enters some search keywords and he is getting no data in that case want to store the searched keywords in the database for future reference that there is no data for such search criteria.
Could anyone help me to catch the no data found exception and executing a pl-sql process for fetching the search criteria ?
Thanks in advance!I have created an IR report based on collections. But still I am not able to understand where I can write a code for EXCEPTION NO_DATA_FOUND. The pl-sql code used to create a collection which we write in before header process and the actuall IR report which is build using SQL query on collection so where can I put the exception code?
What I want is to catch no data found exception when user types something in IR report search bar and gets nothing as a search result. Can you please help me on this?
Thanks,
Punam -
PLSQL function body returning an sql report returns ORA-01403 No Data Found
I am on APEX 3.1.2.00.02 and Oracle 10g.
I am developing a report with SQL Query (PL/SQL function body returning SQL query) type. But on running the report I am getting
report error:
ORA-01403: no data found
Region Source
declare
qry varchar2(32767);
begin
--Procedure call
my_pkg.get_query(qry);
htp.p(qry);
return /*select 1 from dual */ qry;
end;
Procedure
PROCEDURE get_query (V_QRY OUT VARCHAR2)
IS
qry varchar2(32767);
begin
qry := ' select name
, max(decode(to_char(service_date,''Mon-YY''), ''Jan-09'', value, null)) as "Jan-09"
, max(decode(to_char(service_date,''Mon-YY''), ''Jan-09'', value, null)) as "Feb-09"
from MY_TABLE
group by name ';
V_QRY := qry;
end;
The query will be enhanced later to add more months and year based on user parameters once I am successfull in running report on this.
I wish to use Query Specific Column names. I have seen this suggestion from Scott in a number of threads to use /*select 1 from dual */ with query but not working in my case.
Can someone please suggest what can I do to make it working?
Regards,
AmirFirstly, have you unit tested the procedure (namely, within the SQL Workshop, SQL*Plus, SQL Developer,etc, etc.) to see if it produces the right output in the first place?
If you have, and the query string generated is valid, try assigning the output to a page item (thus allowing you to view it in the session browser) or even pass the procedure output into the debug window (with the use of the wwv_flow.debug function). This might reveal some state or session change which is causing it not to return.You might find this easier to achieve if you change from a 'procedure and out parameter' combination to a 'function returning string' approach.
Alternatively, try re-creating the report in a new region - occasionally I've come across weird bugs with report regions which resolved themselves in this manner.
Maybe you are looking for
-
Actiontec GT704WGB IP Address Problems
Hi i was wondering if anyone has heard of or know if the actiontec has issues with holding the ip address on the ports of the router portion. i have a print server hooked up to an hp all in one printer and everytime i go to print it wont only becaus
-
Purchase Order Request: (Third party -- XI-- SRM)
Hi, We have the following scenario: Purchase order is send from our application to XI and then from XI to SRM. This purchase order will have a unique ID (our application assigns the ID). We would like SRM to send back Purchase Order Confirmation, and
-
Lightroom Resizing of Photos for PrE Pan and Zoom
Not knowing better, I tried my first PrE slide show project with huge RAW stills. It worked without crashing or stalling. For a year I've been learning and practiceing with Lightroom and like it a lot. It has a very convient risizing tool. I'm co
-
Dear all, i know in JAAS, when we use FORM base authentication, the following code is needed: <form method="POST" action="j_security_check" > <input type="text" name="j_username"> <input type="password" name="j_password"> <input type="submit" name="j
-
Mac 10.6.7: I have scanned our clubs logo which is green on a white background. Is there a program on my Mac which will allow me to select the green color and make it any color I wish?