Repeat one recordset many times

I have a recordset that will always return 1 record with anywhere from 1 to 16 tbl.Fields, which is where my problem starts. Since I can't use repeat region I need to get this recordset to repeat multiple times depending on the  session variable (Session("Times").
(<% Session("Times") = Session("Quantity") / Session("Fields") %>
My question is, is there any way to repeat this recordset so it will be displayed on a page equall to Session("Times")  ?
Example: Session("Quantity") could = 900  and Session("Fields") could  = 3 so I would like this recordset repeated 300 times
Another one: Session("Quantity") could = 500  and Session("Fields") could  = 10 so I would like this recordset repeated 50 times
The returned (repeated) data would have 3 fields displayed 300 times
Or 10 fields displayed 50 times
Thanks

On the page I got
Message1line1
Message1line2
Message1line3
Message1line1
etc for 51 loops but for only one message.
So then I divided 51 by the number (x) of records (from another recordset rsNumberOfMessages_total) I now get
Message1line1
Message1line2
Message1line3
Message1line1
Message1line2
Message1line3
Message1line1
Message1line2
Message1line3
Message1line1
X amount of times (equal to the others) then
Message2line1
Message2line2
Message2line3
X amount of times (equal to the others) then
Message3line1
Message3line2
Message3line3
X amount of times (equal to the others)
Here's the code area.
<% Session("Times") = 51 / Session("NumbOfMessages") %>
<%
While ((Repeat1__numRows <> 0) AND (NOT rsMessages.EOF))
%>
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="message">
<%
i=0
Do Until i>= Session("Times")  ' returns an equal amount of messages before it displays the next message, etc... 
i=i+1  
%>
<tr>
    <td width="225" align="center" valign="top" nowrap> <font size="<%=Session("Pitch")%>" face="<%= Session("FontName")%>">
     <br>
<%=(rsMessages.Fields.Item("IC_Line1").Value)%><br>       
        <%=(rsMessages.Fields.Item("IC_Line2").Value)%><br>
        <%=(rsMessages.Fields.Item("IC_Line3").Value)%><br></font> </td>
  </tr>
  <tr>
    <td width="225" align="center" valign="top" nowrap> </td>
  </tr>
  <% Loop %>
</table>
<%
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  rsMessages.MoveNext()
  Wend
  %>
I haven't worked with nested loops, if that is looping outside of the repeat regin, I tried that orginally and it returned nothing.
Thanks for helping me with this hair puller...

Similar Messages

  • Ipod disabled, changed my password but entered the wrong one too many times!

    ipod disabled, changed my password but entered the wrong one too many times!
    Didnt have a pc with ituens before either but now have one although dont quite know what to do.

    plug your ipod touch into your computer in recovery mode. (see herehttp://support.apple.com/kb/ht1808)
    Reset all data and settings
    dont restore from backup
    sync back content

  • Hi my mom tried my password one to many times and now i am disabled and cant get into my phone at all, it just allows for emergency calls.

    hi anyone to there know how to fix my problem. my mom tried my password one two many times and now my phone is disabled and i cant use it unless its a emergency.

    iOS: Forgot passcode or device disabled
    I hope you back up on a regular basis.

  • Send one request many times

    Hi Experts
    I have scenario where first request should go from XI.means
    XI should initiate a request with an XML file to the target system. This request should send 10 times for every 10 min and each time there is field in xml ( COUNTER field) should increase by one. Like if the counter contains value 1 if i am sending request for first time second time it should be 2 like that. But i should not hard code this value any where.
    Is it passoible to send one request 10 times with each time increasing the count.
    Please suggest me.
    Thansk & Regards
    Ravi Shankar B

    You may create and schedule an ABAP report doing the stuff you want.
    1. Create content of XML file
    2. read current count value from own z table
    3. add 1 to counter
    4. store new value in z table
    5. handover the stuff to Integratiomn Engine e.g. using sRFC or tRFC
    6. PI sends the stuff as XML file
    Schedule this report to run every 10 min.
    Regards,
    Volker

  • Referencing one object many times

    Hallo,
    I have an m:n relationship between products and spareparts (both object tables):
    create or replace type sparepart_TY as object(
    sparepartid number,
    designation varchar2(50)
    create or replace type sparepart_NT as table of ref sparepart_TY
    create or replace type product_TY as object(
    productid number,
    designation varchar2(50),
    spareList sparepart_NT
    create table spareparts of sparepart_TY
    create table products of product_TY
    nested table spareList store as spareList_NT_TAB
    This way I can reference many spare parts to one product.
    But how can I show, that one product has the same spare part several times?

    As Chris suggests, you can
    reference several times the same instance:
    insert into spareparts values (101, 'SP 1');
    insert into spareparts values (102, 'SP 2');
    insert into products values (
      '1', 'P 1',
      sparepart_NT (
        (select ref (sp) from spareparts sp where sparepartid = 101),
        (select ref (sp) from spareparts sp where sparepartid = 102),
        (select ref (sp) from spareparts sp where sparepartid = 102)
    );or redefine the type "sparepart_nt" to contain, in addition to the ref, a new attribute "quantity":
    create or replace type sparepart_ref_qty_TY as object (
      sparepartref ref sparepart_TY,
      quantity number (2)
    create or replace type sparepart_NT2 as table of sparepart_ref_qty_TY
    create or replace type product_TY2 as object (
      productid number,
      designation varchar2(50),
      spareList sparepart_NT2
    create table products2 of product_TY2
      nested table spareList store as spareList_NT_TAB2
    insert into products2 values (
      '1', 'P 1',
      sparepart_NT2 (
        (sparepart_ref_qty_TY ((select ref (sp) from spareparts sp where sparepartid = 101), 1)),
        (sparepart_ref_qty_TY ((select ref (sp) from spareparts sp where sparepartid = 102), 2))
    );But, I don't like REF's and object tables.
    First, REF can't replace good old foreign keys. After:
    delete spareparts;
    we have "dangling REF's" in products (in nested table spareList).
    C.J.Date in "An introduction to Database Systems" (eighth edition, 2004, chapter 26)
    says that using REF's in relational databases we make "The Second Great Blunder":
    - "The blunder consists of mixing pointers and relations"
    - "The Second Great Blunder undermines the conceptual integrity of the relational model in numerous ways"...
    "The First Great Blunder" is to equate object classes and relational variables,
    simply speaking - to have object tables (tables in which each row represents an object).
    Without "The First Great Blunder" (object tables) we can't make "The Second Great Blunder" (using REF's),
    but we can have object tables without REF's.
    The "proper way" (in Date's sense) of how to use "object-relational" features is - to use object type as domain.
    Regards,
    Zlatko

  • One Mapping Many Times

    Hi,
    I have a situation where I have a simple mapping that needs to be run for many tables. All input and output tables have identical structure, and the internal mapping operations are constant for all invocations of this mapping. So, I need to drive a single mapping with runtime assignment of the input and output bound table names.
    Incidentally, I have an indexed table with all fifty-odd input/output table names available. The mapping needs to run sequentially, so conceptually I need to loop through the indexed table, exeuting the mapping once per row.
    Any ideas?
    Regards,
    Donna.

    I think that was clear from your initial question..., the point we were making is that you cannot parameterize the mapping in the way you want.
    The reason is that we would have to generate Dynamic SQL to allow the same code to handle different sources and targets (even if they are exactly the same).
    The reason for that is that you have to re-compile the code to handle the new table names...
    So the thing to do is fix your bound table names, then change the database implementation of the object you bind to. In other words you have a bound object called DONNA_SRC and DONNA_TGT, this is a synonym pointing to SRC1 and TGT1.
    You execute mapping first time, reading/writing SRC1 and TGT1, then in post mapping process you register this as success in you table.
    Run mapping again, in pre mapping read from table the next table names. In this proc change the synonyms, run mapping etc.
    YOu keep on going. To run in batch there are various possibilities, either process flow (contains the map 50 times or so), or in a pl/sql program, that loops through the table and drives it off of that. Same basic principle.
    Jean-Pierre

  • How to link a fact table to one dimension many times

    I have fact table which contains four date fields and I want to connect all of them to the Time dimension. I think I probably must split this fact table to multiple tables and then link them to dimensions. What is the right way to solve this kind of problem?
    Example: Fact table: TimeIn, TimOut, TimeStart, TimeStop, InPlace, OutPlace, StartPlace, StopPlace, Speed, Weight, Width, Height .....
    Thank you

    Hello Kostis,
    thank you for your answer. I don't fully understand you. Can you show me short example, please? I create alias table for time dimension on Physical Layer - original table is TimeDayDim and I create aliases TimeDayDim1, TimeDayDim2, TimeDayDim3, TimeDayDim4. Then I create foreign key Fact.Time1 -> TimeDayDim1, Fact.Time2 -> TimeDayDim2, Fact.Time3 -> TimeDayDim3, Fact.Time4 -> TimeDayDim4. And what now? Must I create these table api Bussines Model and create new time dimensions at bussiness model????
    I need in Answers ONE Time dimension. I think I must split my fact table to four tables ... (time1, place1 ...) (time2, place2 ...) (time3 place3...) (time4 place4...) then link those tables to Time dimension (but I dont know where I can split those tables - on Physical Layer or on Bussines Layer).
    I suppose that I will have in Answers one time dimension and four facts tables and I will be able to query them. (for example: Time.Days, Fact1.Place1, Fact3.Speed, Fact4.Count Criteria: Time.Year = 2008)
    Best Regards Vlada

  • How to use one ResultSet many times in a jsp page ?

    Hi all,
    I have .jsp page and I have used it to get data from DB and display them to users. So I have to get data from DB in number of places in this particular jsp.
    I thought that it is better to have one ResultSet for entire page and once it is done its job, the ResultSet will be closed and I can use it again and again like this.
    Resultset rs = new ResultSet();
    try{
        //My operations
    }catch(Exception ex){
       //Handle Exceptions
    }finally{
       rs.close();
    }After above code snippet I can use same ResultSet again below the page.
    I just want to know this,
    1. is this a good coding practice?
    2. Should i put rs = null; within finally clause?
    any help will be appreciated
    thank in advance,
    Dilan.

    Ok, Finally I switched my coding to use DAO and DTO, and I learned it through internet.
    I removed all of data access codes from my jsp file(lets say 'functions.jsp'). I then created one interface and two clasess.
    here is my DAO interface.
    public interface UserFunctionsDAO{
        public List<UserFunctionsDTO> selectUserList();
    }here is DTO class
    public class UserFunctionsDTO{
        private String category = "";
        private String sub_category = "";
        private int cat_id = 0;
        private int sub_cat_id = 0;
        public UserFunctionsDTO(){}
        public UserFunctionsDTO(String category, String sub_category, int cat_id, int sub_cat_id){
            this.category = category;
            this.sub_category = sub_category;
            this.cat_id = cat_id;
            this.sub_cat_id = sub_cat_id;
        //Setters and getters will go here.
    }my concrete data access class is like this.
    public class UserFunctionsDataAccess implements UserFunctionsDAO{
        MyDB dbObject = null;
       private static final String SQL_GET_DISTINCT_CAT= "SELECT DISTINCT cat FROM cat_table";
       public List<UserFunctionsDTO> selectUserList(){
           dbObject = new MyDB();
           dbObject.sqlSelect(SQL_GET_DISTINCT_CAT);
           ResultSet rs = dbObject.getResultSet();
           ArrayList list = new ArrayList();
           while(rs.next()){
               list.add(new UserFunctionsDTO(rs.getString('category'), .......................));
           return list;     
    }I think now im following good coding practices, but I have one problem.
    1. How do I retrieve this userlist from my jsp page?
    2. Should I include UserFunctionsDTO in my jsp page as a bean?
    3. If I include it, how can I get the list from it?
    thanks in advance,
    Dilan.

  • HT1212 my daughter has a brand new ipod touch - never used - she entered a passcode then immediately forgot it and now she has tried to enter one too many times and ipod is locked for 1 hour - she has never synced with itunes HELP

    my daughter has a brand new ipod touch - latest one - she started to input a passcode then didn't finish the process then turned off ipod. she turned it back on and it is asking for a passcode - she doesn't remember what she typed. Ipod is now disabled for one hour. Can we override the disable. How do we reset passcode when we don't klnow the original. It has never been synced to Itunes. I am completely lost.

    If You Are Locked Out Or Have Forgotten Your Passcode
    iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    iOS- Understanding passcodes
         If you have forgotten your Restrictions code, then follow the instructions
         below but DO NOT restore any previous backup. If you do then you will
         simply be restoring the old Restrictions code you have forgotten. This
         same warning applies if you need to restore a clean system.
    A Complete Guide to Restore or Recover Your iDevice (if You Forget Your Passcode)
    If you need to restore your device or ff you cannot remember the passcode, then you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and re-sync the data from the device (or restore from a backup). If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present. Refer to Updating and restoring iPhone, iPad and iPod touch software.
    Try restoring the iOS device if backing up and erasing all content and settings doesn't resolve the issue. Using iTunes to restore iOS devices is part of standard isolation troubleshooting. Restoring your device will delete all data and content, including songs, videos, contacts, photos, and calendar information, and will restore all settings to their factory condition.
    Before restoring your iOS device, Apple recommends that you either sync with iTunes to transfer any purchases you have made, or back up new data (data acquired after your last sync). If you have movie rentals on the device, see iTunes Store movie rental usage rights in the United States before restoring.
    Follow these steps to restore your device:
         1. Verify that you are using the latest version of iTunes before attempting to update.
         2. Connect your device to your computer.
         3. Select your iPhone, iPad, or iPod touch when it appears in iTunes under Devices.
         4. Select the Summary tab.
         5. Select the Restore option.
         6. When prompted to back up your settings before restoring, select the Back Up
             option (see in the image below). If you have just backed up the device, it is not
             necessary to create another.
         7. Select the Restore option when iTunes prompts you (as long as you've backed up,
             you should not have to worry about restoring your iOS device).
         8. When the restore process has completed, the device restarts and displays the Apple
             logo while starting up:
               After a restore, the iOS device displays the "Connect to iTunes" screen. For updating
              to iOS 5 or later, follow the steps in the iOS Setup Assistant. For earlier versions of
              iOS, keep your device connected until the "Connect to iTunes" screen goes away or
              you see "iPhone is activated."
         9. The final step is to restore your device from a previous backup. If you do not have a
              backup to restore, then restore as New.

  • Address label - one address many times

    i want to print a sheet of avery 5160 label paper with the same address on every label. can address book do this?

    Avery's free program does a very nice and easy job of dealing with this type of project:
    http://www.avery.com/avery/en_us/Templates-%26-Software/Software/Avery-DesignPro -for-Mac.htm
    You can Mail Merge with Apple's Address Book or build a single label manually, and customize the templates with your own artwork. - Tested with OS 10.6.2

  • My mini iPad is disabled due to kid trying passcode too many times; laptop used for setting the iPad has been rebooted; how can I enabled my iPad now?

    Please help, and forward the answer to [email protected] as well.
    Thanks.

    Recovery Mode
    1. Disconnect the USB cable from the device, but leave the other end of the cable connected to your computer's USB port.
    2. Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for the device to turn off.
    3.While pressing and holding the Home button, reconnect the USB cable to the device. The device should turn on.
    4. Continue holding the Home button until you see the "Connect to iTunes" screen. When this screen appears, release the Home button. iTunes should alert you that it has detected a device in recovery mode. Click OK, and then click Restore to restore the device.
    Note: Data will be lost. You may have to repeat the above many times.

  • Hello my kids locked up thier ipad by entering the wrong password too many times and we cant reset it any suggestions

    HELLO THE KIDS HAVE LOCKED THIER IPAD AND IT IS TELLING ME CONNECT TOO ITUNES BUT IVE DONE THAT AND STILL NOTHING

    Recovery Mode
    1. Disconnect the USB cable from the device, but leave the other end of the cable connected to your computer's USB port.
    2. Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for the device to turn off.
    3. While pressing and holding the Home button, reconnect the USB cable to the device. The device should turn on.
    4. Continue holding the Home button until you see the "Connect to iTunes" screen. When this screen appears, release the Home button.
    5. iTunes should alert you that it has detected a device in recovery mode. Click OK, and then click Restore to restore the device.
    Note: You need to be patient and repeat the above many times to recover your iPad. Data will be lost.

  • How can I delete repeats in my iPhoto library without going one at a time?

    I have been trying to clean up my iphoto library, and find that many of my imports have been repeated in different places. Is there a way to clean out repeat photos so there aren't so many of the same ones without having to do so one at a time?

    You can use any one of these applications to identify and remove duplicate photos from an iPhoto Library:
    iPhoto Library Manager - $29.95
    Duplicate Cleaner for iPhoto - free - was able to recognize the duplicated HDR and normal files from an iPhone shooting in HDR. 
    Duplicate Annihilator - $7.95 - only app able to detect duplicate thumbnail files or faces files when an iPhoto 8 or earlier library has been imported into another.
    PhotoSweeper - $9.95 - This app can search by comparing the image's bitmaps or histograms thus finding duplicates with different file names and dates.
    PhotoDedupo  - $4.99 (App Store) - this app has a "similar" search feature which is like PhotoSweeper's bitmap comparison.  It found all duplicates.
    DeCloner - $19.95 - can find dupicates in iPhoto Libraries or in folders on the HD.
    Some users have reported that PhotoSweeper did the best in finding all of the dups in their library: i photo has duplicated many photos, how...: Apple Support Communities.
    If you have an iPhone and have it set to keep the normal photo when shooting HDR photos the two image files that are created will be duplicates in a manner of speaking (same image) but the only diplicate finder app that detected the iPhone HDR and normal photos as being duplicates was PhotoSweeper.  None of the other apps detected those two files as being duplicates as they look for file name as well as other attributes and the two files from the iPhone have diffferent file names.
    iPLM, however, is the best all around iPhoto utility as it can do so much more than just find duplicates.  IMO it's a must have tool if using iPhoto.
    OT

  • When I select an album to play the first song gets listed many many times on upnext and is the onyl one to play..help

    When I select an album to play the first song gets listed many many times on upnext and is the only one to play..help

    Figured it out.. Had the repeat set to 1...so it lists the first song multiple times....

  • I have 3 older ext. hard drives that I've utilized many times. Today while searching for old files, one of the three is no longer recognized by my PowerMac.  Any suggestions?

    I have 3 older ext. hard drives that I've utilized many times. Today while searching for old files, one of the three is no longer recognized by my PowerMac. The drive is not listed in Disk Utility.  Any suggestions?

    Is the computer in you equipment line:
    Dual Core Intel Xenon
    (which is not a PowerMac but a Mac Pro) the one you are asking about, or do you have an older PowerMac?
    If a Mac Pro, their forums are here:
    Mac Pro
    and, as Mac Pros have a totally different architecture from the pre-2005 Macs this forum covers, you may not have the same issues that can affect the older models. If someone didn't notice your equipment line, you could get advice that doesn't apply.
    If you really have a pre-2005 PowerMac, read on.
    If the stubborn external is USB and does not have its own power brick (i.e., it gets power only from the computer's UBS ports--"bus powered"), it may not be getting enough power. As electric motors age, they can demand more power than when new, and the power available on any USB port is limited.
    The typical workabouts to making a computer recognize an aging, bus-powered USB drive are:
    Get a powered USB hub (has its own power brick
    Get a "Y" USB cable: 1 Meter USB 2.0 A to 5 Pin Mini B Cable - Auxiliary USB "Y" Power Design for external hard drives.
    The second gets power from two USB ports on the computer and often that's enough.
    Remember that the USB ports on your keyboard seldom provide enough power even for a thumb drive, so be sure to use the USB ports on the back of the computer.

Maybe you are looking for

  • Blue screen when trying to connect ipod

    When trying to connect my ipod to my computer it reboots it into a blue screen that looks something like this... STOP: 000000007F (0000000008, 0X80154000 etc, etc.) minidump something something. I looked in my minidump folder but there was nothing in

  • T-Code for craring Tax Jurisdiction Code

    Hi, I need to define tax codes in FTXP,before that i need to define Tax Jurisdiction Codes.Kindly advice me where can i create the new Jurisdiction Codes. Thanks Supriya

  • Linking a dbase table to an Oracle one

    Hello Every body Is there a mean (by ODBC,JDBC or somethink else) to link a dbase table to an oracle table so that oracle process can read the dbase table from the oracle side? Please advice. Thanks in advance

  • UNABLE TO CREATE A NEW CONNECTION

    An error was encountered performing the requested operation: IO Error: The Network Adapter could not establish the connection Vendor code 17002 PLEASE HELP ME TO CREATE A CONNECTION I DONT KNOW WHAT VALUES SHOULD BE ENTERED IN THE COLUMNS TO CREATE A

  • Could not sync calendar (iCal) sync server failed to sync iPad.  Any advice?

    Keep getting this error message: "iTunes could not sync calendars (iCal) to the iPad because sync server failed to sync the iPad. Any suggestion? Thanks