Interactive report based on complex view
firefox 24 , apex 4.0 , db11gxe ,
hi all,
i created an interactive report with this code :
select c.client_id , c.client_name , c.age , c.email , c.phone ,
p.payment_date , sum(p.amount) "summary"
from clients c , payments p
where c.client_id = p.client_id
group by c.client_id , c.client_name , c.age , c.email , c.phone ,
p.payment_date;
but the problem was i could not delete any of the rows of the report , because there was no checkbox existed , so i created one with "apex_application.checkbox" , and i have got it now , but
i still can not delete any rows ,
i created a button to submit the page , and a process with this code
FOR i in 1..APEX_APPLICATION.G_F01.count
LOOP
DELETE FROM cp
WHERE client_id = APEX_APPLICATION.G_F01(i);
END LOOP;
and sure nothing was deleted , and i am facing this error
ORA-01732: data manipulation operation not legal on this view
What is the object "CP" ?
It sounds like it is a view. If it's the same you've used for the IR, then check out "key preserved views"
Oracle doc - http://docs.oracle.com/cd/B28359_01/server.111/b28310/views001.htm#ADMIN11784
Tom Kyte - http://asktom.oracle.com/pls/asktom/f?p=100:11:6474092145067::::P11_QUESTION_ID:548422757486
There could be another issue once you address the error - depending on how you've defined apex_application.checkbox2 (the other is deprecated)
You may not be associating the correct value in g_f01
Similar Messages
-
Interactive report based on dynamic query
Hello
I am using Apex 4.1 and have a requirement to create an interactive report based on a dynamic query. This option is available in Classic report but in Interactive this feature is not there. Tried using collections or just a view (thought of changing the view definition during "On load", but structure of the report is already defined based on the definition of the view at design time).
Is there any way of achieving this?
Appreciate any help!
Thanks
aksTry looking at this: http://rakeshjsr.blogspot.com/2010/10/oracle-apex-interactive-report-based-on.html
Thank you,
Tony Miller
Dallas, TX -
BI Publisher report based on VO (View Objects)
Hi,
I would like to know, can we generate BI Publiher report based on VO (view Objects ). Actually we are creating VOs for ADF and want to know if that can be used for generting BIP report.
Thank,s
NirajHi Niraj
Yes, you can, there is a method on the VO to get the data from it in an XML format. Then use our APIs >> documentation to format it with a template.
Regards, Tim -
Hi,
On my page I have a select list with submit (--> computes an application item AI_OEFID) and I have a "form with report" based on a view.
In my Region Source I have added a where condition: where "EMPID" = :AI_OEFID.
When I select an employee in the select list the report only shows data of the selected "EMPID", which is fine.
The "null display value" of my LOV is "Choose employee..."
When I select "Choose employee..." the report shows "no data", BUT at that moment I want all my employees shown in the report.
So, I tried the following: I changed my where condition: where "EMPID" IN (:AI_OEFID) and I created another (conditional: when value of LOV = -1) Page Processing computation which computes my application item AI_OEFID with the result of a SQL query: select EMPID from <<VIEW>>.
When I select "Choose employee..." the report shows only my first EMPID.
How can I show all my employees in the report when I select the "null value" of my LOV ?
Thanx,
Frederik.Frederik,
Have a look at this example:
http://htmldb.oracle.com/pls/otn/f?p=31517:99
Denes Kubicek
http://deneskubicek.blogspot.com/
http://htmldb.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
Require assistance in Interactive Report based in APEX 3.2
Hi All,
Thanks in advance
I have created editable Interactive report based on Form with report .
once report created , I have modified query with the column named TempNetto ,Temp Brutto .. Below is the query
select "IDSUB",
"JAHR",
"IDMITARBEITERLISTE",
"EKPREIS",
"WEBUCHUNGEN",
(WEBuchungen*EKPreis) TempNetto , --modified
"NETTO",
DECODE((WEBuchungen*EKPreis),0,0,(Netto+(Netto*VerwaltungskostenZuschlag)+(WEBuchungen*InfrastrukturkostenZuschlag))) TempBrutto, --modified
"BRUTTO"
from "#OWNER#"."SUBS"
I receieved the below message "You have requested to change the Interactive Report query. If you added columns to the query, they will not be displayed when the report is run. You will need to use the actions menu and either select the columns or click Reset. If you removed any columns from the query, it will disable existing filters, highlight rules, and other report settings referencing those columns. Please confirm your request. "
I want the column started with temp should appear in report . I have checked under search bar Action menu is checked and options like Select column and Reset is checked
Kindly provide some help
Cheers
SachinHi,
When you've selected all the columns (Select Columns) you then need to save the report...not reset it. Go back and make sure all columns are on the right and then:
- Save Report
- As Default Report Settings
- Apply
Mike -
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 -
Conditional Display of Interactive Report Based On Different SQL Query
Hello,
I have two drop down list on top of my page and below that I have a interactive report.
Based on user selection of values from drop down, interactive report should change based on different SQL queries.
Is it possible to have different SQL queries based on values from drop down and generate interactive report based on that?
ThanksI am passing my drop down value to apex_collection like the following:
APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY( p_collection_name => 'IR_LIST',
p_query => REQUEST_VIEW(:P12_VIEW));However when I change the values from the drop down, :P12_VIEW is not getting the value from drop down even though I could see value being changed in URL. I have created page process for apex_collection
Process Point - OnLoad - Before Header
Run Process - Once Per Session or When ResetCould someone suggest as why I cannot get the values in function when drop down is changed?
Regards -
Error when trying to add sort option to a report based on a view
Hello,
I have several reports based on a view. Everytime I am trying to soft them by a column or more, I get this error:
failed to parse SQL query:
ORA-00911: invalid character
If I take the sort out, it works just fine. Any idea how to fix it?
PS: got it... it was from the ; at the end of my sql...
Thank you
Anca
Message was edited by:
ancagYou seem a little grumpy. Yes, it has acurred to me that no one knows the solution. And no, I have not called tech support yet as I have been distracted lately and spending an hour on the phone trouble shooting is an hour I could be studying. Its much easier to "bump" this thread and hope someone with a suggest will chime in.
Anyway, please dont just tell me to delete something without giving me an idea of what Im deleting. I have a feeling that this login.keychain deletion will cause me to loose the information already stored. Is this the truth? -
Interactive Report based on View
Hello!
I've just started to rewrite my Forms applications to Apex.
Based on an existing view I want to create an Interactive Report, but there is only the choice between 'Table' and 'SQL statement'.
Is there a way to use the view in a direct manner ( not in a sql statement as 'select * from VIEW)?
Regards
PietjaHello Pietja,
In my APEX env (3.2) an IR can only be based on a SQL Query. You can use the Query Builder to select a table or view, but still it ends up with a SQL Statement.
Greetings,
Roel
http://roelhartman.blogspot.com/
You can reward this reply by marking it as either Helpful or Correct ;-) -
Report Based on SQL view not pulling in all parameters
Post Author: ronhawker
CA Forum: .NET
I based a report on a SQL view below:SELECT TOP (100) PERCENT CorpDirectory.Position, CorpDirectory.PhoneDirect, CorpDirectory.Email, CorpDirectory.Store, CorpDirectory.Name, CorpDirectory.PhoneFaxWave, CorpDirectory.Department, Store.StoreName, Store.StoreStreetAddress, Store.StoreCity, Store.StoreState, Store.StoreZip, Store.StorePhone, CorpDirectory.DisplayOrderFROM dbo.CorpDirectory AS CorpDirectory INNER JOIN dbo.Store AS Store ON CorpDirectory.Store = Store.StoreORDER BY CorpDirectory.Store, CorpDirectory.Department, CorpDirectory.DisplayOrder, CorpDirectory.Name When the report was created the order by sequence only brought in the first parameter of CorpDirectory.Store. It seemed to ignore the other three order by parameters. I am running 10.2 is VS2005.Sharmila,
Thanks for your response. Maybe I wasn't clear enough in my previous statement. I will give an example of what I am trying to accomplish.
Let's say I have 2 date fields(SUBMITDATE,COMPLETEDATE) in a table TABLE A
I want to calculate a field called CYCLETIME with the following conditions:
If COMPLTEDATE is NULL, then CYCLETIME = SYSDATE-SUBMITDATE
IF COMPLTEEDATE is not null, then CYCLETIME = COMPLTEEDATE-SUBMITDATE
Would appreciate any help.
Thanks
Dev
Hi,
You can do the calculation in the sql query itself. Here is an example which shows the sum of salaray for each department in the scott.emp table.
select deptno,sum(sal) sal
from scott.emp
group by deptno
Thanks,
Sharmila -
Interactive Report based on pl/sql function body
Can an interactive report be based on a pl/sql function body returning the query sql? Or does it have to be based directly on the SQL?
ThanksHello "unknown user",
As far is I know an Interactive Report can only be based on 'regular' SQL. If you have a Report based on a 'PL/SQL function body returning SQL' the option to migrate the report to an interactive report is not there.
Regards,
Roel
http://roelhartman.blogspot.com/
http://www.bloggingaboutoracle.org/
http://www.logica.com/ -
Interactive Report based on a function returning SQL query?
Hi guys!
I'm wondering if the IR based on a function returning SQL query will be available on the final release of APEX 4.0..I can't see this functionality in EA1 and EA2 and I think it should be there..dont you think?
With regards,
PsmakRHi!
You're absolutely sure you're talking about the Interactive Report region and not about the default SQL Report region ?
With regards,
PsmakR -
How to select records from Interactive Reports based on checkboxes
Referring to the link below
http://apex.oracle.com/pls/otn/f?p=31517:95
I want to select rows from the Interactve Report based on a checkbox. This demo page has 2 sections, one for classic report and other for interactive one. The classic report is able to select the whole records but the interactive report selects only the emp nos. I am looking for a functionality where I can select the whole record from the interactive report.
Any pointers will be helpful.
ThanksThat is easy. You should just modify the query:
DECLARE
v_count INTEGER := 0;
BEGIN
:p95_text_ir := NULL;
FOR i IN 1 .. apex_application.g_f20.COUNT
LOOP
v_count := v_count + 1;
FOR c IN (SELECT ename, job, mgr, sal, deptno
FROM emp
WHERE empno = apex_application.g_f20 (i))
LOOP
:p95_text_ir :=
:p95_text_ir
|| 'ID: '
|| c.empno
|| ' / '
|| 'Name: '
|| c.ename
|| ' / '
|| 'Job: '
|| c.job
|| ' / '
|| 'Manager: '
|| c.mgr
|| ' / '
|| 'Salary: '
|| c.sal
|| ' / '
|| 'Department: '
|| c.deptno
|| CHR (10);
END LOOP;
END LOOP;
:p95_text_ir := :p95_text_ir || ' / Records selected: ' || v_count;
END;Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.apress.com/9781430235125
http://apex.oracle.com/pls/apex/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
------------------------------------------------------------------- -
Interactive report based on a temporary table?
hi -- I'm trying to get around some performance issues using database links, and the use of global temporary tables was suggested.
However, the performance issue is in defining the query for an interactive report... and the allowable source for these seems to be more particular
than for other queries / reports.
I currently use asa collection the source of data for the IR -- works, but is SLOW for DB links.
I don't know how much benefit to expect from the use of a global temporary table... but it seems I can't
create an IR based on a temporary table... as when the query is parsed the table does not exist.
Am I missing something? Has anyone done this?
Thanks,
CarolIf you build the global temporary table and leave it in place, then it might work. Deleting and creating tables on the fly is NOT really suggested in Oracle. When you need to, you could in the page header execute a procedure to select/insert into the global temp table, since they normally clear out when your session is complete..
Thank you,
Tony Miller
Webster, TX -
Change source (sql) of interactive report based on column value?
I've got an Interactive report displaying 10 columns. What I'd like to do is show different columns depending on the value of the first column. All the rows in the result will have the same value in the first column.
If value in column 1 (on any row) = 'aaaa' then
display columns 1,2,3,4, 9, 10
If value in column 1 (on any row) = 'bbbb' then
display columns 1,2,3,4, 7, 8
If value in column 1 (on any row) = 'cccc' then
display columns 1,2,3,4, 5, 6
Should i somehow make the sql query dynamically change or can I use apex to dynamically hide the columns I don't want in the interactive report?
Appreciate if you could point me in the right direction...
/AHello Andy,
You can solve that in your SQL query:
select col1, col2, col3, col4
, case col1
when 'aaaa' then col9
when 'bbbb' then col7
when 'cccc' then col5
end newcol5
from tableYou may have to use to_char or to_number conversions when the datatypes of the col5,7 and 9 are different.
Greetings,
Roel
http://roelhartman.blogspot.com/
You can reward this reply by marking it as either Helpful or Correct ;-)
Maybe you are looking for
-
i can only send text messages to one of my IPhone contacts. How can i change it back? ive tried restarting, deleting contact and adding back, turning off Imessages and then back on. not working
-
I hope this is the right place for my question. About a year and a half ago, I installed Parallels on my Macbook Pro so that I could use WindowsXP. On a computer radio show I listen to, said that if the Windows/Parallels portion of a Macbook Pro gets
-
WSDL - s:any handling & string to structure
Hi, We have a WSDL supplied to us by a partner, generated by Visual Studio. Helpfully it doesnt actually declare or include the XSD structures within the Type definitions. There are 2 scenarios (examples below) that I need to deal with. 1) They decl
-
How to know current bandwidth to be able to increase or decrease reserved streaming units ?
Hi, how to know egress bandwidth by Azure Api to be able to increase reserved streaming unit if bandwidth reaches over 80%. Currently it is set to 1, but should be able to increase it when bandwidth is more than 160 mpbs(80% of available bandwidth wh
-
Help!!! i cant speak to a live person
My plan didnt renew and i had the money on my phone and now i cant speak to a live person to resolve this issue!!! I am unable to use my phone in fear it will depleat the amont of money i just put on it. Every time i call it says they are unable to c