Next n

Hi,
I have a query that returns 10,000 rows (a Noticeboard /
Forum). Currently posts from the last 14 days are displayed and
when they drop off they are available in a search archive. That's
ok.
For seo, I need to be able to use Next n functionality to,
effectively, paginate right through all 10k rows - maybe 14 days or
100 rows at a time.
This is my query now:
<cfset fourteenDays="#timeNow#" +
"#CreateTimeSpan("-14","0","0","0")#">
<cfquery datasource="myDB" name="getSummary">
select Summary_ID, Summary_Author, Summary_LastPostDate,
Summary_NumberReplies, Summary_Subject, Summary_Guest,
Summary_Sticky
from Summary
where Summary_LastPostDate >
#CreateODBCDateTime("#fourteenDays#")#
order by Summary_Sticky desc, Summary_LastPostDate desc
</cfquery>
Does anyone have any suggestions on if / how I can achieve
this without having a query that returns 10k + rows? All Next n
code I have used / searched and found uses a blanket query and then
limits by:
<cfoutput query="getSummary" startrow="#currentStart#"
maxrows="20">
etc
Thanks for any ideas / suggestions!
jo

Well, you can't page through 10K rows of results unless you
*have* them to page through. The only way to have less result rows
to page through is to return less rows via your query.

Similar Messages

  • Header not getting  displayed in the next page in the second table

    Dear Experts ,
    I have a query regarding Header not getting  displayed in the next page in the second table of the main window. .Let me elobrate the issue.
    I have a smartform in which there are  2 tables TABLE 1 and TABLE 2 in the smartform MAIN window. TABLE 1 is for pending PO and TABLE 2 is  for future delivery date P O separated by text in between.
    Now the header for both the tables and the data are getting displayed properly if the total output is in only one page. But If there are more entries in the TABLE 1 the Header for the TABLE 2 is not getting displayed. Header for TABLE 1 yet gets displayed properly in the next page in case of more entries.
    Only issue is that Header for TABLE 2 is not getting displayed in second page but it gets displayed if the entries are less in TABLE 1 and the total output is in one page .
    Please provide a elobrate solution on this problem as the requirement is urgent.
    Thanks,
    Regards,
    Sachin Hada

    Hi Sachin,
    you need to cteate two pages FIRST and NEXT.
    in first page --> FIRST
        next       --> NEXT
    in next page
      page---> NEXT
      next ---> NEXT.
    you copy the first page main window is the same in next page
    aslo
    I think help ful for you
    thanks & Regards
    BHUPAL.

  • How do I use edge commons composition loader to load multiple compositions with a next and back button?

    I am working on an interactive book and have set up each page as a separate composition in edge.
    I am using  the edge commons JS library to load multiple compositions into a main composition.
    You can see how this works here: Edge Commons - Extension Library for Edge Animate and Edge Reflow | EdgeDocks.com
    The way the edge commons tutorial is set up requires a button for each composition i want to load. I am interested in loading multiple compositions with a "next" and "back" button, and a "swipe left, "swipe right" gesture on the content symbol that each composition is loaded into. I also need the swipe features on the content symbol not to interfere with the interactive elements on the loaded composition.
    Please suggest a solution that will work without adding additional scripts beyond edge commons and jquery.

    Sort of. I'm using this code inside an action for a button symbol. But it doesn't work perfectly. Trying to debug it.
    Let me know if you have any luck.
    //Check to see if pageCounter already exists
    if (typeof EC.pageCounter === 'undefined') {
      // it doesn't exist so initialize it to first page
        EC.pageCounter = 2;
    //check if the page is only 1 digit -- patch for single digit
    if (EC.pageCounter < 9) {
       // it is, so we need to pad a 0 on the front.
      EC.pageCounterString = "0" + EC.pageCounter;
      //e.g.  01 ...09,11,12,13....115,222352,,....
    else {
      EC.pageCounterString = EC.pageCounter;
    EC.loadComposition(EC.pageCounterString + "/publish/web/" + EC.pageCounterString + ".html", sym.$("container"));
    EC.pageCounter = EC.pageCounter + 1;
    //TODO for back  -1

  • When I login to my homepage yahoo, why does a paypal tab open next to yahoo, and will it harm anything?

    When I log on to Mozilla, my homepage is Yahoo, but next to the yahoo tab on the left is a small tab with the paypal logo, will this harm anything, and can it be stopped?

    You may have "pinned the tab". Right click on it and unpin the tab to make it go away.

  • When i login on game center it say enter your birth date when i enter it and i perss next the birth day will come again and again what should do

    when i login on game center it say enter your birth date when i enter it and i perss next the birth day will come again and again what should do

    Start a game with Game Center and go from there.

  • I'm on ff 3.5.5 for Mac. I've been prompted twice to download latest version. Each time I have dragged the ff icon from applications folder to the dock and all seems ok. But next time I start ff it says I'm on 3.5.5 and should update to latest version!

    There was no "update failed" message
    I wonder whether I'm doing the right thing when I drag to the dock. There's only one ff icon in the applications folder. The first time I was prompted to update it showed that days date next to the icon as if the update was successful. The second time was a few days later but I think it was still the same date next to the icon (25/8/10) I've only just noticed that (on 10/9/10) so can't be sure but I'm sure the second time was around 2nd or 3rd of Sept.
    Also, I am running two versions of ff- one is english, the other is the Italian version. They can't be opened at the same time but they seem to talk to eachother in the background, so to speak, because when I open one after a long gap, it opens with all the history and settings of the other one, right up to the last website I went to. I think I closed both when updating because it prompts you to close all programmes and restart (I think/ remember) so I just clicked ok to that prompt.
    By the way, I got the prompt to update twice for ''BOTH'' the Italian and the English version- so 4 times altogether so it would seem that ff does recognise them as separate but still has problems concluding the update for each separate one respectively.
    Thank you very much if you can help.
    Trapperjohn

    Download a new copy of the Firefox program: http://www.mozilla.com/firefox/all.html
    Trash the current Firefox application to do a clean reinstall.
    Install the new version that you have downloaded.
    Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so you won't lose your bookmarks and other personal data.

  • I own Acrobat  XI Pro.  I installed it on my new machine, but cannot start it because Acrobat says that the serial number I have doesn't match the software.  What should I do next?  Can' find any FAQ's on this.

    I deactivated Pro on my old machine, downloaded from the store on my new machine and tried to open it.  A window popped up that said I had a valid product key, but that it didn't match the software on my machine.  The drop down box did not list my product.  Don't know what to do next.

  • HT204053 If I start using a new apple ID will I lose all my old purchases the next time I sync?

    Hello,
    I'm really, really confused and I'd appreciate some advice.  I came here after searching for information on merging two apple IDs so let me start my saying that I understand that I cannot do this.  I get that.  The FAQ says I just need to start using my preferred Apple ID from now on.  How exactly do I do this?  Is it as simple as logging in with the preferred ID next time I purchase something?  If I do that, what would happen to all my purchases under the old Apple ID the next time I sync my devices?
    Here is the background to my situation:
    I created an Apple ID when I first got an iPod many years ago.  It was my e-mail address at the time.  All my iTunes purchases have been made with that ID.
    I bought my first Mac a couple of years ago.  At the same time I purchased a MobileMe subscription.  My MobileMe subscription was later converted to an iCloud account.
    I'm no longer with the ISP that provided me with the e-mail address used for my first Apple ID.  My only e-mail account is now my me.com address.
    I tried to change my Apple ID to my new e-mail address but it said it couldn't be done because my me.com e-mail is already in use.
    All my iTunes receipts go to my old e-mail address that I no longer have access to.  I'd like my receipts to go to my me.com address.
    I have a MacBook Pro, iPhone 4S, iPod Touch (all synced through iCloud), I also have an iPod Shuffle.
    In order to get my iTunes and App Store receipts to go to my me.com address, I think the FAQs are telling me that I need to start using my me.com address as my preferred Apple ID.  It seems to gives me an option of changing my e-mail address for communications but as soon as it realises that it is a me.com address it says I can't do it.
    I'm concerned that if I just make make my next purchase with my me.com ID the next time I sync my devices I'll just have one song on there rather than my entire library.  Can somebody please guide me through this?

    You need to retain the ID you are currently using for iTunes in order to retain access to your purchases. You should go to http://appleid.apple.com and log in using the iTunes ID, and add a contact address there - you could get a GMail account (free). You may be able to forward mail on from GMail to your @me.com address, I'm not sure about that.
    You can continue to use the ex-MobileMe ID for iCloud - there is no problem about using two IDs in this way.

  • HT204053 i RECENTLY PURCHASED ANOTHER IPHONE.  MY INTERNET IS NOT WORKING.  I JUST CREATED AN APPLE ID.  WHAT'S NEXT?  I NOW HAVE TWO DIFFERENT ACCOUNTS WITH DIFFERENT USER NAMES.  HOW CAN I USE ONLY ONE ACCOUNT FOR ITUNES, ICLOUD APPLE ID ETC???

    I RECENTLY PURCHASED ANOTHER IPHONE.  MY INTERNET IS NOT WORKING.  I JUST CREATED AN APPLE ID.  WHAT'S NEXT?  I NOW HAVE TWO DIFFERENT ACCOUNTS WITH DIFFERENT USER NAMES.  HOW CAN I USE ONLY ONE ACCOUNT FOR ITUNES, ICLOUD APPLE ID ETC???

    Welcome to the Apple community.
    iTunes and iCloud and different accounts, you will need to delete both accounts from your device before adding the new details in their place.
    For iCloud go to settings > iCloud, scroll down and hit the delete button. You can then sign back in using your correct details. For iTunes go to settings >store, tap your account ID and then sign out, you can then sign back in using your correct Apple ID.

  • L need help with textedit, I inserted a picture then the cursor went from small to the size of picture and l need to write a header next to the picture not at the bottom of it. can anyone help please?

    Can anyone tell me how to make cursor smaller after inserting picture so that l can add somethimg right next to it instead of bottom of picture. Meaning the next line is too low

    AFAIK, you can't. The nature of TextEdit is that it allows the picture to be treated as a character and adjusts the cursor size for that line.
    You need a app that supports transparent overlays.

  • Ical moving item in week view to next week view - can you drag it

    i like to drag items not completed from a week view to the next week view, but as with Office 2007 you cant just drag the event from the week view to the months calendar view on the side and drop it into a new date.
    I know if you use month view, it make is easy but month view is my least preferred display option, also in month view, to drag to the next month is no possible.
    I wonder what is a quickstep to do this, it must be annoying for others

    CaptainStarwars,
    Try using (⌘+C) and then (⌘+V). That action retains the event in the original, while also placing a duplicate in the new location.
    If you want to remove the event from the original time, use (⌘+X), then (⌘+V) in the new time frame.
    ;~)

  • 5. We need additional time to process your transaction You should get an email from us by next business day. If you don't hear back from us, you can check your order status on your account page or call us at +1 800-585-0774. If you're not in North America

    Step 5.
    5. We need additional time to process your transaction You should get an email from us by next business day. If you don't hear back from us, you can check your order status on your account page or call us at +1 800-585-0774. If you're not in North America, you can look up a local number here. For now, check out all the great free features of Creative Cloud! Get started with trials
    I keep getting this.
    The Bank and Paypal states that Adobe needs to process my transaction twice.
    I have no order number/ no status nor contact from Adobe. I called customer service and he transferred me to sales where the phone rang with no answer.

    Since this is an open forum, not Adobe support... you need to contact Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • All my purchased song from iTunes are not playing complete (iPod and computer with Windows Vista), unexpectedly stops and continues with next song. What am I doing wrong?

    All my purchased song from iTunes are not playing complete (iPod and computer with Windows Vista), unexpectedly stops and continues with next song. What am I doing wrong?

    Are the songs playing whole in iTunes? if not download them again.
    else read this Apple Support Article on your problem
    Have a nice day!

  • Ipod not recognized by itunes...next step for nike+

    when i started to set up the nike+ i downloaded the new version of itunes then later downloaded the new software update for the ipod nano...now when i plug the ipod into the computer using the usb cord, i get a message that says this...The software required for communicating with the iPod is not installed correctly. Please reinstall iTunes to install the iPod's software....i have attempted to install, reinstall, remove and install again, itunes and the updated software... yet it still will not recognize the ipod when it is plugged in. How do i get the ipod to be recognized and then what is my next step for using the Nike+ shoes?
    ipod nano    

    I can't even get the tab that says Nike+ when I am trying to sync up. I can't get it to even go on to the Itunes. I can purchase music no problem

  • Next-Generation Plug-In settings in the Enterprise

    I work in a company of 1000+ desktops and various user groups running various core systems. For background, we've been standardized on IE 6 for years, and we're trying to move to IE 8.
    I'm looking into an issue with one of our core systems. It's a 3rd party solution that relies on an applet that fails when the latest JRE is downloaded and the "Enable the next-generation Java Plug-in" is checked (which it is by default).
    I've been searching the web, and I know most of the work-arounds, including how to run ssvagent.exe -high -jpisetup -old from the JRE install folder. I'm almost ready to pass this information on to our desktop admins, but I have a few questions I know they are going to ask. I would deeply appreciate any help in answering these questions:
    What is the possible impact of disabling the next-generation Java Plug-in on other applets from other 3rd party vendors? Are we likely to run into some applets/plug-ins that fail when this option is disabled?
    The vendor of the app that's failing isn't being very helpful. Is there any info we can give them on how to recompile the applet so that it works under the default setting?
    What are other large enterprises doing to manage this?
    Thanks in advance for any answers. Until we have this resolved, we're unable to upgrade users to the current JRE.

    I tried the java_version param. It prompted me with a warning informing me that the app would run an earlier version of Java. I clicked run, and continued having the same issue. I captured this from the console:
    Java Plug-in 1.6.0_20
    Using JRE version 1.5.0_15-b04 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\kswans1.AMERICREDIT
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    java.lang.NoClassDefFoundError: sun/awt/DesktopBrowse
         at sun.plugin2.applet.Applet2Environment.initialize(Unknown Source)
         at sun.plugin2.main.client.PluginMain.handleMessageSetJVMID(Unknown Source)
         at sun.plugin2.main.client.PluginMain.mainLoop(Unknown Source)
         at sun.plugin2.main.client.PluginMain.run(Unknown Source)
         at sun.plugin2.main.client.PluginMain.main(Unknown Source)
    security: property package.access value sun.
    security: property package.access new value sun.,com.sun.javaws
    security: property package.access value sun.,com.sun.javaws
    security: property package.access new value sun.,com.sun.javaws,com.sun.deploy
    security: property package.access value sun.,com.sun.javaws,com.sun.deploy
    security: property package.access new value sun.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.definition value null
    security: property package.definition new value com.sun.javaws
    security: property package.definition value com.sun.javaws
    security: property package.definition new value com.sun.javaws,com.sun.deploy
    security: property package.definition value com.sun.javaws,com.sun.deploy
    security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.access value sun.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.access new value sun.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
    security: property package.definition value com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
    basic: setDeployURLClassPathCallbacks: no enhanced access
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@153f67e
    network: Cache entry found [url: http://drvmwebbnt02.americredit.com:9081/MyProvenir/MyProvenirZip.class, version: null] prevalidated=false/0
    network: Connecting http://drvmwebbnt02.americredit.com:9081/MyProvenir/MyProvenirZip.class with proxy=DIRECT
    network: Connecting http://drvmwebbnt02.americredit.com:9081/MyProvenir/MyProvenirZip.class with cookie "JSESSIONID=84C38F94C7BABF9B3318856D87B9736D; __utma=1.1067525869.1271360926.1278605523.1278684887.12; __utmz=1.1271360926.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)"
    network: ResponseCode for http://drvmwebbnt02.americredit.com:9081/MyProvenir/MyProvenirZip.class : 304
    network: Encoding for http://drvmwebbnt02.americredit.com:9081/MyProvenir/MyProvenirZip.class : null
    network: Disconnect connection to http://drvmwebbnt02.americredit.com:9081/MyProvenir/MyProvenirZip.class
    network: Cache entry not found [url: http://drvmwebbnt02.americredit.com:9081/MyProvenir/, version: null]
    basic: Applet loaded.
    basic: Applet resized and added to parent container
    basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 374612 us, pluginInit dt 666096 us, TotalTime: 1040708 us
    basic: Applet initialized
    basic: Removed progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@153f67e
    basic: Applet made visible
    basic: Starting applet
    basic: completed perf rollup
    basic: Applet started
    basic: Told clients applet is started

  • Is there a way to prevent DPS from going to next article when using swipe left/swipe right?

    I have placed web content in an article in Indesign with swipe left and swipe right function and it works just fine except for one thing. When swiping the animation starts but it also goes to the next/previous article in the folio. Is there a way to fix this?

    Hey Eric,
    Thanks for taking the time. Unfortunately no that does not solve it. Same as swipe it will get me there and it will show separate programs spaced out. The issue I am having is that all my open word files are bunched up in a pile on top of each other. I can see the edges of each one but I want them to be separated from each other enough that I can visually identify what file is what.
    Again, thanks for trying, it is appreciated.

Maybe you are looking for

  • Rotating images in Address Book??

    I am rather confused at the determination of Address Book to store contact photo's on one side?? I have rotated images right round 360 degress but no matter what way up they are once I drag them on to the image frame, address book automatically rotat

  • Dynamic HTML over PeopleSoft?

    Our college Portal site uses a Flash animation to display rotating content relevant to the current semester. My latest project involves presenting users with a static image on the Portal home page if their browser does not have Flash installed. After

  • What should i take for customer account group

    wat is the best to customize customer account group i m thginking to creat one exportcustomer and other one is domestic or else i ll make one one as sold to party plz help

  • Matrix with ChooseFromList

    How to create a matrix with choosefromlist? the value of my choosefromlist is a UDO. I have already registered my UDO. Under collection tab, i added choosefromlist where my objectType is the name of my UDO. In columns tab, i set the following:       

  • Error with Eclipse - please help me

    Hi I know that maybe that's not the best place to ask about DisplayTag, but You are my last chance !!! So please help me! I am using DisplayTag in my web application. Could You tell me please why a got such error in my class? The type javax.servlet.j