Logic to create multiple numbered copies of a page?

I have compiled a report that I need to create unique numbered instances of a page based on a number of units for different vendors, and I'm trying to automate the process. I use a parameter field to tell the report to determine the number of units that necessitate an additional copy of the report. For instance, if I enter a parameter of 10 and there are 50 units, I need to get 5 copies of the report; if there are 175 units, I need 18, and so on.
I'm trying to use a do while loop where I increment the page count lower each time a page is printed, but I can't figure out exactly how to pull it off..... Here's what I've got:
Dim c
c = {@total_reports}
Do While c > 0
    if c = 1 then Exit Do
    c = c - 1
Loop
formula = c
Total reports is the total number of pages I need for an individual report. There may be hundreds of individual reports for which I need to go through this duplication process.....
Of course, the formula as written only counts down to 1 and prints "1" into a single instance of a report, but that is where I'm hung up - how can I get it to start with number 18 and count down to number 1, and to then move on to the next unique report?
A million thanks in advance for any help!

This returns a 1 for all instances in the test report I'm using.
I didn't use the Roundup methodology because I need each instance of the report to return the value of units associated with the individual page/instance.
For example, if there are 238 units of a product, and the parameter entry denotes a split of 25, then I need it to create 9 reports, each noting that it covers 25 units (9*25=225) and one report noting that it covers 13 units (238-225=13). The mathematical end of things is pretty tidy, but I'm having trouble figuring out how to get it to print the "25" nine times and "13" once..... I need it to print to the page prior to going into the loop each time:
Dim c
c = {@total_reports}
Do While c > 0
    if c = 1 then Exit Do
    c = c - 1
----- PRINT VALUE TO PAGE LOGIC HERE -----
Loop
formula = c
I rarely have to use the basic scripting, so I'm just not sure how to get it to do what I want....

