Interactive report - last page

Hello

I tried to find a solution for this and you guys were great to help me b4 I thought I should give it a go.
I have an IR on my page so I would be able to jump to the last page by default when the page loads - the aggregation IR are visible.
So, is it possible to configure the IR on the last page of a default display?

I looked around and found the following post:
Alignment of the column / paging in interactive reports

Unfortunatelly the provided script does not work in my page and my javascript skills are only at the base, I'll try to look through to see if I can use the idea.
Is it possible to maybe write a javascript to access the last page of my IR? I think, like the use of window.onload ="".

Kind regards
Honza

I think the problem is that you cannot know which is the last page of the report.
Today, it could be page 5 tomorrow with different data or with different line settings as page 74.

In my view, there are a few variables APex you can use after the report is retrieved, but not before it. The downside is even if it works you need to retrieve all the data from the database and treat it on the client. Generally, it is better (faster =) to allow the database to process all the this stuf data. It is what it is good.

I often have similar wishes of my users. There are several ways to work around the problem.

(1) create a second report (region) that shows just the money. Downside is that the same query is executed twice and that some filters are not considered.
(2) use pure SQL. Add a line for the TOTAL and order the report so that this line is on the top.

example for this

Assume that the SQL is like that

select empno, firstname, lastname, salary
from hr.employees;

so, you want to add a countdown for the ID and a sum for wages. If the ID is never null you can do like this

select firstname,
   nvl2(empno, lastname, 'total') as lastname,
   nvl(empno,count(*)) as empno,
  nvl2(empno, salary,sum(salary)) as salary
from hr.employees
group by rollup (( empno, firstname, lastname, salary))
--order by empno nulls first
;

The double parenthesis after the rollup are important to define the group.

This is a simplified request there are better and more detailed versions if you switch group by rollup to group sets. But I don't want to go into too much detail now.

Published by: Sven w. on May 31, 2010 17:34

Tags: Database

