Question regarding Repeating Frames...

Hi
I've been using Oracle Reports for a short time. I am trying to accomplish something within a repeating frame but can't seem to get it to work.
The results I receive from my SQL query are in the form of a month associated with a numeric value. These values are being repeated in the frame, so the rows are displayed as: Calendar Period of January value of 5 - Calendar Period of February value of 10, Calendar Period of March value of 15, etc...
The values are cumulative in my results so I need to subtract the prior month from the current one. I can't figure out how to do this in Reports.
Is there a way to retrieve a value from the previous frame in a repeating frame? I know I can create a Function to do the calculations. My problem is accessing the value prior to the one being displayed.
Thanks

There are probably a variety of ways to do this. Probably the easiest is to use the LAG function in the actual SQL statement. The example below is taken from the Oracle SQL reference.
SELECT last_name, hire_date, salary,
LAG(salary, 1, 0) OVER (ORDER BY hire_date) AS prev_sal
FROM employees
WHERE job_id = ’PU_CLERK’;
LAST_NAME HIRE_DATE SALARY PREV_SAL
Khoo 18-MAY-95 3100 0
Tobias 24-JUL-97 2800 3100
Baida 24-DEC-97 2900 2800
Himuro 15-NOV-98 2600 2900
Colmenares 10-AUG-99 2500 2600

