Interactive report based on the view

Hello!

I just started to rewrite my apps of forms at the 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 it possible to use the view directly (not in a SQL ' select * view)?

Concerning
Pietja

Hello Pietja,

In my APEX env (3.2) an IR cannot be based on a SQL query. You can use the Query Builder to select a table or view, but still he ends with an SQL statement.

Greetings,
Roel
http://roelhartman.blogspot.com/
You can reward this response in marking it as useful or Correct ;-)

Tags: Database

Similar Questions

  • Conditional display of interactive report based on the different SQL query

    Hello

    I have two drop-down list at the top of my page and below I have an interactive report.
    Based on the selection of the user from the drop-down list values, interactive report should change based on different SQL queries.

    Is it possible to have different SQL queries based on the drop-down list values and generate interactive report based on that?

    Thank you

    Hello

    You can't have IR based on function returning the query as you can have classic report

    But here is a workaround
    http://www.oracleapplicationexpress.com/tutorials/71

    Kind regards
    Jari

  • Interactive report based on the hidden column cell color

    Hello

    APEX 5.0.1 used here.

    How can I set the color of a specific cell (or column) based on a hidden column?

    Seems the link that I can't use the built-in feature because I need the custom color returned by my request.

    I tried to set the color with javascript by iterate over each line, by taking the value. text() of the color column and value

    This color-specific cell. It works, but it requires the column is visible.

    A column containing a hexadecimal value of the color does not look good...

    I tried to hide / display: no column complete but this messes up the layout.

    THX

    the force says:

    APEX 5.0.1 used here.

    How can I set the color of a specific cell (or column) based on a hidden column?

    Seems the link that I can't use the built-in feature because I need the custom color returned by my request.

    I tried to set the color with javascript by iterate over each line, by taking the value. text() of the color column and value

    This color-specific cell. It works, but it requires the column is visible.

    A column containing a hexadecimal value of the color does not look good...

    I tried to hide / display: no column complete but this messes up the layout.

    Specify the color of cell required using the hidden column and a data attribute to the property Expression of HTML in the column:

    #VISIBLE_COLUMN_ALIAS#

    Apply a static ID of the visible column to serve as a selector, jQuery, and you can access the invisible color value in your JS code in dynamic action to run the JavaScript Code using the dataset property.

  • Updated interactive report based on shuttle Page

    I am trying to create an interactive report based on the selected items in a shuttle service.  On the page there is a page entitled P2_ITEMS element which is a shuttle service.  It displays a list of items for the user to choose and returns the item_id, the primary key of the main table.  I then an interactive report on the same page that displays data for the item_ids selected in the shuttle.  I use the sql query below in my interactive report, but nothing shows up in my report.  How can I get the interactive report to be updated when items are selected in the shuttle?

    Select

    a.date_loaded,

    b.item_type,

    c.Item,

    a.info

    point a, item_type_lookup b, item_name_lookup c,.

    where instr (': ' |: P251_ITEMS |': ',' :'|| a.item_id |': ') > 0

    and a.item_type_id = b.item_type_id

    and a.item_name_id = c.item_name_id;

    Hello

    Please, install application example sample Dynamic Actions. There are exactly what you are looking for (side Server-online shuttle refresh).

    Kind regards

    Pavel

  • Select a cell of interactive report based on another hidden cell

    Greetings,

    Someone know how to select a cell in an interactive report, based on the value of another cell in the same row and without this cell being shown?

    The integrated highlight feature IR does not seem to allow me to highlight a cell based on the value of another cell (correct me if I'm wrong).

    So I tried to go with a JavaScript solution, that I found in a thread somewhere on the forums of the APEX. I created a dynamic Action with this JavsScript code:
    $('[headers = "INTENSITE"]').each(function() {
      if ($(this).text() == 1) {
        $(this).siblings('[headers = "NOM_COMPLET_USAGER"]').css('background-color','red'); 
      }
    });
    and it works perfectly when the column is displayed, but not when it is hidden (which makes perfect sense).

    So this is where I am stuck. The report has a lot of info, and I don't want to have a useless column projected and using precious space.

    Any help would be appreciated.

    Thank you
    Mathieu

    You can try the following:

    1. Add a column to your sql that contains the background for example color

    SELECT
    EmpNo,
    Ename,
    initialst,
    Decode(INTENSITE,1,'red','white') background_color
    Of
    EMP;

    2. in the new updated interactive report background_color column is hidden.

    3. Select the NOM_COMPLET_USAGER column and set the following parameters

    Link text = > #NOM_COMPLET_USAGER #.
    Link attributes = > style = "background-color: #BACKGROUND_COLOR; #
    Target = > URL
    URL = > #.

    I hope it helps

    Shunt

  • Interactive report based on a Collection

    Hi guys

    Using Apex 3.2

    I have a classic report based on a collection, which works very well.
    I am now trying to create an interactive report based on the same query (collection), but no data is returned.
    I there something special I need to do an interactive report.

    See you soon


    Gus

    Hello Gus,

    First time when you create a report based on the collection ir, it does not include the columns in the display (don't know why)

    pls select the correct answer to help others

    Thank you

  • How to create a report based on the item selected from the list of selection?

    Hello

    I created a tables_LOV based on:

    Select table_name table_name user_tab_cols r, d

    where column_name like '% _type % '.

    Then I created a ListOfTables page element, display in a selection list and pointing to tables_LOV.

    I run the page, and I can choose the table I want in the drop-down list.

    How to create a report based on the selected element? (ex: select * from selected_table)

    Thanks in advance

    Salah

    Hi Salah,

    Allright, take a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report

    I think that simulates what you are trying to accomplish. I've implemented the simplest method I could think of.

    The report is based on a collection of apex. If you are not familiar with this, you should study the documentation: APEX_COLLECTION

    To recreate my example, you should:

    (1) create a report (interactive) on your collection

    SELECT *
       FROM APEX_collections
     WHERE collection_name = 'MY_COLLECTION'
    

    (2) create a selection list page_item for the tables that you want to display (in my case, this is called "P38_TABLES")

    (3) create a dynamic action that triggers on the evolution of your selection list page_item. Dynamic action must be a parade of PL/SQL procedure the following code:

    declare
      l_query varchar2(4000);
    begin
      l_query := 'select * from '||:P38_TABLES;
      if apex_collection.collection_exists
            ( p_collection_name => 'MY_COLLECTION' )
      then
        apex_collection.delete_collection
          ( p_collection_name => 'MY_COLLECTION' );
      end if;
    
      apex_collection.create_collection_from_query
        ( p_collection_name => 'MY_COLLECTION'
        , p_query           => l_query
        );
    end;
    

    Make sure that you add your page_item 'Page to send items' section.

    (4) add a real extra action that makes an update of the report area.

    Here are two photos describing the da:

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA1.PNG

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA2.PNG

    Good luck and greetings,

    Vincent

    http://vincentdeelen.blogspot.com

  • How to create a report based on the selection of a node of a tree

    Hello

    I am new to Oracle Apex and tried to build a tree and also an interactive report based on column empno from emp table.

    I created a tree based on the emp table. Now, I want to see the records in the employee selected in the tree.

    This is the query of the tree:

    Select case when connect_by_isleaf = 1 then 0
    When level = 1 then 1
    of another-1
    end the status,
    level,
    'ENAME' as the title,
    NULL as an icon,
    'EMPNO' as value,
    NULL as ToolTip,
    NULL as link
    of ' #OWNER # '. " EMP.
    Start by "MGR" is nothing
    connect prior "EMPNO" = "MGR".
    siblings arrested by 'ENAME '.

    Can someone tell me step by step how to go from here?

    I tried to follow the thread Re: question of tree but could not understand a lot of it.

    The approach to reload the page and display the report is fairly simple.

  • You start by creating a new page element that will be used to store the selected node ID, for example. P100_SELECTED_NODE (you can do atext element and change hidden once everything works as expected)
  • Change the query of the tree and the link column in the SQL of tree definition to a link to the same
    for example if your page is 100, you'd do the tree node a link to the same page but the value of the P100SELECTED_NODE with id_ of the node selected
    This is done here
    {message: id = 4410987}
    In this case, it would be

    ' f ? p = & APP_ID.: 100 :'|| : APP_SESSION |': P100_SELECTED_NODE :'|| EMPNO as link

    Now when you click on a link to tree node, it would be back to the same page, but set the P100_SELECTED_NODE with the empno of the clicked node.

  • All that's left to do, change your report so that it refers to the new point inorder to filter records for this employee empno i.e

    SELECT ...
      ..
    WHERE empno= :P100_SELECTED_NODE
    
  • Report based on the result of the sorting function?

    Dear all,

    I will make this issue in general terms:

    We have a report based on a query that reads data from a single table (P). It will take to provide a field more (X) in the report which is obtained using more than two tables (E, 1 m approx).

    I wrote a function that produces this extra field based on a join of tables E and P1. Please note that this function depends on the report query variables. This output is correct and provides all the necessary information, but it is necessary to sort the report based on the result of this function, i.e. the value of field X.

    Is this possible?

    I appreciate your comments.

    Note: I've tried incorporating pictures E, P1 in the request report (I can then sort on the required field) but gets reduced the number of lines in the report. This is because the join between the tables, P, E and P1 reduces the number of lines (which is not the correct result).

    Yes, it is possible. If you have ended up above a formula column.

    Create the formula column. For example, CF_SALARY_TOTAL. Place a level to the top of the query and set your desired sort (Asc/Desc)

    Hope this helps

    Hamid

    Move or

  • link to an interactive report AND apply the filter for 2 items.

    Hi can you help me out here on how to create a link to an interactive report AND apply the filter for 2 items.

    Here is my code

    I have a list of table, clicking the selected item should link to interactive report and create the filter. Below the code does not work for a filter. can you help me what to do with 2 filters.

    A filter = > works very well

    sys. HTP.p ("< ul class =" uChartList"> ');

    sys. HTP.p ("< class li =" uNumber uGrid col_2 col_sart"> ');

    sys. HTP.p ("< a href =" "|") sys. HTF.escape_sc ('f? p ='|: APP_ID |': 0 0 :'||: APP_SESSION |':00:P00_XXX:000, RIR:IREQ_XXX:Test :') |) » » >') ;

    sys. HTP.p ("< class =" uValue"> ' | l_tester |) ("< / big >");

    sys. HTP.p ("< small class =" uLabel"> < /small > Tester ');

    sys. HTP.p ("< /a > '");

    sys. HTP.p ("< /li >" ");

    Scenario 2:

    Two filters = > does not

    sys. HTP.p ("< ul class =" uChartList"> ');

    sys. HTP.p ("< class li =" uNumber uGrid col_2 col_sart"> ');

    sys. HTP.p ("< a href =" "|") sys. HTF.escape_sc ('f? p ='|: APP_ID |': 0 0 :'||: APP_SESSION |':00:P00_XXX:000, RIR:IREQ_XXX:Test:P00_YYY:001:IRC_YYY:test2 :') |) » » >') ;

    sys. HTP.p ("< class =" uValue"> ' | l_tester |) ("< / big >");

    sys. HTP.p ("< small class =" uLabel"> < /small > Tester ');

    sys. HTP.p ("< /a > '");

    sys. HTP.p ("< /li >" ");

    Thanks in advance

    actually the syntax wrong values in the syntax of the passes to several elements.

    is

    f? p = 6000:6004: & APP_SESSION. : NO:6003:MY_ITEM1, MY_ITEM2, MY_ITEM3:1234, 5678

    Use above scenario and verification.

    Go

  • Interactive reports will change the order of columns

    Hi all

    Have experienced this for the 3rd time now. The other times I just create a new report with the request in the order you wish to fix. But it starts to become annoying now...

    When I use the arrows to change the column order on my reports interactive nothing happens when running. The new order is saved and appears that way in design mode, but does not change the order on the report.

    Please let me know if you know how to solve this problem, or if Miss me just something really obvious.

    Thank you!
    K

    Hey,.

    Changing the order in the attributes report is more an effect, since the default report parameters overwrite it.

    If you want to change the order of the columns, you must go through the menu actions of the interactive report, then choose the column selection menu item, change the order and press ok.

    Then save this order order by default, you go to the action menu again and choose save report option this time, select "primary" or "Save as default" depending on your version of apex (this option is available only if you are connected as a developer in the generator of the apex). Then press the ok button again.

    Other users will only see the changes if they press the reset button on their version of empathy.

    I hope this helps.

  • The column report based on the build option

    Hello
    is it possible to display a column of report based on the selected build options?
    I can exclude the elements or even a full page by adding a compilation option, but I couldn't find any way to exclude a column of a report according to a compilation option (for example not displayed this column if the build option is xyz).
    Any ideas?
    Thank you
    Jochen

    Jochen:

    I have not tested, but creating a condition for the column based on the APEX_APPLICATION_BUILD_OPTIONS could provide a solution.

    CITY

  • interactive report based on an existing table

    Many people, it is the next step in the construction of my app.  I watched a tutorial of utube produced from a worksheet a table in a database and a set of pages to enter data and to display and edit data in the table.  I already have the table and I would like to make the pages I've seen.  a spreadsheet as a table which allows the edition of each row and a button create on top.  I guess I was also able to delete a line if necessary. I think I need to creata a page, select report and interactive report.  Continues in this way, I get a request for a sql statement that will likely tell the page generator that he needs to create the report.  I need to make the report based on a table in another table space.  At this page, I entered in the query designer and my table space is not listed, only the current APEX of table space is available.  I went in a different direction to create a form for a table and to the bottom of the sequence, he also requested information in the table.  My table db space is listed as available and I am able to create the registration in a satisfactory manner.

    Then, why I can see and interact with my db table space when you create a form for a table but can not find the db table space when you generate an interactive report?

    Also, I'm heading down the correct path for the interactive report, that I need?

    "HustlingHare" alright, get ready to be the hero.  "" "You're almost there. '"

    (1) Firstly, nuke has report page IR that you just created.  You don't need it.

    (2) then go back and run the wizard to create a Page.  Choose 'Form', then 'form on a Table with the report '.  Because your DBUSER1 has privileges discrete objects on the table in the schema DBUSER2, DBUSER2 must appear in the select list of "Table / view owner" in this wizard.

    Follow the steps in the wizard to create the interactive report and form, and you're done!

    Joel

  • Run interactive report only if the search filter values / entered.

    Hello

    I have an interactive report I want to post, but the problem is that too many files are in the base table, so I want to hide this report until some filter values are entered in the search field (apexir_SEARCH), so if no value entered search I do not show the report but with the search value view the report with the returned records ,


    I tried to create a hidden item (P1_TEST) USE THE CONDITION relating to THE report if P1_TEST IS NOT NULL, and then submit the report, but it does not work well enough


    Thank you

    Gor_Mahia wrote:

    I have an interactive report I want to post, but the problem is that too many files are in the base table, so I want to hide this report until some filter values are entered in the search field (apexir_SEARCH), so if no value entered search I do not show the report, but with the value of research showing the report with the returned records ,

    I tried to create a hidden item (P1_TEST) USE THE CONDITION relating to THE report if P1_TEST IS NOT NULL, and then submit the report, but it does not work well enough

    Add to the WHERE clause of the query of the IR (or add it in the WHERE clause if the report has not one):

    and exists (select
                    null
                from
                    apex_application_page_ir ir
                      join apex_application_page_ir_rpt irr
                        on ir.interactive_report_id = irr.interactive_report_id
                      join apex_application_page_ir_cond irc
                        on irc.report_id = irr.report_id
                where
                    ir.application_id = to_number(:app_id)
                and ir.page_id = to_number(:app_page_id)
                and ir.region_name = 'Conditional IR'
                and irc.condition_type in ('Filter', 'Search')
                and irr.session_id = :app_session
                and irr.base_report_id = (select apex_ir.get_last_viewed_report_id(to_number(:app_page_id), ir.region_id) from dual))
    

    The predicate will be true only if the user has created at least a filter/search condition for the report, and if it is false, that it must stop the optimizer to hit the base table. (This has been developed and tested on APEX 5.0, so there may be differences with previous versions.)

    Note that using the search field by default generates inefficient queries. If you are really serious about performance, clear the search field and get users to create filters to specific columns, which will have a better chance to allow the optimizer to use indexes or improve the execution plan.

  • To maintain the ability to highlight in an interactive report even after the application is closed

    I have an interactive report where in I have an expression that highlights the lines based on a condition.

    Now once I close the application and re open it after awhile. This configuration or the nail button setting is not available or is not there,

    How can I do this all the time.

    I do it this way...

    Action-> highlight-> specs-> expression-> apply

    take action and click Save report entry and if you want to save as principal then select primary or save it as a named report.

    Leave.

Maybe you are looking for