Similar Questions

  • Footer text region appearing to the right of the BAR INTERACTIVE REPORT SEARCH page

    We are the migration of Express 4.2.1 application at Apex 5.0.2


    We use the 22 Bluejay theme.

    In my interactive reports, I the text entered in the regions 'Header and footer' > footer text, including 4 Apex, rendering at the foot of the report.

    The Apex 5, the same text renders in a new column to the right of the search bar of interactive report.

    Is it a question of model, or a builder bug?

    I can't find where in the model I can adjust the positioning of the text 'Footer region'

    Gus...

    I worked on it a little more.

    just to say that I use the Chrome browser.

    I worked as designer of the Page view and impossible to find using the attribute "footer text".

    I went to the view of the component and found help.

    It is said...

    Enter a footer area to display directly after the body content (that is, after #BODY# in the model of the region) or instead of #REGION_FOOTER #, where this substitution string is defined in the model.

    So I added #REGION_FOOTER # div AFTER the body...

    #BODY #.
    #REGION_FOOTER #.

    Hurrah!  the footer is now in the right place...

    Also, I noticed that if I placed an HTML element
    in the text, footer text would be in the correct position without having to change the model.

    Gus...

  • An interactive report partial Page Refresh

    Hello

    I use apex 4.0.1 and I have a page with an interactive report that displays different data to the user. The user can change the data by clicking on a column that uses a href link to open a page of DML in a modal window. The user can then modify some data in the modal window, tap on save that closes the modal window and uses the process of partial page refresh to refresh the report. (With the help of apex.event.trigger('#SOME_REGION'), 'apexrefresh')).

    If I navigate through the interactive report to show lines 31 to 45 and then click a href to edit a record. Pressing save, the interactive report is updated, but the displayed lines goes back to 1-15.

    How can I get the interactive report for stay showing lines 31 to 45?

    See you soon

    Paul.

    Hello

    You can try to use the undocumented feature

    gReport.pull();
    

    Kind regards
    Jari

  • Several interactive reports on a single page?

    I use interactive reports in a few places in an APEX application. I find them valuable as a kind of "generator" that the user can do a lot with.
    On a particular page, I have a radio button, offering to the user two possibilities. As one that they select, I want to show another interactive report. Each of them running different SQL with different number of columns.
    By default I can't do that in APEX 3.1.2 - when I try to add the second I get the message + "interactive report already exists on the page...". "You can only add an interactive report by page +".
    I tried to set the view state so that one wouldn't show, but I'm still not allowed to create the second.
    I guess I could create a branch to two different pages, depending on radio button option the user selects, but the option box is one of a few other entries form I need of the user, the other being a few dates and selections from drop-down list box.
    I want to keep these elements form visible above the interactive report, and I do not know how if I'm leaving braching to different pages for interactive report.

    Hope this makes sense to someone...
    Thank you.

    The best way we found to include several Irs on one page is to copy... Either in the same page or on another page. When copying IR #2, we had the condition for IR #1 set to NEVER. Viewing the report of your choice can be done either by defining a list of radio with submit and conditional display for each report, or by allowing end users to customize the page, with a single report is displayed by default.

    I hope this helps.

    Vojin

  • Creating interactive reports Hyperion installation assembled lack?

    Hello

    Trying to install interactive of the Enterprise Performance Management suite version Reporting 11.1.2.4.0, downloading programs Client of EMP and the EPM System Release file1 system installation, File2 and File3 File4 on this download Hyperion Foundation Services downloads page as well as part 7 and Oracle HTTP Server since this Oracle Hyperion Interactive Reporting downloads page. I extracted them all in the same folder and when I go to install the components of interactive reporting is grayed out and I get the following errors:

    EPMINS-01047: the Assembly biplus_core_services is missing. The Assembly is needed to install a selected component.

    Status: EPMINS-01016: impossible to install the selected component. Click help to see the possible reasons.

    I was wondering what I am missing in my downloads? What download includes the bi_plus_core_services Assembly?

    Part 4 should be biplus_core_services

    Also I recommend to download the files from https://edelivery.oracle.com/

    See you soon

    John

  • Permission interactive report Menu

    Hi all

    I'm working on APEX 4.2.

    My question is related to the 'Actions' interactive report Menu. I have the schema for custom authorization distinguishing users to be "Admin" and "General" users. I want this 'Format' inside the Actions menu interactive report only works for Admins and not for other users.

    I don't see any way to authorize it. Can it be done? Is this feasible?

    Thank you

    Sunil Bhatia

    Kiran Pawar says:

    Hi Sunil Bhatia,

    Sunil Bhatia wrote:

    Hi Kiran,

    Thank you. It seems to work very well in 4.2 APEX. 2 questions I have:

    1 APEX 5.0 is not similar "apexir_FORMAT_MENU" of the id etc. What to do in this case?

    2. I see not any Id if still go us inside the menu format. Suppose I wish to restrict only aggregate and fate to the admin and relies on users in general.

    Any idea on these issues?

    Thank you

    Sunil Bhatia

    Yes, they (Oracle APEX development team) have rewritten the IR functionality in APEX 5.0.

    There no id to put in shape the options of the menu/menu like APEX 5.0, several IR features are introduced.

    In a valid HTML markup, id should be assigned to one and only one tag, so there is no ID of IR APEX 5.0 from previous versions where interactive report per page is allowed.

    How to identify what menu option to hide/show it takes little research on jQuery selectors.

    How to target the menu 'Actions' of particular IR (assume that there are several IRs), is to use the static region for IR and then ID through jQuery selectors, you can select the particular item in the closed area. For example, you can use the parent-child selector.

    I'll post an example of the same thing in a while.

    Good luck with that. The new structure (supposed to be improved) has no specific hooks, only arbitrary IDS and generic classes option. Looks like you will need to select the content option (which can cause the complexity of the problems/extra in translated apps) or classes icon. Using either, you have to cross to the top the tree to get the required parent nodes that will not be effective.

    The elephant in the room here is that security functions can be implemented using JavaScript and dynamic actions only. If the server displays the content then you should assume that the user (or an attacker) has access to it.

    4.2, the safest is to create 2 IR separate pages with the authorisation schemes applied and also to use the authorisation schemes to control the connection to the correct page depending on the privileges of the user. In 5.0, you can take advantage of the ability to have several IR regions on one page and use the authorization scheme to control one appears. Yes, it's repetitive, but it's also safer.

    Added support for the authorisation on the actions of the IR schemes would be a great feature request...

  • Interactive report - edit

    I have an interactive report that displays data from a table.
    I had initially done this as unchangeable. Nobody can change the data but only discovers what is returned by the query in the interactive report.
    Now I asked me to provide the functionality where data can be edited or removed from the report.

    How can I do this? What to do or where to make changes so that the interactive report can be changed and deleted values?

    Any help appreciated.

    Hello

    First create a page with the form to create/modify/delete files box.
    Right click on the region of interactive report in Page rendering, and then select change report attributes. Go to the link column and select link to custom target.
    In this Application as a target, and then the Page number, select the Page. This page should be a form by which you create/Update/Delete records.
    Select the item. This must be the primary key of the form and the value must be the value of interactive report. Click the LOV. It shows the interactive report values.

    This allows to link to change/remove files form.

    Thank you
    Mehabub

    Published by: Sheikh Mehabub 26 Sep, 2012 22:38

  • Using the page as a condition for interactive report item value

    Hello. I add a button named edit in one of the interactive report column. This button should be displayed under certain conditions. Conditions are 1) If the user is Mencis and 2) value of the page called P2_DUMMY is 2. The value of P2_DUMMY is to 2 when a button is clicked. I defined a dynamic action for this. The problem is that I don't know what the condition of being added to the interactive report query.


    I tried

    CASE WHEN: APP_USER IN ('Mencis"). WHEN BOX: P10_DUMMY = 2 THEN ' < button type = "button" class = "button-default"; ">

    < span > edit </span > < / button > ' END I just get errors.

    If I just put the condition as

    CASE WHEN: APP_USER IN ('Mencis") THEN ' < button type ="button"class ="button-default "; "> < span > edit </span > < / button > ' END

    button is displayed in the report. If I add the second condition, all I get is error. I don't know how Add an element value of the page as one of the interactive report conditions. Please help me on this.

    Mencis Joe wrote:

    Hello. I add a button named edit in one of the interactive report column. This button should be displayed under certain conditions. The conditions are 1) if the user is Mencis and 2) value of the page called P2_DUMMY is 2. The value of P2_DUMMY is set to 2, when a button is clicked. I defined a dynamic action for this. The problem is that I don't know what the condition to be added to the interactive report query.

    I tried

    CASE WHEN: APP_USER IN ('Mencis"). WHEN BOX: P10_DUMMY = 2 THEN '' END I just get errors.

    If I just put the condition as

    CASE WHEN: APP_USER end of '' ('Mencis") THEN

    the button is displayed in the report. If I add the second condition, all I get is error. I don't know how to add a value to the page element as one of the interactive report conditions. Please help me on this.

    Combine the predicates in the CASE expression by using an AND condition:

    case
      when    :app_user = 'Mencis'
          and :p10_dummy = 2
      then
        ''
    end
    

    Hardcode a condition like the :app_user = 'Mencis' is likely to prove problematic for all sorts of reasons, not least including the value of APP_USER is uppercase by default, unless otherwise during authentication.

    Note that the semicolon and extra double quotes in are not valid.

  • 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

  • Application of interactive report of apEx using the last value of the point

    My interactive report is based on a field, but the value of the field is not applied when executing the query

    SELECT *.

    MyTable FROM A

    where A.registration_year =: REGISTRATION_YEAR_ITEM

    I created an item in the page REGISTRATION_YEAR_ITEM

    When I run the query, I want the user to type in a year, and then run the query and display the corresponding results.

    The query always seems to use the default value of points instead of the current value

    How can I do use the value of the current field?

    I also tried the V method, but produce the same results

    where A.registration_year = v('REGISTRATION_YEAR_ITEM')


    The environment is ApEx 312, 10.2.0.4 database

    Unfortunately, the upgrade is not an option


    Thanks for any help you can offer

    S.Bovin wrote:

    My interactive report is based on a field, but the value of the field is not applied when executing the query

    SELECT *.

    MyTable FROM A

    where A.registration_year =: REGISTRATION_YEAR_ITEM

    I created an item in the page REGISTRATION_YEAR_ITEM

    When I run the query, I want the user to type in a year, and then run the query and display the corresponding results.

    The query always seems to use the default value of points instead of the current value

    How can I do use the value of the current field?

    Add the REGISTRATION_YEAR_ITEM to the IR Page elements to submit property. He will submit the current value in session state.

    Why bother with the page element at all? Why users can't create just an IR filter?

    I also tried the V method, but produce the same results

    where A.registration_year = v('REGISTRATION_YEAR_ITEM')

    For performance reasons, use bind variable notation when you reference values from session state in SQL queries.

    The environment is ApEx 312, 10.2.0.4 database

    Unfortunately, the upgrade is not an option

    Why not? That it will provide you with a safe and supported environment and your users with a much better life.

  • Refresh the interactive report without scrolling page?

    Hello.

    I have a page with three interactive reports arranged vertically on the page. I want that each of these reports to refresh automatically, so I added the following to my page header:

    setInterval ("jQuery('#report1').trigger ('apexrefresh');", 10000);

    setInterval ("jQuery('#report2').trigger ('apexrefresh');", 10000);

    setInterval ("jQuery('#report3').trigger ('apexrefresh');", 10000);

    The code works and the data is refreshed, the problem is that when this happens APEX seems to focus on the report, it is refreshing and page scrolls to it. This means that the user could be down at the bottom of page 3 of the report but every 10 seconds they are caught back to 1 at the top of the page report.

    Is it possible to refresh the reports without going through the emphasis placed on them?

    I use the Application Express 5.0.0.00.31

    Thank you very much.

    Andrew V wrote:

    Hello.

    I have a page with three interactive reports arranged vertically on the page. I want that each of these reports to refresh automatically, so I added the following to my page header:

    setInterval ("jQuery('#report1').trigger ('apexrefresh');", 10000);

    setInterval ("jQuery('#report2').trigger ('apexrefresh');", 10000);

    setInterval ("jQuery('#report3').trigger ('apexrefresh');", 10000);

    The code works and the data is refreshed, the problem is that when this happens APEX seems to focus on the report, it is refreshing and page scrolls to it. This means that the user could be down at the bottom of page 3 of the report but every 10 seconds they are caught back to 1 at the top of the page report.

    Is it possible to refresh the reports without going through the emphasis placed on them?

    I use the Application Express 5.0.0.00.31

    See APEX 5 - IR r region without losing the focus on the region of origin for a similar problem, but I do not think that the workaround solution discussed here will be of use to you.

    APEX 5.0.1 patch that contains a fix for this problem is now installed on apex.oracle.com. Try your page there to see if it solves your problem. The patch should be made public quickly.

  • How to print a text at the bottom of the last page in oracle reports 10g

    Hi all

    How to print a text at the bottom of the last page of a report. If the last page have one or two lines I want to display text as totals at the bottom of the last page only.

    https://community.Oracle.com/thread/23276?start=60&TSTART=0

    Metalink document: 253881.1

    Topic: How to create a report with a frame only on the last Page to a location set

  • Update of the elements on the Page regarding filters in Oracle APEX interactive report

    I recently started using interactive reports in my Oracle APEX application. Previously, all pages in the classic application reports. The interactive report in my new page works fine, but now, I would like to add a summary box/table above the interactive report on the same page that displays values added some columns in the interactive report. In other words, if my interactive report displays 3 names of separate Manager, 2 separate offices and 5 different employees, my summary (box) will contain a line and three columns with numbers, 3, 2, and 5, respectively.

    So far, I did this job creating the box summed up as a classic report that account of the distinct values for each column in the same table that my interactive report pulls. The problem is when I try to filter my interactive report. Of course, the classic report is not updated based on the interactive report filters, but I don't know how I could link the two so that the classic report meets interactive report filters. From my research, there are ways to refer to the value in the search box of the interactive report using javascript/jquery. If possible, I would like to refer to the value of the filter of the interactive table with javascript or jquery to refresh the summary box whenever a new filter is applied. Does anyone know how to do this?

    Thanks, Patrick! I was always getting some of the old filters for a reason, but I was able to use the tables included in queries to retrieve my ID to report, that I used in the APEX_IR. Function GET_REPORT.

    More details here.

  • How to plan an interactive report page to be emailed

    Gurus,

    I want to fill the same function, as described in How to plan an interactive to be emailed report page :

    http://download.Oracle.com/docs/CD/E17556_01/doc/user.40/e15517/app_comp.htm#sthref1192

    http://download.Oracle.com/docs/CD/E17556_01/doc/admin.40/e15521/aadm_mg_service.htm#sthref58

    but I can't find the documents referenced in How to plan an interactive to be emailed report page. Can someone send me the new links...

    APEX 4.1.1.00.23

    -Oracle database 10g 10.2.0.5.0

    Thank you

    Robert

    Found this online: creating and customizing an interactive report

    Towards the end of the document is the instruction on how to take out a subscription of interactive report...

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

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

Maybe you are looking for