How can I set limitations on how many records a report can return

I have a report on the web using Oracle Reports builder and I have the client enter in date parameters for the report that they want.
Well with date ranges for different clients a different number of records are returned. Because of time it can take the report to return I want to limit the number of records that report can return.
How can I go about doing that? I don't want to limit with date parameters because date won't really work for me. I need to limit on how many records can be returned. If it exceeds 10,000 records I want the client to refine the date range of schedule the report to run later. Meaning we will run that report. So I would have two check boxes if the count was over 10,000 do you want to define your date or schedule the job to run later.
Can any one help me with this? How would I go about this?

To know if the report is going to return more than 10,000 records, you first have to run the query with a 'select count(1) from ... where ...' (with the same from and where clauses as you normal query). Since this takes about the same time as runnng your report, I wonder if you really gain anything (although formatting may take some time too).
You may simplify the select count(1) query by omitting all the lookup tables that are only needed for formatting. That way your query may run a lot faster. You can put this in your after parameter form trigger.

Similar Messages

  • Is there any limit on how many records a cursor can hold?

    Hi Everyone,
    This is Amit here. I want to know whether there is any limit on how many records a cursor can hold.
    I have a program in which i am creating a cursor and passing it to another procedure as an input parameter. But the count of cursor query is more than 15 Lakhs. The program is running forever.
    Just wanted to know whether the huge data is the problem.
    Thanks ....
    Regards,
    Amit

    user13079404 wrote:
    Just wanted to know whether the huge data is the problem.What do you think? How long does your code typically need to wait for the data to leave the magnetic platter of the harddisk, travel across wires and into the memory buffer of your application - for a single row?
    Now multiply that waiting for I/O time with a million - for a million rows. Or by a billion, for a billion rows.
    Is "+huge data+" a problem? Not really - it simple needs more work to get that amount of data from disk. More work means slower performance. It is that simple.
    Which is why the row-by-row approach used by many developers is wrong. You do not pull a million rows from disk and process it in PL/SQL or Java or .Net. Heck, you do not even pull 10,000 rows like that.
    The correct approach is to think data sets and use SQL to process that for you - and only return the bare minimum of data to the application layer. Maximize SQL. Minimize PL/SQL and Java and .Net.

  • How can I set up a default (pre-recorded) voicemail greeting on iphone 4s?

    How can I set up a default (pre-recorded) voicemail greeting on iphone 4s?i dont want a custom one with my voice i want the pre-recorded where a lady says my number . how do i get that?

    Voicemail is a cell phone carrier function.  Contact your carrier to see if they have this option.  If not, i'm sure you can download a sound file from the internet with a greeting and add your name.  Then play it back on you PC while holding your iPhone near the speaker when recording the greeting to voicemail.

  • How do I set up a rating scale so that respondents can only select each option one time?

    How do I set up a rating scale so that respondents can only select each option one time?

    hi there,
    in the LV VI, function & how-to help open the item
    Building the front panel -> Front panels controls and indicators -> Array & Cluster controls and indicators -> Arrays -> Tabbing through Elements of an Array or Cluster
    or see attachment
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"
    Attachments:
    TabbingThroughArrays_Help.jpg ‏96 KB

  • When building a web site, how do I set up a blank browser page that I can pull html & css files into.

    When building a web site, how do I set up a blank browser page that I can pull html & css files into.

    David's book is a good place to start. This is really far more involved that can be covered in this forum. You'll need to get familiar with a database, most likely MySQL, PHP, how to send requests tot he database - queries - and most likely maintain a state with Sessions. As you can see, it's a bit involved. The good news is this skills you'll acquire to do this will go a long way! It will cover all the basic requirements of web application development.
    Dive in, and have fun!
    Lawrence   *Adobe Community Expert*
    www.Cartweaver.com
    Complete Shopping Cart Application for
    Dreamweaver, available in ASP, PHP and CF
    www.twitter.com/LawrenceCramer

  • How do I set individual properties for a column in report layout at runtime

    How do I set individual properties for a column in report layout at runtime? I need to change this based on a user's input. This is for v10g.
    I need to change either the "Read from File" attribute or the "File Format" attribute for one column based on the user's input. IS this possible?
    Thanks in advance!

    Hi,
    define 2 columns and use format triggers to show the one or the other column.
    Regards
    Rainer

  • Can I set up an Apple ID so my kids can use their new Ipad

    Can I set up an Apple ID so my kids can use their new Ipad but I still want access and control can I conect them to my account or control theirs

    If you disassociate the device from your AppleID and tie it to another one, you cannot use yours to control the other. They will be separate and independent. For better or worse, the AppleID authentication and authorization model was not designed with kids in mind.

  • How Do I Set Up a Master Boot Record(MBR) for 3 Different OS's on 2 hdd's?

    I am considering putting three or more OS's on my computer. Would someone show me how to set up a master boot record to give me a choice between Windows XP Professional Edition, Solaris 10 6/06, Red Hat Linux 7 (Fedora Core 5), and possibly Knoppix 5.0.1, Snappix, and Morphix? I want the boot record to be posted in both Windows' BOOT.INI file and in GRUB. Thanks in advance for any help from anyone who knows what their doing about this topic.

    I am considering putting three or more OS's on my
    computer. Would someone show me how to set up a
    master boot record to give me a choice between
    Windows XP Professional Edition, Solaris 10 6/06, Red
    Hat Linux 7 (Fedora Core 5), and possibly Knoppix
    5.0.1, Snappix, and Morphix?Have you seen this article?
    http://www.sun.com/bigadmin/features/articles/multiboot_laptop.html
    I want the boot record
    to be posted in both Windows' BOOT.INI file and in
    GRUB.What do you mean by that? You can only have one thing in the MBR, but of course that thing could chain to something else.
    Darren

  • Safari can not open the page,too many redirect occurred,what can I do to remedy

    I see a massage saying safari can not find the site because too many redierect occurred,what can I do to remedy the problem

    This has recently (May 2012) become a routine stubling block in Safari.  Every hour or two, I have to quit Safari and restart it, just to fill out my timecard.  Since iCloud will not be syncing my Safari bookmarks, I will be switching to either Netscape or Google Chrome.

  • Can we set point of view (pov) to IR reports .

    Hi All,
    I am completely new to ir reports , I am using essbase to query using ir , any one please suggest .Can we set POV's in ir like in fr .
    Thanks
    AG

    Hi All,
    I am completely new to ir reports , I am using essbase to query using ir , any one please suggest .Can we set POV's in ir like in fr .
    Thanks
    AG

  • How do I set up a network hard disk so I can restart my MacBook from it?

    I have a 2TB Freecom XS Network hard disk, and I want to be able to restart my MacBook from it with my current OS, Leopard 10.5.8, when I have upgraded the OS on the MacBook to Snow Leopard 10.6.3 [as a possible precursor to Mavericks or even Yosemite]. The problem is that the MacBook doesn't recognise the XS as a network disk: the XS has been assigned an IP number, and I can mount it as a server volume, and I have copied all the system folders/files onto it, but that is no use if the system doesn't recognise it as a network disk for a restart [I've tried]. The system/library/users/applications folders are in a Macintosh HD folder as on the MacBook, but this folder is inside a root folder named PUBLIC: could this be part of the problem? I thought I might be able to reinstal the OS on the network disk using the original system installation discs, but after restarting the MacBook as instructed, the network disk isn't recognised as a destination for installing the OS. I don't want to instal Snow Leopard on the MacBook before I'm sure I can reboot it with Leopard, using the network disk.

    Hi BDAqua.
    Thank you for your reply. I don't know how much what I omitted to disclose in my original post might affect what you've told me, but I have a wireless network set up with a 500GB Time Capsule, to which a broadband router and another backup disk [1TB, daisy-chained to the TC] are connected. Given the difficulty I had initially, setting up the network [mainly because of my ineptitude where comms are concerned], I didn't want to risk connecting the Freecom drive to the TC, in case it changed the network settings [or worse, disrupt my internet access], and I haven't done it hitherto. I did try connecting the ethernet cable to the wireless router however, with neutral results: still possible to manually mount the drive as a server, and it shows in the Network folder in my MacBook's root folder.
    Further to an email from Freecom's support department [effectively just a request for part number, proof of purchase, etc.], I followed their suggestion and tried connecting the drive to the MacBook using the USB 2 cable, and the drive showed up in the device section of the Finder window sidebar, but I would guess that this option wouldn't enable the drive to function as a boot drive either? Also, unless I'm mistaken, USB offers much slower data transfer speeds than Gigabit Ethernet? I'm hoping I've not dropped a monumental bollock, because I'm positive from my pre-purchase research that Gigabit Ethernet is faster than FireWire or USB2, which is why I chose this drive over cheaper USB drives [like the 1TB Western Digital drive daisy-chained to the TC]; or am I mistaken?
    To get back to your answer though, I don't dispute what you say, because I'm sure I'm much less of an expert than you might be, but I would nevertheless like to be able to boot up from the Freecom drive, if a way to do that is possible, even if it means biting the bullet and connecting it to the Time Capsule [assuming that this will work: can you advise?], without needing to investigate and purchase additional kit. I've had a scan of the forum, and I've seen a few suggestions which mention cloning, but I don't know how this works: I presume I'd have to buy the appropriate app for that? Your answer seems to suggest installing the new OS onto an external drive [although, worryingly, you don't mention Ethernet as an option] using cloning, so I'd be grateful if you could explain that.
    I just hope that my desire to save the cost of a newer Mac of some description, be it new or refurbished, but giving me the newest OS possible on the MacBook [Yosemite, I'm guessing], doesn't end up costing me something uncomfortably similar, cumulatively.
    Any practical and reasonably-priced suggestions welcome and considered! Thanks again

  • How do I set up the multiple scree display so I can use more than one doc at a time

    With the old operating system I was able to swipe to the upper left hand corner and 9 screens would appear.  When working on a research paper I was able to move docs to each screen to help organize.  With this Op System it seems to have gone away.  Is there a way to set it up again?
    Pat

    Apple implemented major changes with working in multiple spaces from the version you were using in 10.6 Snow Leopard. (This first version was in 10.7 and has developed further till now.)
    To avoid a very long description post, search 'Work in multiple spaces'  in the Help menu for details on how to use the new spaces in Mission Control.

  • How can I set Firefox update preferences via script so I can configure our 200 Macs to disable checking for updates?

    Most of our Mac users do not have admin privileges. So when they get alerted about Firefox updates, they don't have the ability to install them. We would like to disable Firefox for checking for updates, then push out updates from our software server as needed. We have about 200 machines to configure. Is there a way to disable checking for updates via script (bash or Applescript)? And if so, is there a guide or web site to explain the process?

    Use a mozilla.cfg file in the Firefox program folder to lock prefs or specify default values.
    Place a file local-settings.js in the defaults\pref folder where you also find the file channel-prefs.js to specify using mozilla.cfg.
    pref("general.config.filename", "mozilla.cfg");
    pref("general.config.obscure_value", 0); // use this to disable the byte-shift
    See:
    * http://kb.mozillazine.org/Locking_preferences
    You can use these functions in mozilla.cfg:
    defaultPref(); // set new default value
    pref(); // set pref, but allow changes in current session
    lockPref(); // lock pref, disallow changes

  • IPod icon not showing in settings so can't set up homeshare, how do I sort

    Trying to set up home share but in settings there is no iPod icon has anyone any ideas,thanks

    On iOS 5 + the iPod app has been renamed as Music, and if you are connected to a network you should get an option under Settings > Music for Home Sharing where you can type in your iTunes account and password - if you are not connected to a network then you won't get that option. If you've also enabled it on your computer's iTunes, and iTunes is open on your computer, then you should see an option under the More button at the bottom of the Music app for accesing your Shared library

  • HT5312 how do I set up a rescue email address so I can change my security questions

    I can't buy anything on my new iPhone without answering my serurity questions I made in 2nd grade. I can't remember them at all and I don't have a rescue email set up.

    If you don't have a rescue email address then see if the instructions on this user tip helps : https://discussions.apple.com/docs/DOC-4551
    When they've been reset you can then add a rescue email address for potential future use

Maybe you are looking for

  • JMF- Problem in inbuilt Webcam using JMStudio

    Hi All, I am using Java Media Framework 2.1.1e and I am currently facing issues while accessing my inbuilt webcam using JMStudio I have tried to access my in-built Web-Camera from JMStudio app(of JMF..File->Capture->check 'Use video device'-> Press '

  • Locking root account causes account to expire

    If I lock the root account using passwd -l root, PAM prevents me from adding users or groups, saying that root's account has expired. This wouldn't be so bad, except that PAM continues to prevent me from adding users/groups even after I unlock the ro

  • How can I reinstall Software Update?

    I have a MacBook Pro (early 2008 model) running OS 10.6.8. When I try to run Software Update, I immediately get an error message that says "Software Update cannot be opened because of a problem.  Check with the developer to make sure Software Update

  • Drag and Drop (simple)

    Hi guys I'm trying to make a simple drag and drop game.  I've named the movie   clip in the properties window as "eye" and have written the following   code in the frame. I can pick up the movie clip, but not put it down.  Can someone please help me?

  • Streaming & Syncing....can you do both?

    I have a 160GB Apple TV and I can't seem to Sync or Stream anymore. Says there is Firewall issue but firewall is not turned on and don't have any aftermarket firewall software. So currently I cant stream or Sync. Seems to have a problem when i try to