Similar Messages

  • Question about repeating frames

    I am producing a summary report.
    I have several querys that produce different counts.
    for each query I have to have a different repeating frame to display the count.
    However if I produce a summary column on that querys information I do not
    need to repeating column.
    My question is which way is better?
    Thanks

    I am curious. Does your repeating frame only display the total count? It's hard to say which way is better, although you could try qualifying the two on certain criteria. Do they both display the same data you (or the user) wants to see? Which way is easier on you to set up? Did you already do it one way and is it working? If so, is the current way running satisfactory?
    I think a lot of times developers waste hours upon hours trying to make something run a few seconds quicker for a user that may only use the program a couple times a month if that.
    Personally I would use the summary column method. If for no other reason, that it is more manageable to me as the developer to alter a field than it is to alter a frame.

  • Quick question about repeating frames

    Hello,
    I just wonder if I have a three frames long movieclip and I want a script on the second frame that tells it to begin from frame 1 again so it keeps replaying from 1 to 2 all the time. But I'm able get to frame 3 with gotoAndPlay using a key or button.
    So it's a script that tells flash to go to the first frame I need help with.
    Thank you.

    on frame 2,
    gotoAndPlay(1)

  • I have some questions regarding setting up a software RAID 0 on a Mac Pro

    I have some questions regarding setting up a software RAID 0 on a Mac pro (early 2009).
    These questions might seem stupid to many of you, but, as my last, in fact my one and only, computer before the Mac Pro was a IICX/4/80 running System 7.5, I am a complete novice regarding this particular matter.
    A few days ago I installed a WD3000HLFS VelociRaptor 300GB in bay 1, and moved the original 640GB HD to bay 2. I now have 2 bootable internal drives, and currently I am using the VR300 as my startup disk. Instead of cloning from the original drive, I have reinstalled the Mac OS, and all my applications & software onto the VR300. Everything is backed up onto a WD SE II 2TB external drive, using Time Machine. The original 640GB has an eDrive partition, which was created some time ago using TechTool Pro 5.
    The system will be used primarily for photo editing, digital imaging, and to produce colour prints up to A2 size. Some of the image files, from scanned imports of film negatives & transparencies, will be 40MB or larger. Next year I hope to buy a high resolution full frame digital SLR, which will also generate large files.
    Currently I am using Apple's bundled iPhoto, Aperture 2, Photoshop Elements 8, Silverfast Ai, ColorMunki Photo, EZcolor and other applications/software. I will also be using Photoshop CS5, when it becomes available, and I will probably change over to Lightroom 3, which is currently in Beta, because I have had problems with Aperture, which, until recent upgrades (HD, RAM & graphics card) to my system, would not even load images for print. All I had was a blank preview page, and a constant, frozen "loading" message - the symbol underneath remained static, instead of revolving!
    It is now possible to print images from within Aperture 2, but I am not happy with the colour fidelity, whereas it is possible to produce excellent, natural colour prints using its "minnow" sibling, iPhoto!
    My intention is to buy another 3 VR300s to form a 4 drive Raid 0 array for optimum performance, and to store the original 640GB drive as an emergency bootable back-up. I would have ordered the additional VR300s already, but for the fact that there appears to have been a run on them, and currently they are out of stock at all, but the more expensive, UK resellers.
    I should be most grateful to receive advice regarding the following questions:
    QUESTION 1:
    I have had a look at the RAID setting up facility in Disk Utility and it states: "To create a RAID set, drag disks or partitions into the list below".
    If I install another 3 VR300s, can I drag all 4 of them into the "list below" box, without any risk of losing everything I have already installed on the existing VR300?
    Or would I have to reinstall the OS, applications and software again?
    I mention this, because one of the applications, Personal accountz, has a label on its CD wallet stating that the Licence Key can only be used once, and I have already used it when I installed it on the existing VR300.
    QUESTION 2:
    I understand that the failure of just one drive will result in all the data in a Raid 0 array being lost.
    Does this mean that I would not be able to boot up from the 4 drive array in that scenario?
    Even so, it would be worth the risk to gain the optimum performance provide by Raid 0 over the other RAID setup options, and, in addition to the SE II, I will probably back up all my image files onto a portable drive as an additional precaution.
    QUESTION 3:
    Is it possible to create an eDrive partition, using TechTool Pro 5, on the VR300 in bay !?
    Or would this not be of any use anyway, in the event of a single drive failure?
    QUESTION 4:
    Would there be a significant increase in performance using a 4 x VR300 drive RAID 0 array, compared to only 2 or 3 drives?
    QUESTION 5:
    If I used a 3 x VR300 RAID 0 array, and installed either a cloned VR300 or the original 640GB HD in bay 4, and I left the Startup Disk in System Preferences unlocked, would the system boot up automatically from the 4th. drive in the event of a single drive failure in the 3 drive RAID 0 array which had been selected for startup?
    Apologies if these seem stupid questions, but I am trying to determine the best option without foregoing optimum performance.

    Well said.
    Steps to set up RAID
    Setting up a RAID array in Mac OS X is part of the installation process. This procedure assumes that you have already installed Mac OS 10.1 and the hard drive subsystem (two hard drives and a PCI controller card, for example) that RAID will be implemented on. Follow these steps:
    1. Open Disk Utility (/Applications/Utilities).
    2. When the disks appear in the pane on the left, select the disks you wish to be in the array and drag them to the disk panel.
    3. Choose Stripe or Mirror from the RAID Scheme pop-up menu.
    4. Name the RAID set.
    5. Choose a volume format. The size of the array will be automatically determined based on what you selected.
    6. Click Create.
    Recovering from a hard drive failure on a mirrored array
    1. Open Disk Utility in (/Applications/Utilities).
    2. Click the RAID tab. If an issue has occurred, a dialog box will appear that describes it.
    3. If an issue with the disk is indicated, click Rebuild.
    4. If Rebuild does not work, shut down the computer and replace the damaged hard disk.
    5. Repeat steps 1 and 2.
    6. Drag the icon of the new disk on top of that of the removed disk.
    7. Click Rebuild.
    http://support.apple.com/kb/HT2559
    Drive A + B = VOLUME ONE
    Drive C + D = VOLUME TWO
    What you put on those volumes is of course up to you and easy to do.
    A system really only needs to be backed up "as needed" like before you add or update or install anything.
    /Users can be backed up hourly, daily, weekly schedule
    Media files as needed.
    Things that hurt performance:
    Page outs
    Spotlight - disable this for boot drive and 'scratch'
    SCRATCH: Temporary space; erased between projects and steps.
    http://en.wikipedia.org/wiki/StandardRAIDlevels
    (normally I'd link to Wikipedia but I can't load right now)
    Disk drives are the slowest component, so tackling that has always made sense. Easy way to make a difference. More RAM only if it will be of value and used. Same with more/faster processors, or graphic card.
    To help understand and configure your 2009 Nehalem Mac Pro:
    http://arstechnica.com/apple/reviews/2009/04/266ghz-8-core-mac-pro-review.ars/1
    http://macperformanceguide.com/
    http://www.macgurus.com/guides/storageaccelguide.php
    http://www.macintouch.com/readerreports/harddrives/index.html
    http://macperformanceguide.com/OptimizingPhotoshop-Configuration.html
    http://kb2.adobe.com/cps/404/kb404440.html

  • Report, Make a linkage group for two pages each page has a Repeating frame

    I Have two pages. And each page have a repeating frame inside a main frame.
    And two pages have a relational data. So, I should to make a linkage group for this two page.
    In my case,
    PAGE 1.
    *M_1 Main frame start
    R_1 Repeating Frame start
    Personal Data Part 1.
    R_1 Repeating Frame end
    *M_1 Main Frame end
    PAGE 2.
    *M_2
    R_2
    Personal Data Part 2.
    R_2
    *M_2
    If there are 3 peoples information, Repeating frame will display continuously.
    In my case,
    page 1
    page 1
    page 1
    page 2
    page 2
    page 2
    But I want to do the following.
    Page 1. -- 1st person's data
    Page 2.
    Page 1. -- 2nd person's
    Page 2.
    Page 1. -- 3rd.
    Page 2. so on...
    I need your help.
    please let me know how to solve this problem.

    Hi,
    i have a question related to this.
    i am making a report in a similar pattern:
    *M_1 Main frame start
    R_1 Repeating Frame start
    Data Part 1.
    R_2 Repeating Frame start
    Data Part 2.
    R_2 Repeating Frame end
    R_1 Repeating Frame end
    *M_1 Main Frame end
    Now the problem is that whenever there are multiple occurences of data in R_2, the data Part 1 is also printed that many times, whereas i want to show this just once.
    Is there any way to do this?
    Regards,
    Swati

  • How can I add a field to a Repeating Frame in the body of a 9i Report

    How can I add a field to a Repeating Frame in the body of an Oracle 9i Report whose source is in a higher group?
    I want to change an Oracle 9i report. The report has no header or trailer but only a body. The body has the parent frame fields & a repeating frame with four fields, A, B, C & D. They all seem to be in one group. I want to add another field E to the repeating frame whose source is from the 'header'.
    I added the field & created a boiler plate & then added the new field, E to the original group A, B, C & D. In the Property Inspector for the field, I pointed the source to the source column in the main query. However, when I run the report, I receive the error "Invalid body size". Some notes on Metalink indicate that this could be due to margins being out of the printable area.
    Moreover, after making the changes & after having unsuccessfully run the report, when I try to open the Page Layout for the report, I get no details.
    Thanks,

    Hi,
    i also got same query can u pls tell me elaborately, if u can can u pls send some code.
    Thanks & Regards
    Jagadeeshwar.B

  • How to get the number of rows in a repeating frame ?

    Hi all,
    When I launch a report from forms then sometimes there are data in the report and sometimes there are no data. And the problem is that when there are no data then the frame containing the repeating frame is still displaying and a blank page displays on the report.
    So I want to get the number of rows from the repeating frame so that I can code a format trigger on the frame to display or not the enclosing frame depending on the existence of data from the repeating frame.
    Thank you very much indeed.

    Dear Friend,
    You can achieve this. Define a summary column (say cnt). Select summary type as "COUNT". select any one of columns that are getting displayed in your repeating frame as summary column and provide "reset at" group name (or set this to report if you are defining this field at report level) . This "cnt" variable will contain how many records that will be fetched for your repeating frame (i.e. Group of Repeating frame). You can use this "CNT" variable in your format trigger.
    In this case there is no need to write before report trigger or anything.
    Regards,
    Manish Trivedi

  • How to find out no. of records or repeating frame in a page

    Hi All,
    How do I find out how many records have been displayed on a particular page?
    I'm having a repeating frame, and I want to know print another item, on a condition that if the records printed on the page are less than 5 then it should be printed otherwise not.
    The item to be printed is not a part of the repeating frame whoz occurences have to be counted.
    Regards
    Naveen

    Hi Naveen
    You can create a Packaged varaible that acts as
    global variable , and you can increment this
    variable in the repeating frames Format Trigger .
    Based on the value of the variable , you can
    return true or false for the item that you want to
    display .

  • Page Breaks in Repeating Frame's

    In my report, my query is a 184 column table. Select query is also a 184 column table.
    There are Repeating frames in my layout editor, each contains 10 columns. From the 2nd repeating frame onwards, the page break before property is "Yes". Now if, for the 1st repeating frame there is data (10 columns only) Then the rest of the page is blank. All the page break before property is "Yes" How do I avoid these blank pages

    Hi,
    the "page break" properties are only active in parent-child relationships. So if your frame1 is not expandable vertical, frame2 is no child object ob frame1 and so the property page break after of frame1 is not relevant for frame2. So change your layout, that frame2 is child of frame1 and frame3 is child of frame2, then the page break after will run as you expect. You can do this via the property vertical elasticity or via using an anchor between the frames.
    Regards
    Rainer

  • Footer for a report with 2 repeating frames with down/across print directio

    I have a report with a frame for title shown in first page. the content of the report is shown on two columns in a repeating frame(R2) which enclose an other repeating frame (R1). In R2, just after R1, I have a frame for totals. Both repeating frame have down/across print direction. All repeating frames and title frame are enclosed by a regular frame(let say frame A) that have vertical elasticity fixed. at the end of the report i must display an other frame(frame B) with signatures. I put frame B in frame A, just after R2. If I set vertical elasticity to fixed or contract for R2, when the title frame is missing i get an empty space in the bottom of the page(except the first page, where the title appear)(R2 is anchored to title frame). if I set vertical elasticity to variable for R2, the frame B is not shown on last page with records, but in next page. I need a solution to keep the frame B in last page of the report which have records. the problem appear only when I have records in second column.
    Can somebody help me, please?

    Hi,
    I think without using Across/Down instead of Down/Across this is not possible. But then the output is
    1 2 3 4
    5 6 7 8
    If you need to have
    1 3 5 7
    2 4 6 8
    then you had to add some logic in an additional column for sorting the output. (sounds easy, but the logic need some work depending the count of records and their position.
    Regards
    Rainer

  • Setting background image for repeating frame in .pdf report

    Is it possible to set a background image for a repeating frame, and more specifically for a repeating frame rendered in .pdf?
    I do not see any standard property in the navigator for images of any sort and the documentation touches only on setting background images for graphs, which is not the intent in my case. I -did- add an HTML table property background="myimage.jpg" but the report is ultimately generated in .pdf format and I was not surprised to see that the image was not rendered.
    Does anyone know if setting a background image as described is even possible, and if so, how? A second but less optimum solution would be setting the image as the background for all report pages, again in .pdf.
    Many thanks.

    Hi Raj,
    Yes you can have an image in the background. Thats possible if you are using XML forms as an iview or ivew dev in WebDynpro...
    Also check this [link|regarding background color change in iview]
    Regards,
    Piyush
    Reward points if this helps!!!

  • Specifying order of pages in output with repeating frames

    Hi
    I'm using Oracle Reports Builder 10g and I need help on this subject:
    I'm developing a report divided in sections that reference statistics of the partitions present in an IBM Machine. Each page in the first section appears also in the other sections of the reports, i.e. the first page of the first section (with data from partition A) has the same layout than the first page of the second section (with data from partition B in this case), which is page 14 on the final pdf report, and so on.
    For each 'kind' of page in the final report I use a repeating frame that fills a whole page in the page layout in reports builder (the parameter is the partition), so I get n output pages for each page in the rdf file (n is the number of partitions). The problem: in the resulting pdf output file, the first page of first section appears first, then the first page of second section, and so on. I need the pdf to be arranged in the correct order.
    Can someone help me on this subject?
    Thanks and regards,
    Alex

    How do you create sections?
    What is the data model?
    What is the layout model?

  • Count repeating frames occurance

    Hello,
    In the report there are multiple queries. I am trying to count the total number of repeating frames. Basically, I need to count the final output.
    When trying to use "Count" or "Sum" aggregates inside of SQL, I don't get the needed output. Is there some way to give a number to a repeating frame and then sum up its occurance? I tried different ways, but wasn't successful.
    I appreciate your help.

    Hi Slava
    Create a placeholder column, CP_1, at report level. Set its "Value if Null" property to zero.
    In the group on which the repeating frame is based, create a formula column and set its code to:
    :CP_1 := :CP_1 + 1;
    return :CP_1;
    This will (indirectly) return a running count and finally the total count of repeating frame instances.
    Regards
    Sripathy

  • Repeating frames...simple problem

    I am new to Oracle Reports and have run into a simple issue which I am not able to fix.
    Suppose that I’ve a table Numbers as shown below:
    SQL> desc numbers
    Name Null? Type
    COL1 NUMBER
    SQL> select * from numbers;
    COL1
    1
    2
    3
    4
    5
    Now I want to build a report manually(not using the wizard).
    In the datamodel I’ve given the query as (select * from numbers).
    In the layout model I am having one field and a repeating frame pointing to the group of the query. When I run the report it shows
    1,2,3…on different pages but I want all of them on the same page. I am not sure which property to set, I’ve tried the maximum records per page for the repeating frame but it doesn't help!
    If I build the layout using the layout wizard then I am able to achieve the desired results but I'll still like to know which properties exactly control this behaviour.
    Thanks in advance.
    Regards.

    Three ideas -
    Your repeating frame is as large as a full page and the elasticity is set to fixed.
    You have page protect set to on.
    You have a page break set before or after.
    Easy enough to create the two reports and compare the properties in the property palette.

  • Repeating Frame Problem - please guide

    Dear Gurus,
    I am developing a report in reports 6i. The structure of report is something like this.
    M1
    R1
    f1
    f2
    R2
    M1 is a fixed frame containing all other elements. R1 is repeating frame containing
    2 fields and one repeating frame.
    Now while printing records of R2 overflow to next logical page. that's fine but space of f1 and f2 also get repeated on to next page.
    To give an analogy :-
    Purchase Order Report
    po number - f1
    supplier - f2
    po lines -r2
    next page
    empty space present ( equal to the required fields r1 and r2 )
    po_lines
    Now point is i want the Po lines to continue without the space for fileds for f1 and f2 repeating.
    and yes i kept vertical elasticity for M1,R1 and R2 as variable.
    How can i solve it.
    please guide.
    regards ravi

    Print Object on property it is "First Page". the structure is like
    <code>
    M1
    R1
    f1
    f2
    R2
    </code>
    Problem is when r2 overflows to next page, the space for f1 and f2 is also there on next page. What i want is content of r2 should come at the start of the page rather than at the location where its fixed when it's overflowing to next page.
    regards

Maybe you are looking for