Similar Messages

  • BMM Logical Table  -  Create Multiple dimension

    Hi All,
    In BMM , I want to create more than one Dimension for a Logical Table. Is it possible to create multiple dimensional hierarchies on a single logical table. Can one share the thoughts or provide inputs. Thanks is Advance
    S

    If I understood your requirements, you are basically trying to do the "Role Playing" dimensions. Is that correct? Ifso, You can create alias for the associated physical table, and then use those aliases as logical tables and then create dimensions of this.
    HTH
    Mahesh

  • How do I create multiple columns with bullets in pages

    I'm trying to figure out how to create multiple columns within a document in which I bullet information...

    At the point you wish to change to two columns, Insert > Columns and then in the Layout Inspector, select the number of columns. After the insertion point, you will also need to insert another Column Change to return the following paragraphs to single column.
    Then Select the text to be bulleted and in the Text Inspector > List tab select the type of bullets.
    Note: This creates two columns that flow together. This can be tricky if you add any text later.
    If you wish to ensure alignment, create a two column text table and remove the lines with the Graphic Inspector > Lines > No Lines option and insert your text in each column and apply the bullets as above.
    This will create a text box - you then need to ensure it moves with the text by electing "Object Moves With Text" in the Wrpa Inspector.
    Message was edited by: bwfromspring hill

  • Create sequential numbering for chapters in Pages

    Can anyone tell me how to create sequential numbering for my 'scenes' or 'chapters' when writing scripts in Pages.
    I need to have them set up, so if for example, I have...
    Scene 01
    Scene 02
    Scene 03
    and down through scenes to say...
    Scene 52
    But I write another new scene in between scene 02 and 03... I need all the other scne numbers to change automatically below the new scene, instead of me having to manually go through and change every single scene number...
    How do I do this?

    Thanks... this is a reasonable compromise, which I have already done.
    The problem with script writing is that the Scenes are generally headed like this...
    Scene 22: Int - Dinning room - Night
    Then they might have a subtitle, which is a short descriptive of the scene, such as...
    Scene 22: Int - Dinning room - Night
    (Xmas Turkey dilemma)
    So, it could work as you suggest, but it is by far a perfect formula, I am dumbfounded as to why 'Pages' doesn't have this simple function, when just about every other word processing program does. Final Draft is an industry standard for script writing, but I actually prefer Pages, I have a lot more creative control with formatting, except for this one vital function... darn!
    Thanks for you suggestion Peter,
    Cheers

  • Creating Multiple Lightbox Galleries on one Page

    Hey,
    I am trying to create 3 different galleries on one page by using lightbox for each gallery.
    Here's the site:
    http://kristycline.businesscatalyst.com/index.html
    When you roll over the 3 deer images, "Graphic Design", "Websites", and "Fabric Art" are the roll over images. I would like to make them each clickable so a lightbox gallery pops up with the said gallery.
    The issue I'm having is when I put the button for the lightbox over the first deer (on the left, for "graphic design"), for some reason the invisible button for the lightbox makes the image revert back to the original. Why?? Not sure! There is a small space between where the invisi-button is and the edge of the deer so the roll over image appears, but not when hovering on the button for the lightbox gallery.. Make sense??
    Please let me know how I go about achieving this technique. Cheers ~ LOVE the MUSE!

    NVM ~ figured it out:
    Just had to make the "trigger" for the lightbox the actual deer image with a rollover effect ~ DUH!
    www.KristyCline.com

  • Create multiple pdf files from html pages

    I have 15 html pages that I need to convert (possibly several times a day) into pdf files, and I need to get the process as automated as possible. I own an Acrobat Pro 8 license.
    1) is there a command line I can launch to do this automatically?
    2) failing that, is there a way of launching several conversions at a time? There seems to be lot of talk about creating one pdf from several files, but what I want is to convert several html file into several pdf files
    thanks

    Managed it at last, was a bit of a hassle -
    (there was an erroneous error message saying I hadn't selected any files, when I had)
    Note For future readers: to do just a batch conversion, you have to ignore the "commands" section, which isn't intuitive, as it is bang in the middle and looks like the main feature...

  • Create multiple copies with multiple develop settings in one keystroke (like PS action)?

    Hi,
    I'm trying to move over from PS to LR in my tourist photo studio (it's easier to train employees, it's more intuitive, it's cheaper, etc.). However, there is one element missing that I simply can't do without. We're located in a theme park and we handle A LOT of people in a day so we're are a very fast paced studio, I like to call it fast food photography. Customers come in, have their photos taken, pick them out immediately and get prints right away (hopefully all in less than half an hour). I've always used Photoshop actions to make everything very fast and efficient (afterall, the less time we spend tinkering on a computer the more time we can spend interacting with our guests). As of now, customers get to pick the finish of their photo so I have an action that creates four layers, each with a different effect (b&w, antique, desaturated, full color). We then can click the layers on and off to show the customer what each finish looks like. I've been trying to replicate this in LR without any luck. The best I can figure out is to use virtual copies and create a preset for each effect. However, we simply don't have the time to click "create virtual copy" three times in succession then select each one and apply a different preset to create the four effects for one image. Esepcially since each customer usually buys multiple images we'd have to do that many times for just one sitting. It seems simple in theory, but the amount of time it takes to create 3-18+ virtual copies each with different presets applied adds up drastically. Clicking a function key for each image is an amazing time saver. The focus of our business is very customer oriented, and we've tried our best to create a workflow where we face our guests more than we face our computer monitors. If anyone knows of anyway to accomplish what I described in PS in an equally efficient manner in LR that would be wonderful. Perhaps there's a tactic I haven't thought of yet.

    What you describe cannot be done directly in Lr, i.e. there is - unfortunately - no way to create multiple Virtual Copies (VC) with one command.
    But in Lr you don't need multiple VCs. If you have created presets for each "look" you can just apply one "look", i.e one preset after the other the one-and-the-same VC. And you can apply the "looks" i.e. presets in any order and go back-and-forth numerous times. Since the Lr edits are not pixel edits but parametric (only a set of data in the Lr database = catalog), there is no harm done if you apply the same set of presets numerous times in various order. In Photoshop you would switch layers on and off (maybe you use layer comps), in Lr you would switch from one preset to the other for the same VC - or even for the original.
    And, you can always go back to the original state the photo was in when it was imported.
    If the customer likes one preset, just switch over to the Print Module, apply your Print Preset and print. If the customer likes three presets, go back to the Develop Module click on the other preset, go back to the Print Module ... go back to the Develop Module, click on the third preset .... etc.
    PS: I bet Lr could be even faster than Photoshop
    Message was edited by: web-weaver: PS added

  • Multiple columns in the Welcome page

    How can I create multiple columns in the Welcome page like Stanford's and Duke's?

    Stanford and Duke are super special sites that have access to experimental iTunes U layouts. They take all the risks so we don't have to.
    It's been covered before in this forum, but the good news is that we might, one day, have access to the same layout.

  • How to create multiple copies of a file with renamed filenames

    hi,
     I want to create multiple copes of a  file [ say abc.docx] which has 3.5 MB of size  and want to rename it through power shell.
    so, in the end, i want to get abc_1.docx,abc_2.docx, abc_3.docx ....abc_10.docx in the same folder with the same size. i mean, after running the ps script i should get the foldwer size set to 35 MB .
    can anyone help, how to achieve this?
    I am newbie in powershell. 
    i tried the below :
    $File = Get-ChildItem -Path "D:\ABCFolder\" -Filter Copying.bat -Recurse
    for($i = 0; $i -lt $File.Count; $i++)
    Copy-Item $File[$i].FullName ("D:\ABCFolder\" + $File[$i].BaseName + $i +".doc")
    help is appreciated!

    but the below one didnt work:
    $File = Get-ChildItem -Path "D:\ABCFolder\" -Filter Copying.Bat -Recurse
    for($i = 0; $i -lt $File.Count; $i++)
    1..10 | Copy-Item $File[$i].FullName "$($File[$I].DirectoryName)\$($File[$i].BaseName)_$_$($File[$i].Extension)"
    am getting the below erro when executing this code:
    $File = Get-ChildItem -Path "D:\mfolder\"
    $count = $file.Count
    for ($x = 0; $x -lt $count; $x++)
    $ext = $file[$x].Extension$name = $file[$x].BaseName
    for($i = 0; $i -lt 100; $i++)
    Copy-Item $File[$x].FullName -destination "D:\mfolder\$name_$i$ext"
    /////////////////////////////error below://///////
    At D:\mfolder\createcopies2.ps1:7 char:27
    + $ext = $file[$x].Extension$name = $file[$x].BaseName
    + ~~~~~
    Unexpected token '$name' in expression or statement.
    + CategoryInfo : ParserError: (:) [], ParseException
    + FullyQualifiedErrorId : UnexpectedToken

  • Creating multiple source systems one logical system

    Hi,
    The requirement is to create two source systems using same logical name and different RFC connections to ECC?
    We wanted to do some regular activities using one source system and some drill down activities using different source system.
    I am getting error when I try to create second source system "source system already exist"
    Please advice.
    Thanks.

    Hi,
    I dont think it is possible to create multiple source systems in a sinle logical client. You have to create multiple clients and you can connect to BI system by different RFCs.
    Hope this helps.....
    Regards,
    Suman

  • Create multiple copies of a position- HCM Processes and Forms

    Hi Experts,
    Hope all are doing well.
    In my current project we using HCM PnF to create positions and copy positions. We are using the FPM interface.
    One of the requirements is to for copy position and the user can create multiple copies(max upto 30) of a position.
    How can this be achieved in HCM PnF?
    One answer will be advanced generic service. Do we have any other way of achieving this? If not, do we have any sample code where we use advance generic service to call SAP_PD/ or any code which might be helpful?
    Waiting for you answers.
    Thanks very much in advance.
    Regards,
    Saikat

    Hi Kalyan,
    Thanks for your reply.
    Yes, I understand that we will have to achieve that through advanced generic service.
    To be honest I haven't used advanced generic service for PD before and it will be helpful if you can give me some code(may be the one inside do operations and flush). With some sample code it will be easier for me.
    Many thanks.
    Saikat

  • My iPhone 4 using iOS 6 is creating multiple copies of random voicemail messages

    My iPhone 4 using iOS 6 is creating multiple copies of random voicemail messages. How can I correct this I am deleting up to 10 - 15 duplicate voicemail messages daily.

    Had the same problem... talked to a Genius and he contacted Verizon Wireless (my carrier). Turns out the problem is Verizon's.  Contact Support and tell them you'd like your VoiceMail RESET (you will lose all your current voicemails).  Should correct the problem.

  • Create Multiple Copies of a Field - Mac

    I'm trying to make multiple copies of a field using DC on a Mac. The directions/support indicate that I should "right click" on the field - which, of course, cannot be done on a Mac. So how do I create multiple copies of a field on a Mac?
    In general, all of the directions for creating forms assume I am on a PC. Where/How do I find directions for creating forms with DC on a Mac?
    Thanks,
    Lawrence

    Hi Lawrence,
    Please let me know the os version and hardware model of your mac.
    Please refer this link, it 'might' help with your mac right click issue - http://www.wikihow.com/Right-Click-on-a-Mac
    I have replicated this issue for you on my mac, please refer the below screenshot and let me know if you still face a challenge.
    and this would lead to the following window :
    Now does this helps? Please feel free if you still have any question.
    Regards,
    Rahul

  • Add Folder to library taking a long time and creating multiple copies

    I have been a longtime WMP user and am ready to convert to iTunes. I am trying to "add folder to library", which causes a request to convert the files I already have (approx 5,000 songs).
    It has been running for more than two days, day and night, working on this. I am not kidding!
    I discovered that it has been creating multiple copies of the songs. It looks like it has restarted a few times, perhaps each time it restarts a new copy is made and placed in the iTunes folder.
    Should it take this long? What can I do to resolve the speed issue and to eliminate all the duplicate files?
    Please help.
    Thanks
    -medicnick

    Theoretically, "Add Folder to Library" goes thru the folder and all its subfolders, and adds each song that it finds that is not already in the library. Optionally, it will make a copy of each song and deposit it in the iTunes Music Folder according to Album and Artist.
    Personally, I have never seen it behave any different. But it is often reported on this forum that on large adds (and at 5000 yours is large) it does not behave properly.
    Since your iTunes library is new, and does not yet contain those precious play counts, why not just delete it and re-add the songs in small batches. You may wish to deselect the "Copy Files to iTunes Folder When Adding to Library" option in Edit > Preferences > Advanced > General.

  • Why do we create multiple aliases to a single table?

    <h4>{color:#0000ff}Hi,{color}</h4>
    <h4></h4>
    <h4></h4>
    <h4>{color:#0000ff} Why do we create multiple aliases to a single table in the same query?{color}</h4>
    <h4></h4>
    <h4></h4>
    <h4>{color:#0000ff}{color:#000000}For Ex: {color}{color}</h4>
    <h4>
    {color:#000000}select name,address,phone, from emp e, emp e1{color}</h4>
    <h4></h4>
    <h4>{color:#000000}where e.empid = e1.empid;{color}</h4>
    <h4>
    {color:#0000ff}ofcourse the above query's where condition is not correct, but i am giving as an example only{color}</h4>
    <h4>{color:#0000ff}I have seen similar kind of queries where a single table name is aliased 10 times in the same query{color}</h4>
    <h4>{color:#0000ff}can someone help me to understand the logic behind it?{color}</h4>
    <h4>{color:#0000ff}Thanks in advance{color}</h4>
    <h4>{color:#0000ff}greddy.{color}</h4>
    Edited by: greddy on Oct 24, 2008 2:46 AM

    Hi,
    When you say
    FROM    emp  e
    ,       emp  e1you are using two copies of the same table.
    Can you imagine using two copies of the same book at the same time?
    Say you see a word (like "hyrax") that you don't know. You might look up that word in the dictionary.
    The English sentence "Open the dictionary to the page containing the new word." is like this SQL query:
    FROM    dictionary
    WHERE   :unknown_word  BETWEEN low_guide_word and high_guide_wordWhat if you saw that word while reading a book (let's call it book_a).
    You might want to leave book_a open, and place the dictionary beside book_a, so you can easily compare how the word is used in book_a with the definition in the dictionary.
    This corresponds to joining two tables in SQL:
    FROM    book_a     
    JOIN    dictionary  ON unknown_word BETWEEN low_guide_word AND high_guide_word
    WHERE   book_a.page  = whatever  -- NOTE: both tables have a column called pageor you can use aliases for one or both of the tables
    FROM    book_a      a
    JOIN    dictionary  d  ON a.unknown_word BETWEEN d.low_guide_word AND d.high_guide_word
    WHERE   a.page  = whatever  -- NOTE: both tables have a column called pageNow, imagine that book_a is itself the dictionary. Say you saw the word "hyrax" while you were looking up another word, "ibex".
    You can do a side-by-side comparison, as above, if you have two copies of the dictionary. Leave one copy open to "ibex", and open the other copy to "hyrax".
    This corresponds to a self-join in SQL:
    FROM    dictionary  a
    JOIN    dictionary  d  ON a.unknown_word BETWEEN d.low_guide_word AND d.high_guide_word
    WHERE   a.page  = whatever  -- NOTE: both tables have a column called pageNotice that this last bit of code is identical to the previous one, except that book_a is replaced with dictionary.
    In this case, you must you a table alias, at least for one copy. It wouldn't make any sense to say "Leave the dictionary open to "ibex" and open the dictionary to "hyrax". You have to have some unique way of referring to each copy, such as "Leave the dictionary on my left open to "ibex" and open the dictionary on my right to "hyrax"."

Maybe you are looking for

  • How do I set up file sharing in Lion Server to work like file sharing in Lion Client?

    I've just installed Lion Server on my home iMac to enable remote access via VPN to my home network. When the iMac was running Lion Client (before the upgrade to server), and when File Sharing was enabled on the iMac; when other Macs on the LAN connec

  • Adobe Reader used with Bidmail program

    Hello- I am currently having a problem using the "hand tool" with a program called "Bidmail." Bidmail is a social networking site for contractors to share pdf. files online. My problem is, when I log into bidmail.com, I open up a pdf. file to view an

  • 915G Combo Video (?) problem

    Has anyone encountered this problem where video intensive programs can't be run such as PowerVCR, Dazzle video capture, etc. However, Hauppauge WinTV runs OK but not in full screen. I thought perhaps the integrated video does not have enough memory b

  • SQL Server 2000 and problems conecting to DBase

    Hello, I get this code: String url = "jdbc:microsoft:sqlserver://localhost:1433";     //jdbc:microsoft://server:port/database     String user = "wilson";     String password = "";But I get this stackTrace: java.sql.SQLException: [Microsoft][SQLServer

  • Program to Track the Transport Request

    Hi Experts, I got a requirement to write a program which can track and compare the Transport Request  between the servers(Development ,Test and Production) . If in case is there any descrepancy between the versions (In the server) it should throw an