CR 2010 - Need to limit records returned to the FIRST ONE OR TWO

I need a way to limit the data returned in a subreport to just the first one or two records (depending on the report requirements). The data is sorted by Date DESC and I only want the latest one or two recs. Can someone please tell me how I can do that?
Thanks!

Well, you can enter a suppression formula for the details section of the subreport like this:
Recordnumber > 2 //
This will display the two most recent records in the subreport.
-Abhilash

Similar Messages

  • How do programatically set focus on a record other than the first one in a block?

    My form performs the query for the block, and by default it leaves the focus on the first (top) record in the block.  I'd like to have it focus on the last record in the block upon initial query.
    i've tried Last_record and go_record in a post-block trigger but these builtins are restricted and you can't execute them from post block triggers.  i don't see any block property things that would influence this either...  how can i do it?  thanks.

    i just figured out the answer to my own question... in the when new block instance trigger, there's an execute_query statement, and i simply put last_record statement after that...

  • How do I count the number of records returned in the CMIS query

    How do I count the number of records returned in the query CMIS?
    SELECT COUNT(*) FROM ora:t:IDC:GlobalProfile WHERE ora:p:xRegionDefinition = \'RD_PROJETOS_EXCLUSIVOS\''}
    Euler Homero

    Hi Euler,
    interestingly enough, the reference guide for CMIS ( http://wiki.alfresco.com/wiki/CMIS_Query_Language ) that I found does not mention the COUNT function at all. On the other hand it states that: "The SELECT clause identifies which virtual columns to return in the result set. It can be either a comma-separated list of one or more queryNames of properties that are defined by queryable object types or * for all virtual columns."
    There are, however, some other posts like e.g. http://alfrescoshare.wordpress.com/2010/01/20/count-the-total-number-of-documents-in-alfresco-using-sql/ which state that they could make it working.
    Having asked in the WebCenter Portal forum, I assume that your content repository is WebCenter Content. The CMIS doc for the Content is available here: http://docs.oracle.com/cd/E23943_01/doc.1111/e15813.pdf (no COUNT there either). It does, however, mention explicitly that "CMIS queries return a Result Set where each Entry object will contain only the properties that were specified in the query.". This means your could rather investigate the Result Set. Note that there are also other means than CMIS how to get the requested result set (e.g. calling a search service directly via so-called RIDC).
    In the given context I am also interested what your use case is. OOTB CMIS in WebCenter Portal is used, for instance, in Content Presenter, where it is content rather than "parameters" what's displayed.

  • How to return to the first record of a multiple row cursor (Forms 6i)

    Hi all,
    I had a bit of a search through here, but couldn't quite find the answer I'm after.
    I have a multiple row cursor, which I feed into a multi-row block in Forms 6i. I have the following code:
    OPEN CURSOR;
    LOOP
       FETCH CURSOR INTO :FIELD1, :FIELD2, :FIELD3, :FIELD4;
       ... do other code not related with cursor
       EXIT WHEN CURSOR%NOTFOUND;
       NEXT_RECORD;
    END LOOP;Now, I use the Forms built-in NEXT_RECORD to move down through the records on the form and fill in each row from the db. However, once the block loads (this works correctly), the current item (ie where the typing cursor is left) is on the last record.
    Obviously, I need the current item (after loading) to be on the first record. I tried using the Forms built-in FIRST_RECORD after the END LOOP command, but that gives me an ORA-06511 error (An attempt was made to open a cursor that was already open).
    Does anyone know how I might be able to return to the first record of the block correctly?
    Thanks in Advance,
    Chris.

    Ok, I feel like a bit of a dolt.
    I found that all cursors had to be closed before navigating back to the first record.
    Case closed! :)

  • Periodic Alert-How to send all the records returned from the SQL in a mail?

    Hello all,
    I have defined a Periodic Alert, my SQL query returns more than one record whenever I run it. I also defined an action to send an email with the message consisting of the output variables from the SQL. Whenever i run this alert, a mail is being sent for every single record returned from the query. But i want to send a single mail containing all the records information that my SQL query returns.
    For Example: My SQL query lists all the users created on current date.
    Select User_Id, User_Name into &OUTPUT1, &OUTPUT2
    from fnd_users where trunc(creation_date) = trunc(sysdate)
    Now i want to send a mail with all the users information from the above query, to SYSADMIN. How can this be achieved?
    Thanks & Regards
    chakoo

    Hi Chakoo,
    If the Periodic Alert is not working as requried. You can write a simple package with 3 procedures to implement the writing output to a out file and simultaneuosly send email to multiple receiptents.
    Example:
    Create Package xx_pac
    Create public Procedure P1
    begin
    Select User_Id, User_Name into &OUTPUT1, &OUTPUT2
    from fnd_users where trunc(creation_date) = trunc(sysdate)
    fnd_file.put_line (fnd_file.output, &OUTPUT1, &OUTPUT2);
    end;
    (Create private Procedure P2
    begin
    ---Write the email package using the UTL_SMTP approch. Using this approch you can send the procedure P1 output file as an attachment to the desiginated receiptents.
    end;
    (Create public Procedure P3
    begin
    ---call the procedure P1 using the "g_request_id = fnd_request.submit_request"
    ---Wait for the above procedure to complete using "l_conc_status := fnd_concurrent.wait_for_request" procedure.
    ---call the procedure P2. (When called you must provide the correct to, from address)
    end;
    end;
    Register the Package xx_pac as a concurrent program and schedule when submit it from the request.
    Regards
    Arun Rathod

  • I'm moderating a competition which will be about 8 hours long. I need to have a video/audio recording of the whole thing incase an answer is contested. We will need to stop recording and access the footage as the day progresses. Any suggestions?

    I'm moderating a competition which will be about 8 hours long. I need to have a video/audio recording of the whole thing in case an answer is contested.
    We will need to stop recording and access the footage as the day progresses. Any suggestions as to how best to accomplish this? I have an iPad and a Macbook Air.
    Many thanks!

    I'm moderating a competition which will be about 8 hours long. I need to have a video/audio recording of the whole thing in case an answer is contested.
    We will need to stop recording and access the footage as the day progresses. Any suggestions as to how best to accomplish this? I have an iPad and a Macbook Air.
    Many thanks!

  • I was trying to make a new screen recording using quicktimeplay, but when I watched the video after recording it all I could hear was me talking while the video was showing on the screen. How do I turn off that recording and turn the right one on? thanks

    I was trying to make a new screen recording using quicktimeplay, but when I watched the video after recording it all I could hear was me talking while the video was showing on the screen. How do I turn off that recording and turn the right one on? thanks

    Hi j2399123,
    It sounds like your screen recording is doing what it was designed to do, capture what is happening on your screen, with optional voice over with the microphone.
    Screen recording is for recording what you see on the screen, it is not a "video capture" option, like for capturing a movie with sound that is playing on your screen.
    For the QuickTime recording options, check out "Recording with QuickTime Player" in
    Mac Basics: QuickTime Player creates, plays, edits, and shares video and audio files
    http://support.apple.com/kb/ht4024
    And for screen recording specifically, there's
    QuickTime Player 10.x: Record your computer’s screen
    http://support.apple.com/kb/PH5882
    Thank you for thinking of Apple Support Communities for your support needs.
    Nubz

  • The screen on my macbook has malfunction. When I change the brightness to zero and return to the first level of brightness it works briefly but then the screen starts to flicker brightness and quickly extinguished.

    The screen on my macbook has malfunction. When I change the brightness to zero and return to the first level of brightness it works briefly but then the screen starts to flicker brightness and quickly extinguished. It seems to be a bad contact, it would not be normal for a quality product that should have, he has less than two years of use. Not because of the bad use or crash. Someone with the same problem or can help me? It's really a contact problem? I've done all the procedures recommended by the online support. Thanks.

    Hey everyone in Apple world!
    I figured out how to fix the flashing yellow screen problem that I've been having on my MBP!  Yessssss!!!
    I found this super handy website with the golden answer: http://support.apple.com/kb/HT1379
    I followed the instructions on this page and here's what I did:
    Resetting NVRAM / PRAM
    Shut down your Mac.
    Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.
    I went through the 6 steps above twice, just to make sure I got rid of whatever stuff was holding up my bootup process.  Since I did that, my MBP boots up just like normal.  No flashing yellow screen anymore!!   
    (Note that I arrived at this solution when I first saw this page: http://support.apple.com/kb/TS2570?viewlocale=en_US)
    Let me know if this works for you!
    Elaine

  • How to display PDF in slideshow, without returning to the first page or stall/halt on the last page?

    Hi,
    I want to display PDF's with multiple pages as a slideshow.
    This is possible with a default Adobe Reader and have this working for ONE pdf file.
    But I want do display multiple PDF's as a slideshow, the one after the other.
    In Adobe Reader you can define to return to the first page again or it automatically 'stalls/halts' at the last page.
    But I want Adobe Reader to close after the last page is displayed so it continues (in a simple DOS-script) with a second, third, etc. PDF to be displayed.
    Is this possible?
    What kind of simple DOS-script kan be used or an other reader/utility?
    Thanks in advance!
    Gunther

    Hi Bernd,
    I was looking for ways to script this kind of solution.
    But do not have good results.  There are tools to combine pdf's into one large pdf - but mostly to be selected by hand.
    We need it in a scriptable way to automate.
    Additionally, we want to be able to combine different types of documents to rotate as a slide show (so not only PDF's but also pictures or other output).
    If you or someone else have such scripts, it will be highly appreciated.
    Regards

  • Why is it that when looking through  new apps in the  apps store on my ipad in release date mode  does it return to the first 1-12 after viewing pparticular apps?

    why is it that when I look through the new apps in the apps store in release date mode it returns to the first page after veiwing more information about some apps, I could be ten to twenty pages in and have it happen.
    Also, I only speak and read English and although there are probably great apps for people from other nations, I don't want to wade through all the apps that I can't make use of. I expect that people of other nationalities or languages don't want to have to wade through every app that they can't make use of, is there not a way that alI users could filter by language?
    I mean no offence to anyone but with a collection of hundreds of thousands of apps in all languages and the jump back to the begining after possibly being into the list by a number of pages I stop looking after awhile and I'm sure I've missed some excellent apps by doing so.

    Contact iTunes support : http://www.apple.com/support/itunes/contact/

  • Do I need a different apple id for each device? I have two iPads and an iPod but can only purchase things on the first one. When I go to verify the questions they say they are wrong.

    Do I need a different apple ID for each device I have? I have two iPads and an iPod but I can only make purchases with the first one I purchased. It tells me the security questions are wrong but I know they are not because I wrote them down. I have also reset them and my password once. Please help if you can

    You can not login into iTunes or the App Store using VPP credentials. You must purchase all apps/book/etc.  from the VPP website. Then you can redeem the codes thru itunes/app store or import the codes thru apple configurator. Here is the url for the VPP website: https://volume.itunes.apple.com/WebObjects/MZFinance.woa/wa/login?cc=us
    (It will not affect any of the apps you already have but the id can only be used for VPP.)
    Cheers,    
             Alec

  • Return to front window the image changes back to the first one

    I have two images loaded in sequence. After loading the second
    image, I put the frame into the background. When I open the image
    frame (to the front window), the first image is shown (but not the
    second as expected). Why and how to show the lastest image?
    Thank you.

    I got the problem solved. Looks like that java keeps all the
    panel objects (even if I assign a panel pointer to null, the
    panel object is still in the Panel object pool); and when
    the buried screen is up to the front window again, java
    calls paintComponent() for all panels, and thus the first
    image panel and 2nd image panel, and so on, but with
    the last created image panel' paintComponent() called
    first, and thus creating the illusion that the iamge is
    returned to the original one and not the lastest one.
    So the solution is to use an integer to label the lastest
    imag panel and use if ( == latest) then draw() in
    paintComponent().

  • HT5312 I have forgotten the answers to my apple security questions. I have tried several times but just cant get through and I need to make a purchase for the first time

    I have forgotten the answers to my apple security questions. I have tried several times but just cant get through and I need to make a purchase for the first time

    I am having the same problem. I know my apple ID and password but do not remember my security questions. How do you go about changing the security questions? Please help.
    Thanks.

  • How to return only the first string

    Hi Guys,
    I have a mapping where I am creating a filename from data in within my data file, I am using one of my variables i.e. Account
    The data looks like this
    Account:
    123
    123
    123
    456
    456
    456
    789
    789
    789
    What I want is to is return only the first row u201C123" and concatenate it with a constant to make up the filename.
    Any help will be appreciated.
    Kind Regards,
    CJ Bester

    very simple
    use copy value standard function like below.
    Account------->copyvalue(0)----------->
                                                                      CONCAT------------->TARGET
                                         Constant------->
    Regards,
    Raj

  • Returns to the first row executing a rollback action in ADF BC

    I have the next problem:
    1.- There is a list of rows taken form a View Object that shows 10 rows per page.
    2.- I can navigate into the list, with first, previous, next and last buttons.
    3.- Each row has an Edit button. If you press it, a new page is opened to modify the row.
    4.- This new page has 2 buttons: Save and Return.
    ... 4.1.- Save has associated an Action forward = Commit, and returns to the list correctly with the edited row selected.
    ... 4.2.- Return has associated an Action forward = Rollback, and returns to the list, but always returns to the first row of the first page in the list.
    I have followed the steps indicated in Steve Muench's document [JDeveloper and the art of the rollback|http://one-size-doesnt-fit-all.blogspot.com/2007/02/jdeveloper-and-art-of-rollback.html], but the problem is still there.
    Could anyone help me, please?

    The vital part in the method is finding the VO you are using public String dropChangesAndReturn() {
    // find the vo you are using
    ViewObject vo = ....
    Row row = vo.getCurrentRow();
    if (row != null) {
    row.refresh(row.REFRESH_UNDO_CHANGES | row.REFRESH_FORGET_NEW_ROWS);
    iterator.getDataControl().commitTransaction();
    return "SomeNavigationRule";
    }So if you know the VO find it and use the rest.
    Tio

Maybe you are looking for