Interactive report performance with conditional link

Apex 3.2

I have an interactive report.

The underlying sql return 127000 lines

The sql is

Select

LDE.ods_system,

LDE.ldekey,

Msg.sendersystem,

Msg. MessageType,

Msg. MessageVersion,

Msg.msgseqnumber,

Msg. AlternateKey,

Msg.crudmarker,

Msg.clrbookdate,

Msg.clrbookresult,

lower ('udf_' | MSG button.) MessageType),

LDE.ldekey |'. ' | Msg. AlternateKey |'. ' | Msg.msgseqnumber udm_key

Of

clr_esbmessageheader msg,

clr_adm_systemmessage SMA,

lde udm_lde

where

ADM.ldeid = lde.ldeid and

Msg.sendersystem = adm.system and

Msg. MessageType = adm.messagetype and

Msg. MessageVersion = adm.messageversion and

Msg.receiversystem = "SCIPS.

msg.clrbookdate desc order

This report takes a second to display.

I need to add a conditional link to another page, so I used

case

When lower ('udf_' | msg.) MessageType) = "udf_distreceipt" then

"' < a class ="type"href =" "|" apex_util.prepare_url ('f? p ='|: APP_ID |) » : 52 :'|| : APP_SESSION |': ' | : D EBUG |': RIR' | ': I R_MSG_KEY, P52_PG :'|| LDE.ldekey |'. ' | Msg. AlternateKey |'. ' || Msg.msgseqnumber | «, » || 50, null, 'SESSION') | «"title ="Go α report udf_distreceipt"> udf_distreceipt < /a > '»»

Another 'no link' don't end table_link

The sql seems to be ok, because the report was accepted, but by selecting the new column and save the report back for always (2 min)

Now, the report takes more than 2 minutes to run and I still need to add more conditions.

I coded the link incorrectly?

Gus

Well either force them to filter everything first or actually withdraw the appeal prepare_url of your sql. Can you not just use the link of apex column feature? All your links seem to differ in is in the display text for the anchor and not the actual url. If your link is perhaps not as accurate, but at least going to session state protection and be fast and everything will be pretty standard. You could delete SSP of course, but who are better than a more generic link text? The call is of course to you.

Tags: Database

