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
Pietja

Hello 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 ;-)

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
    aks

    Try looking at this: http://rakeshjsr.blogspot.com/2010/10/oracle-apex-interactive-report-based-on.html
    Thank you,
    Tony Miller
    Dallas, TX

  • 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
    Sachin

    Hi,
    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
    Gus

    Go 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?
    Thanks

    I 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

  • 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

  • Interactive Report using a View with a Pipelined Function

    Hello fellow Apex people,
    I'm Using Application Express 4.1.0.00.32
    I've got an interactive report that references a view (STOCK) and a pipelined function
    The basic query is listed below.
    SELECT S.CHANGED_TIME "Changed Time"
    , S.CHANGED_BY "Changed By"
    , S.ID "Id"
    , STKST_DESCRS.STOCK_STATUS_CODES "Stock Status Codes"
    , STKST_DESCRS.STOCK_STATUS_DESCRS "Stock Status"
    , S.ORIGINAL_CONTAINER "Original Container"
    FROM STOCK S
    , table(LWS_StkstStatus (S.ID)) STKST_DESCRS
    ORDER BY S.CO_ID,
    S.SEQUENCE_NUM;
    When the page is first run all the data is displayed correctly,
    If I define a filter, sort or a blank search the data from the pipelined function (STKST_DESCRS.) becomes null and isn't displayed.
    Does anyone know what is happening?
    Many Thanks

    I'm curious why you find this dangerous. I want a report that looks like this:
    Opportunity X:
    4 - 2-apr-2008 - Closed deal
    3 - 1-mar-2008 - Called Joe again
    2 - 12-feb-2008 - Called Joe
    1 - 14-jan-2008 - Initial call with customer.
    When you enter a new note, I want it to be numbered 5. The only problem I can imagine is someone deleting a note, which will almost never happen, and if it does, it just leaves a numbering gap. I don't see how using the function in a SELECT will accomplish this.

  • Creating a Form with Report based on View

    Hi All,
    I wanted to create a form with report based on two tables so:
    1. I created a view (called COMBO) based on two tables
    2. I then created a form with report based on the view
    Everything seemed fine thus far until I tried to edit existing records - I got the error:
    ORA-20505: Error in DML: p_rowid=2002082600001172, p_alt_rowid=REPATRIATION_ID, p_rowid2=, p_alt_rowid2=. ORA-01776: cannot modify more than one base table through a join view
    Unable to process row of table COMBO.NB: REPATRIATION_ID is the primary key of the Repatriation table. The other table is Applicant.
    & when I tried to create a new record - I got the error:
    ORA-01776: cannot modify more than one base table through a join view
    Unable to process row of table COMBO.Someone please enlighten me!
    Kind Regards
    Kamo
    Edited by: Kamo on 2009/03/12 2:33 AM

    Hello Kamo,
    You need to create an 'instead of' (update/insert/delete) trigger on your view to process the inserts etc into the 'real' tables.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • 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?
    Thanks

    Hello "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/

  • Need to modify css for interactive report Single Row view

    I've tried to go through and find the code for the Single Row View css in the interactive reports, but have been unsuccessful so far. I would like to change it so the Grouping headers are larger than the column names that are grouped under them. Does anyone know what style I would need to override in order to accomodate that?
    Thanks!

    Hi,
    In the page's HTML Header, add in something like:
    <style type="text/css">
    .worksheet .worksheet_detail th.group, .worksheet_detail th.group {font-size:18px;}
    </style>
    If you use FireFox, I would recommend getting the FireBug add-in - this allows you to examine the contents of the page and shows the style class names used.
    Andy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Unable to Create a QBE report based on View

    I have a view which is based on 4 tables.
    The view by itself works fine.When I create a QBE report based on that view it gives the
    ORA-01445: cannot select ROWID from a join view without a key-preserved table (WWV-11230).
    I am not able to understand what I'm doing wrong.Please help!
    Thanks,
    Hyma.
    null

    Its simple if its a view on one table, but you have a view based on 4 tables. That is what makes it complicated and the need for special set up and a little research. I don't remember what all goes into it, but I do recall that its not just as simple as creating the view.

  • 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,
    PsmakR

    Hi!
    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.
    Thanks

    That 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,
    Carol

    If 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...
    /A

    Hello 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

  • HT1399 My songs can't be played because the original files can't be found.  What can I do?

    I can't play my songs on my computer because the original files can't be found.  I can, however, play them on my ipod.  I tried to re-download my purchases but itunes won't allow me to do so.  What can I do to retrieve my music files on my computer?

  • Error in Weblogic Server 8.1

    Hi, I have deployed a web application in Weblogic. When i am trying to access the first page, i am getting the following exception:-- java.lang.IllegalStateException: Attempt to change ContentType after calling getWriter() (cannot change charset from

  • Opening A 44 page PDF file in Indesign

    Hi Guys I am trying to open a 44 page PDF file in Indesign but for me reason it will not not allow me to do so. It says that i may be missing a plug in o the pdf may be open elswhere. The pdf is not open so i am assuming that the plug in is missing f

  • Why won't websites load?

    Only some websites work, but most of them don't. My other computers work fine in safari. I also reset my router. Nothing work

  • Install CS6 on mac

    Hello, i am having a hard time installing PS6 on my Mac. Any suggestions? Do i need a certain app?