Similar Questions

  • Problem of interactive report performance through data link

    Hi gurus,

    I have an interactive report that retrieves values from two joined tables, all two places on the same remote database. It takes 45 seconds to complete (refresh) a page after the issuance of a search. If I take the actual selection that is generated by the apex (the one with count (*) ()...) and run it from sql environment, it takes 1 or 2 seconds. What on Earth consumes the rest time and how to speed this up? I would like to awoid, create and maintain local if possible materialized views.

    Concerning
    SAMO

    Hello

    APEX should normally return the full result for the use of paging (where you put something in the sense to see the x - y of z), it changes, or the maximum number of lines can greatly affect performance.

    The site led indicator would need to refer in the name of the view, but can be a little finicky with that sort of thing. The suspicion of materialization only works for requests under weighted (in a ' WITH bla AS (SELECT / * + MATERIALIZE * / * FROM etc. etc.)). They tend to materialize in any case and its better not to use advice like this for production code unless there is absolutely no other choice, but just sub factoring without advice can often have a profound effect on performance. For example

    WITH a AS
    (
     SELECT c1,
            c2,
            c3,
            c4,
            c5
     FROM schema1.view1)
    , b AS
    (
     SELECT c1,
            c2,
            c3
     FROM schema1.view2)
    SELECT *
    FROM a, b
    WHERE a.c5 = b.c3
    

    Can produce a different plan or even just sub factoring one of the outside tables can have an effect.

    You need to try things here and experience and keep watching the execution plans. You must also replace fetch of row of toads to be all 9 to get a real idea of the performance.

    Let me know how you go.

    See you soon

    Ben
    http://www.munkyben.WordPress.com
    Don't forget to mark the answers useful or correct ;)

    Published by: Munky on September 29, 2009 13:41

  • edit interactive report based on APP_USER link conditional

    I have a users table with standard information, including a user_id column which is what is used by my access control page to connect. I have a screen of user management with an interactive report I want everyone to see all users, but I want only the link modify to display the line that represents the user who is logged on. I know there is a conditional parameter on the link change, and I tried to develop in exp1 = exp2, with & APP_USER. exp1 and exp2 user_id, but who do not seem to work. Any other ideas, or I'm doing something wrong with the way I tried to make it work?

    HI -.

    It really bothers me, this forum has a problem with the code examples, so for a while at least I posted quick example on Google:

    [Conditional column | http://docs.google.com/Doc?id=dd2tkvv6_212dbzw2ftq]

    Not to complicate too much, but if you want without empty column except a line, you could of course apply this trick to the column that contains actually the user name in your table... in other words, the user can right click on their name to go to the Edit screen, but any other name user, but they would not be a hyperlink. But it is as they say an exercise for the reader :)

    Good luck.

  • Interactive report filter with OR condition

    Hello
    How to use the interactive report or condition filter? using the default value is "and".
    For example, I have = 2008 FY or FY = 2009 (FY is a column in the report).

    Hello

    I don't think you can, but your example work a single filter using IN.

    HTH

    Chris

  • Interactive report - filtering with the "IN" operator

    Hello

    I have a column in an international registration which is a concatenated field (Last Name, First Name MI). When filtering on this field using the IN operator, it returns the correct record if only one value is selected, but if more than one value is selected, no data is returned. It's like that it executes a statement GOLD instead of one and.

    Any suggestions on how to solve the problems or solve this problem?

    Thank you
    Matt

    Well, this isn't quite true. If the list had an entry in the form LAST_NAME | ',' | FIRST_NAME. » '||. MI, the query would return a match.
    Yes, you're probably better of filtering individually and last name fields.

    CITY

  • Link to the interactive report with filters

    I want to put a link to a page that contains an interactive report. But the link must set up a filter for the interactive report.

    For example, if I am looking at a customer, I want a link that sends me the reports, but filtered to show only this customer already.

    Is it possible to do?

    Thank you

    Published by: user1415525 on September 21, 2009 07:34

    Hello

    Set a parameter Anthony to ##.

    Example: Set IR_ORDER_ID to #ORDER_ID #.
    or for you
    Set IR_CUSTOMER_ID to #CUSTOMER_ID #.

    (Of course you must change the column names)

    Greetings,
    Roel

    http://roelhartman.blogspot.com/

  • Problem with interactive report

    Hi all

    I use Apex 4.2

    I have an interactive in which I activated the filtering and sorting.

    When I click on one of the column in the interactive report, saying: "LAST NAME", it shows me the filtering and sorting options drop down.

    The poster also available name drop extracted from the query, but it shows me some range of name pronounce A - C only.

    I have family with starting with another letter also names, but those names are not displayed.

    For some columns displays the values of A to E, but not the full list.

    How to display the entire list in this fall down.

    Kind regards

    Jean-Louis Patel.

    Hi Alice,.

    Because of interactive report performance, it loads only a few filters.

    If you change the column definition for the column, under set the Filter Type of column to one of the other options like 'User defined list of values to exact match filter' from the list of values.  You can then specify the query used to generate this list.  You could use something like what listed below to grab the first 20000 records.

    Select *.

    from (select name

    WCP

    em order by name)

    where rownum<=>

    But don't forget, it will always affect your performance of interactive report page.

    Or alternatively, you can use this link:

    http://tpetrus.blogspot.in/2012/05/interactive-report-filtering-in-apex.html

    -Sunil Bhatia

  • Interactive report with display of the icon to set the page element

    Hi all

    I am currently using Apex 4.2.4, I have an interactive report using icons, each icon has a link to another page but a few I want to set a value in a page hidden in the same page element which is then used as a variable for a classic report.

    I have this work via link href in the icon as f? p ='|| FA.page |': 1 :'|| : app_session |': P10_ID_ITEM :'|| FA.link_name without error.

    My problem is that I wanted to put the value of the element without using a link href that I could handle the clicked icon to change the background color so that the user can have a Visual representation, where it was clicked, then using the value of the page item appears the classic report in another region with a partial refresh.

    Any help is appreciated, thanks.

    Can you provide a detailed explanation of the purpose of this report and the logic used in the report query? What are the rules to control which icons appear in the IR, what icons link to the second report on the page of IR, and icons to link to separate pages?

    For me, the report query seems too complicated and inefficient by returning the data it does, and if another level of data is added to the hierarchy or more data is added to the second level, it fails with:

    ORA-01427: einreihig subquery returns multiple rows

    I'm guessing that the intent is that the IR displays only the icons at the top level of the hierarchy and icons for posting a link to a different page when they have no descendants, or to display the related lines in the secondary report below the IR when they do. I created a new page with the report query modified to a route of tree and keep the upper level lines. It is much more effective than the original query and simplifies the logic necessary for the verification of end-nodes. Instead of generating a URL link (which violates the separation of concerns), the query returns of the discrete values that can be used to implement the HTML link in the Icon View link Custom property:

    with icon_tree as (
          select
              ic.id_icon
            , ic.icon_name
            , ic.link_name
            , nullif(connect_by_isleaf, 1) is_parent
            , level depth
          from
              icons ic
                connect by
                    prior ic.link_name = ic.id_parent
                start with
                    ic.id_parent is null)
    select
        id_icon
      , icon_name
      , link_name
      , apex_util.get_blob_file_src('P10_ICON_IMAGE', id_icon) img_src
      , nvl2(is_parent, '586', link_name) target
      , nvl2(is_parent, 'P586_ID_PARENT', null) parent_item
      , nvl2(is_parent, link_name, null) parent_id
      , :app_id app_id
      , :app_session app_session
      , :debug debug
    from
        icon_tree
    where
        depth = 1
    

    In the interactive report, Use Custom Icon Link is set to Yes, and the custom link is:

    
      
      
    #ICON_NAME#

    Public static ID icons and results are applied to the IR and the regions second report respectively for use as selectors in action dynamics and CSS. The protected value property for the page P586_ID_PARENT element must be set to No for the value can be defined by a dynamic action.

    Dynamic action with several real actions is needed to bind alternatives click behavior to the links on the icons that have descendants (i.e. where the data-parent-id attribute has a value):

    Event: Click

    Selection type: jQuery Selector

    jQuery Selector:.apexir_WORKSHEET_ICONS a:not([data-parent-id=""])

    Real Actions

    Seq: 10

    Action: Delete the class

    Class:selected

    Selection type: jQuery Selector

    jQuery Selector:.apexir_WORKSHEET_ICONS a

    Seq: 20

    Action: Add the class

    Class:selected

    Selection type: trigger element

    Seq: 30

    Action: Set value

    Wait for result: Yes

    Type of value: Expression of JavaScript

    JavaScript expression:$(this.triggeringElement).attr('data-parent-id')

    Selection type: Agenda

    Point: P586_ID_PARENT

    Seq: 40

    Action: Discount

    Selection type: Region

    Region: results

    Seq:50

    Action: Show

    Selection type: Region

    Region: results

    Seq: 60

    Action: Cancel event

    Finally, add a style sheet to the Inline CSS property page. Initially, this hides the secondary report and select the parent clicked icon:

    #results {
      display: none;
    }
    #icons .apexir_WORKSHEET_ICONS a {
      border: 1px solid transparent;
      border-radius: 3px;
      padding: 0.8em 0 0.5em;
    }
      #icons .apexir_WORKSHEET_ICONS a.selected {
        border-color: #6a9cda;
        background-color: #bbd1ec;
        transition: 0.6s;
      }
    

    However, after all it is the question of why you use an interactive report here if you turned off all the features of the IR? A dynamic list with a custom template box seems to be more applicable?

  • How to change the lines in the interactive report?

    I want to change the lines in interactive reports before and after filtration. I added "edit_link in SQL and the column in the region but settings I don't know how to load data into the page with form created for editing data in line.

    There are examples in the sample applications, but the steps are.

    Create a new page which, with the right ID available, select the database details and allow you to edit the details and save them in return. A positive result of the Save (or cancel) arange the page with a branch back to your interactive report.

    On your interactive report, for your chosen link column, set it to branch to the page you created above and set the item of page ID on the page to the value of the ID in your crrent folder.  Selection lists will help here.

    Now, by clicking on your link edit show open the new page and select the details of the database preparation n for any update, you choose to make and record.

    Stewart

  • Insert a button Delete in an interactive report

    Hi all

    I just watched this series of tutorials with great interest and made the entire application:

    http://apps2fusion.com/at/KR/391-Oracle-Apex-person-details-tutorial-02-delete-functionality

    Now I'm wondering if it is possible to do the same with an interactive report. Basically, I want to create a button "remove and edit" into 2 separate columns (integrated in the report).

    I add a column zero, but it does not work the same way... am I wrong? Is there another way appropriate to achieve this? I get a strange result (IE can not display the icon etc.)

    SELECT NULL "Button", JJ. CD_PERM, LAST_NAME, NAME, DT_NAISSANCE, SEX, ANNEE_SESSION, CD_PGM, UNIV_ACCUEIL, INST_ABRG, DUREE_SEJOUR
    OF DAF_COURT_SEJOUR_BOURSIER CLSD, GP GEN_PERSONNE, SD DAF_DICTIONNAIRE DAF_TB_INST DTI
    WHERE
    DD.NO_PERSONNE = GP.NO_PERSONNE AND
    DD CD_PERM GROUP CLSD. CD_PERM AND
    CLSD. UNIV_ACCUEIL = DTI. CD_INST


    Sorry for my bad English!

    Thanks for your time

    Jeff.

    Hello Jeff,.

    First an interactive report has a default link column in its properties. Simply go to the details of EI and section "link." From there on out, it will be easy enough to implement one of two buttons. For a second, we'll miss sections link. So for this one, you could do several things, such as the selection of the image of your sql query:

    SELECT '' "Button", DD.CD_PERM, NOM_FAMILLE, PRENOM, DT_NAISSANCE, SEXE, ANNEE_SESSION, CD_PGM, UNIV_ACCUEIL, INST_ABRG, DUREE_SEJOUR
    FROM DAF_COURT_SEJOUR_BOURSIER DCSB, GEN_PERSONNE GP, DAF_DICTIONNAIRE DD, DAF_TB_INST DTI
    WHERE
    DD.NO_PERSONNE = GP.NO_PERSONNE AND
    DD.CD_PERM = DCSB.CD_PERM AND
    DCSB.UNIV_ACCUEIL = DTI.CD_INST
    

    And just add a link in the column itself.

    Greetings,
    Rutger
    http://rutgerderuiter.blogspot.com/
    ===============================================================================
    You can reward this answer by marking as being useful or correct ;-)

    Published by: Rutger on May 14, 2009 13:41

  • What is the best way to connect the two interactive reports?

    Hello

    =================
    Set of bottom-up
    =================
    I created two interactive reports - report on the project on the project page and report of tasks in a task.
    Project report on the project page can contain several projects.
    Report of the tasks in a task can contain several tasks.
    A project can have several tasks.
    But a task can have only one project.


    =================
    What I'm trying to reach
    =================
    When I click on a project name, it must pass The ID of project of work page and view jobs that are established for the project.
    When I create a new task, past project ID must be mapped to the task.


    =================
    Challenges
    =================
    1. How can I pass Project ID of the project page on the task page while clicking on the project name in the project page ?
    2. How can I get the project name in the page of work based on the project ID goes from the project page ?
    3. How can I view jobs related to the name of the project ?
    4. How can I take project ID passed to the task page and map it to a new task?

    Thank you
    Guy

    1. How can I pass project page ID of the project to the task page while clicking on the project name in the project page?

    Create point hidden in a task, for example: P2_PROJECT_ID. That the link on the column to the task page:
    Interactive report-> column change-> link.

    2. How can I get the project name in a task based on the project ID password page of the project?

    There are two ways you can create a function that will return the name of the project by id or you can post the name of the project to the task page (the second way is dangerous, you can miss some parts of your project name if you have a symbol ',')

    3. How can I view the tasks on behalf of the project?

    In the interactive report source add condition to your query, for example:
    and task_table.project_id =: P2_PROJECT_ID

  • Interactive report attributes: missing a column?

    It comes to Application Express 3.2.1.00.12

    I'm working on a report with columns drawn in a SQL statement in the definition of the region of the screen section interactive report attributes. We want to change the column names, so that they are more user-friendly, so forth that the report attributes tab, I'm looking for the name of the column, we want change, but it does not appear. Now, in the final report, the column is visible with the name of the column in the database header, so the system is aware of the column and can display it, but for some reason that we cannot see in the report attributes tab.

    Why a column would be invisible or inaccessible in the report attributes tab? There are 100 columns displayed in the attributes report: section of the column attributes. Is this the reason why I'm missing some columns; 100 is a hard column on this page limit?

    Thanks in advance for any help you can provide.

    Matthew Nagler

    Published by: user13579247 on July 20, 2011 10:45

    Published by: user13579247 on July 20, 2011 12:20

    Hello

    You are almost right place. You must click before the 100th column name, to screen where you can change column attributes.
    In the top right is buttons (Cancle, apply, < and=""> )

    Kind regards
    Jari

    Published by: jarola July 21, 2011 17:43

    He could documentation will guide you to the right screen
    http://download.Oracle.com/docs/CD/E14373_01/AppDev.32/e11838/app_comp.htm#sthref978

    >
    To access the attributes of the column:

    1. on the homepage of the workspace, click the icon of the Application Builder.

    2. Select the application.

    3. Select a page. The definition of Page appears.

    4. According to the regions, click interactive report next to the name of the region of report you want to edit.
    The page Interactive report attributes with the attributes of the column at the top of the page section is displayed.

    5. to access the column attributes page, click Edit next to the Alias column.

    >

    Published by: jarola July 21, 2011 17:44

  • In passing a filter in an interactive report + hiding a filter of the end-user

    Hello

    I'm passing a predefined filter in an interactive report, this report opens with records, filtered to a specific value.
    The user selects the value in a previous page, then, when he press the 'next' button, the interactive report opens with documents related to his selection only.

    But! The filter is displayed in the search bar, and end users can delete it.
    I need to disable or hide the filter, so that the user will not be able to remove it!

    Thank you very much for the review!

    Looks like you shouldn't make it an IR filter but just pass on a hidden element and add a where clause clause that limits this value - this way, your users can filter even more by using all the features of IR, but inside where the clause you have in backstage.

    -Sharon

  • The column titles and interactive reports

    I noticed that when you create an interactive report (IR) with a name such as "PEI", when the IR is displayed, it comes out as "Pei". Short change this manually for all names of columns like this, is there a way to prevent the IR to make this 'conversion '. Other columns such as 'DOCUMENT ID' out like 'Document Id'. I really don't want to do this to the column titles, as acronyms that I want to appear as entirely in capital letters.

    Use custom column names... Cape of init is default IR

  • Questions about the icons for interactive report

    When I created an interactive report, rectangular icons were created automatically on the left side of the report on each line.
    When you click on one of the icons, it displays the details of the line in vertical order.

    Here are my questions:

    1. when I hid a few columns in the interactive report and clicks on the icon, it does not display the details of the hidden column. But I want to hide these columns in the report but displays all the details when you click the icon. How can I do this?
    2. How can I hide the icons?
    3. How can I use the icons don't not to view the details of a line, but towards a modifiable page to edit the same details?

    Thank you
    Guy

    Hello

    1. when I hid a few columns in the interactive report and clicks on the icon, it does not display the details of the hidden column. But I want to hide these columns in the report but displays all the details when you click the icon. How can I do this?

    You can create another region, or the page that will show you your line of description of identifier, or rowid. You can do this by changing the column type of link to "target of the link to Custom.

    2. How can I hide the icons?

    Access the interactive report-> column-> change of link column link (link column exclude)

    3. How can I use the icons don't not to view the details of a line, but towards a modifiable page to edit the same details?

    The same as answer 1.

    Best regards, Kostya Proskudin!

Maybe you are looking for