Auto-increment receipt number?

Hi,
I'm trying to increment a single number, and not having much luck.  Here's what I'm doing:
My tennis club needs to print about three hundred receipts.  I've designed a master page in Indesign CS4.  On that master page, in landscape format, I have eight identical receipts arranged in a 2 x 4 arrangement (so as to be able to print eight receipts on one page).
On each receipt, I have a single "receipt number" which I'd like to automatically increment on each receipt: "0000001", "0000002", "0000003", etc.  So, ideally, I'd be able to simply set up the auto-increment, apply the master page to about 30 pages or so, and the last receipt on the last page would be numbered at "0000300".
However, I'm not entirely sure how to do this.  Do I use a text variable of some sort?  I tried going to that, but nothing I tried worked.
Thanks!

This is discussed fairly regularly. Solutions range from creating a one-receipt-per-page document in which you use an automatic page number, and then place that file inito a new N-up layout, to Data Merge, to simply placing a number list saved as a text file.
I've used both of the last two and find them pretty easy. I'm fond of the Data Merge approach because it allows me to very easily arrange the numbers on the sheets so they are printed in stacks and don't need to be sorted after cutting. You can do that in a palin text file, too, but I find it less intuitive.
For doing that with Data Merge I set up a spread sheet with X columns and Y rows. X is the number of tickets or receipts on a single page, Y is the number of sheets required to print all the numbers. I start by filling the first three cells in the first column reading down in consecutive order, then use auto fill to complete the column. Repeat for the next two columns, then you can use auto-fill to complete all the rows. Add a new row at the top for field names for Data Merge and export as comma separated text.
Put the placeholders for all the receipts on the page and do a single-record-per-page merge.

Similar Messages

  • How to auto increment a NUMBER(10) datatype

    Anyone know the syntax on how to auto increment a number field every time a new row comes in?
    TIA
    CREATE TABLE loc_color_group_values(
         ID number(10) NOT NULL auto_increment, <----------------
         COLOR_CODE_ID number(10) default 0,
         PROD_LOC_ID number(10) default 0,
         COLOR_GROUP_CODE_ID number(10) default 0,
         PRIMARY KEY(ID)
    );

    Here is an example:
    CREATE OR REPLACE TRIGGER "EXAMPLE_TRIG" BEFORE
    INSERT ON "loc_color_group_values" FOR EACH ROW BEGIN
      IF :NEW.id IS NULL THEN
        SELECT loc_color_group_values_seq.nextval INTO :NEW.id FROM dual ;
      END IF;
    END ;This allows you to overide the sequence without having to disable the trigger.

  • Create Auto increment sequence number for list view report

    Hi All,
              Am using BAM 11.1.1.6 version, Have updating list report & wants to create auto increment sequence number at report level. Is it possible to create column at run time in BAM reports.
    Please help.
    Thanks.

    Hi All,
              Am using BAM 11.1.1.6 version, Have updating list report & wants to create auto increment sequence number at report level. Is it possible to create column at run time in BAM reports.
    Please help.
    Thanks.

  • Is it possible to auto increment a number in share point list ?

    hello,
    is it possible to generate an auto increment field in share point list?
    for example,  there are two fields [auto increment id] and [title]
    lets say i create title as 'Steve' ; it will  automate auto increment field  with value 1 
    next , i insert title 'Paul' it ll populate the auto increment field with value 2.
    thanks,
    Jay

    Hi Jay,
    You can use the Item Id field of the SharePoint list which will get incremented by 1 whenever you add the new item.
    you can refer the below threads for other options of auto increment id
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/134fd5f6-17ce-4044-a78e-e7a32b523190/creating-autoincrement-field-in-sharepoint-list?forum=sharepointgeneralprevious
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/39743bb3-872d-4788-96a8-2b9fb8813011/create-auto-increment-value-in-sharepoint-column?forum=sharepointgeneralprevious
    My Blog- http://www.sharepoint-journey.com| Twitter
    If a post answers your question, please click "Mark As Answer" on that post and "Vote as Helpful

  • Auto increment version number

    I want my program to be able to display a version number which is incremented automatically on every new build. Is there any way I can do this in Eclipse 3.2.1?

    It's not an Eclipse question it's a Java question, I just wanted to know whether there was some way of automating this through Eclipse as that is the IDE I'm using at the moment.

  • Sequence file Version number. How to prevent the automatic resetting build version number whilst auto-incrementing revision number?

    Hi,
    I've got my environment set this way that each save of the sequence file increase the revision part of version number. However, during that increase the build counter is reset to 0. How to prevent it?
    TS 4.2

    Mimi,
    It is pretty common practice in software revisioning to reset a minor number to 0 when a major moves up 1.  There are many different schemes out there.  If you google or bing software versioning schemes you'll see what I'm talking about.
    So looking at it from left to right:  Major.Minor.Revision.Build = 0.0.0.1 
    if you change the Revision it would be expected that anything to the right (in this case Build) would reset to 0.  0.0.1.0!
    Let's say your version is 8.34.56.23.  It would make sense that if you were to change the Major number (which means a Major release) to 9 then your version would go to: 9.0.0.0. 
    A version number is just a unique way to tell someone which specific software you are using so it really doesn't matter that it resets to 0.  Although it makes sense because if you kept your build number sequential and didn't reset it then it would get outrageously larger which would be more annoying than anything. 
    Again this is common accepted practice in industry.
    Good Luck,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How could you auto-increment a number in a select

    i have some select sentences that i think i could do in one line:
    UPDATE RECIBO SET RECARGO = (SELECT FLOOR((SELECT MONTHS_BETWEEN (SYSDATE , (SELECT F_EMISION FROM RECIBO WHERE N_RECIBO = 0001)) / 12 FROM DUAL)) FROM DUAL) WHERE N_RECIBO = 0001 AND F_PAGADO IS NULL;
    UPDATE RECIBO SET RECARGO = (SELECT FLOOR((SELECT MONTHS_BETWEEN (SYSDATE , (SELECT F_EMISION FROM RECIBO WHERE N_RECIBO = 0002)) / 12 FROM DUAL)) FROM DUAL) WHERE N_RECIBO = 0002 AND F_PAGADO IS NULL;
    UPDATE RECIBO SET RECARGO = (SELECT FLOOR((SELECT MONTHS_BETWEEN (SYSDATE , (SELECT F_EMISION FROM RECIBO WHERE N_RECIBO = 0003)) / 12 FROM DUAL)) FROM DUAL) WHERE N_RECIBO = 0003 AND F_PAGADO IS NULL;
    UPDATE RECIBO SET RECARGO = (SELECT FLOOR((SELECT MONTHS_BETWEEN (SYSDATE , (SELECT F_EMISION FROM RECIBO WHERE N_RECIBO = 0004)) / 12 FROM DUAL)) FROM DUAL) WHERE N_RECIBO = 0004 AND F_PAGADO IS NULL;
    UPDATE RECIBO SET RECARGO = (SELECT FLOOR((SELECT MONTHS_BETWEEN (SYSDATE , (SELECT F_EMISION FROM RECIBO WHERE N_RECIBO = 0005)) / 12 FROM DUAL)) FROM DUAL) WHERE N_RECIBO = 0005 AND F_PAGADO IS NULL;
    UPDATE RECIBO SET RECARGO = (SELECT FLOOR((SELECT MONTHS_BETWEEN (SYSDATE , (SELECT F_EMISION FROM RECIBO WHERE N_RECIBO = 0006)) / 12 FROM DUAL)) FROM DUAL) WHERE N_RECIBO = 0006 AND F_PAGADO IS NULL;
    UPDATE RECIBO SET RECARGO = (SELECT FLOOR((SELECT MONTHS_BETWEEN (SYSDATE , (SELECT F_EMISION FROM RECIBO WHERE N_RECIBO = 0007)) / 12 FROM DUAL)) FROM DUAL) WHERE N_RECIBO = 0007 AND F_PAGADO IS NULL;
    UPDATE RECIBO SET RECARGO = (SELECT FLOOR((SELECT MONTHS_BETWEEN (SYSDATE , (SELECT F_EMISION FROM RECIBO WHERE N_RECIBO = 0008)) / 12 FROM DUAL)) FROM DUAL) WHERE N_RECIBO = 0008 AND F_PAGADO IS NULL;
    UPDATE RECIBO SET RECARGO = (SELECT FLOOR((SELECT MONTHS_BETWEEN (SYSDATE , (SELECT F_EMISION FROM RECIBO WHERE N_RECIBO = 0009)) / 12 FROM DUAL)) FROM DUAL) WHERE N_RECIBO = 0009 AND F_PAGADO IS NULL;
    UPDATE RECIBO SET RECARGO = (SELECT FLOOR((SELECT MONTHS_BETWEEN (SYSDATE , (SELECT F_EMISION FROM RECIBO WHERE N_RECIBO = 0010)) / 12 FROM DUAL)) FROM DUAL) WHERE N_RECIBO = 0010 AND F_PAGADO IS NULL;
    note that only the number changes. i would need it to go through EVERY row from table "RECIBO". please, some idea? thanks!
    Edited by: user13475720 on 01-mar-2011 3:17

    hi there
    create s sequence
    CREATE SEQUENCE scott.SEQ
      START WITH 1
      MAXVALUE 99
      MINVALUE 1
      NOCYCLE
      NOCACHE
      NOORDER;then put seq.nextval
    in ur query
    UPDATE RECIBO SET RECARGO = (SELECT FLOOR((SELECT MONTHS_BETWEEN (SYSDATE , (SELECT F_EMISION FROM RECIBO WHERE N_RECIBO = SEQ.NEXTVAL)) / 12 FROM DUAL)) FROM DUAL) WHERE N_RECIBO =  SEQ.NEXTVAL AND F_PAGADO IS NULL;Regards
    Hitesh

  • How to use auto-increment and search option for MS Access DB

    Dear All,
               I have configured our invoice in Adobe Livecycle and connected it to MS Acess 2007 as per http://forms.stefcameron.com/2006/09/18/connecting-a-form-to-a-database/.
    All is working fine, I can insert, retrieve data from DB to invoice and vice versa.
    Now I want few things to be implemented on our invoice.
    When ever I open our invoice, it populate the first entry from DB, Is it possible to populate the last entry ?
    Auto increment invoice number from MS Access DB every time we open our invoice after save.
    How to implement search option from DB for invoice number ?
    Please let me know if someone can provide me help on my scenario, so that I can share more stuff related to invoice and DB.
    Look forward to hearing soon from experts and other team members.
    Thanks & Regards
    Riyad...

    As far as I know there is not any auto increment data type in Oracle. Instead of this you should create a sequence and get the next value of the sequence while creating a row in your table.
    CREATE SEQUENCE Test_Sequence ;
    CREATE TABLE Test_Table ( Id NUMBER , Foo VARCHAR2(4) ) ;
    ALTER TABLE Test_Table ADD CONSTRAINT Test_Table_PK_Id PRIMARY KEY ( Id ) ;
    INSERT INTO Test_Table ( Id , Information ) VALUES ( Test_Sequence.NEXTVAL , 'FOO' ) ;

  • Regarding auto increment

    how can i auto increment the number in my table while inserting the data

    Good point. If any error occurs during insertion -
    the sequence will be broken. Bucause, even if your
    transaction failed sequence will generate the new
    sequence number. But, as a result of that error -
    insertion won't be taken into place. Thus, break your
    continous chain.It is probably good point (depending on requirements) irregardless of that.
    Sequences ARE NOT for CONTINUOUS number generation.
    Sequences ARE for UNIQUE number generation.
    Continous chain will break also at least rollback (always) and DB restart as well (unless you haven't specified sequence as nocache which generally is silly idea).
    Gints Plivna
    http://www.gplivna.eu

  • Auto increment variable in foreach loop in ssis

    i know this has been asked N number of times, but still i have a question for you guys
    i have files sitting in FTP location
    i am loading the data from the files into tables (no issues)
    but i need to assign value to a particular column as -99999999 and then auto increment that number while loading the files into the database
    I cannot have auto increment for the that particular column
    should i use a derived column, script component, execute sql task?
    can somebody point me to the right direction
    if it were a single file, assigning the auto incremental number is easy, but with for each loop, i am not able to get the solution
    Thanks

    Hi Jack,
    To achieve your goal, you can use a Row Count Transformation in the Data Flow Task to get row count for each file, and then use an Execute SQL Task after the Data Flow Task to update the total row count variable. Supposing the variable used in the Row Count
    Transformation is InsertCount, the variable used to store the total row count is TotalInsertCount. We need to set the ResultSet of the Execute SQL Task to “Single row”, and the SQLStatement to:
    DECLARE @Insert_Count INT, @Total_Insert_Count INT
    SET @Insert_Count=?
    SET @Total_Insert_Count=?
    SET @Total_Insert_Count=@Total_Insert_Count + @Insert_Count
    SELECT R_Total_Insert_Count=@Total_Insert_Count
    Then, set the Parameter Mapping of the Execute SQL Task, we map variable InsertCount and TotalInsertCount to the parameters in the SQL statement respectively. In the ResultSet page of the Execute SQL Task, map the resultset to variable TotalInsertCount.
    Please refer to the following screenshot:
    Regards,
    Mike Yin
    TechNet Community Support

  • Auto Increment Sequence Custom Field

    Hi All,
    I was wondering if it is possible
    to have a custom field defined as an auto incrementing sequence number?  E.g. Let’s say I go in and create a project for the first time, this field will show the value 1.  The next project I go to create, the field shows the value 2 etc. etc. 
    If possible, how can this be implemented using customization?  Can it be done in Project Online?  Any help would be greatly appreciated.  thank you!

    Hi JSimoni1,
    You can generate a project unique ID using a webpart, even with Project Online.
    Please find below the procedure in EpmExpert blog:
    http://epmxperts.wordpress.com/2012/05/21/generate-unique-id-for-project-using-a-webpart/
    Note that the code might need some adjustments to stick to your business need.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Auto increment number in BO

    Hello All,
    In my CAF code, I need to persist one variable and increment in every time the AS is called. To elaborate further, I have a business object (entity service) which stores the customer records. The customer number has to be auto incremented. The response of this service is the customer number which is auto generated.
    Please let me know how to go about it simplistically. Do we have the concept of static variables, the same of instance of which can be accessed by various service calls?
    Thanking you all in anticipation.
    Regards,
    Keerti

    Hi Keerthi,
    You can use the concept of static.
    If i had understood correctly, you need to have an operation in Application Service(AS) to create a Customer BO and each time  a customer BO is formed it shopuld be given a customer ny=umber in an auto increment fashion.
    For this you can have the following code in your create method of the AS
    try {
                   StatObj ob = this.getstatObjService().create();
                   i++;
                   ob.setCustNumber(i);
                   this.getstatObjService().update(ob);
              } catch (CAFCreateException e) {
              } catch (CAFUpdateException cue) {
              } catch (CAFPessimisticLockException cple) {
              } catch (CAFOptimisticLockException cole) {
    StatObj is my BO and CustNumber is an int in the BO.
    Hope it solves your problem.
    Hi keerthi,
    Is the problem solved.
    Regards,
    Srinivasan Subbiah
    Edited by: Srinivasan Subbiah on Apr 28, 2008 8:55 AM

  • Auto increment number field

    Hello,
    I would like to have a number field to be auto increment. Ho can I do that in Oracle must I use some code for it or can I make the field auto increment by itself.
    Thanks

    user3311314 wrote:
    Hello,
    I would like to have a number field to be auto increment. Ho can I do that in Oracle must I use some code for it or can I make the field auto increment by itself.
    ThanksIt's a long standing gripe of mine. You must use code, and the appropriate solution is a sequence and a trigger, eg
    SASH_CLIENT @ DB10G >create table t(
      2      id number not null primary key
      3  ,   c1 char(100));
    Table created.
    SASH_CLIENT @ DB10G >
    SASH_CLIENT @ DB10G >create sequence seq_t;
    Sequence created
    SASH_CLIENT @ DB10G >
    SASH_CLIENT @ DB10G >create or replace trigger bir_t
      2  before insert on t
      3  for each row
      4  begin
      5  select seq_t.nextval into :new.id from dual;
      6  end;
      7  /
    Trigger created.
    SASH_CLIENT @ DB10G >insert into t(c1) values ('row 1');
    1 row created.
    SASH_CLIENT @ DB10G >commit;
    Commit complete.
    SASH_CLIENT @ DB10G >select * from t;
            ID C1
             1 row 1I'd much prefer
    create table t (
       id number primary key default seq_t.nextval
    ,  c1 char(100));

  • In CO11N, no auto goods receipt & issues for materials having serial number

    Hi,
    I had activated for auto GR and backflushing for materials to happen auto GR and issue during confirmation - CO11N,
    FG material w/o serial number are auto receipted and SFG materials w/o serial number are auto issued during confirmation.
    But auto goods receipt and issues are not happening for materials happening serial number assigned, even these materials cant be seen in goods movement view in CO11N.
    Plz inform if any settings are to be made.
    Thank you in advance.

    Thank you very much for all of your replies,
    So with respect to SAP note 39230, it is not at all possible to have an automatic goods receipt or goods issues for serialized materials within an order confirmation.
    Thank you,
    with regards,
    Basanagouda Gudageri

  • Is there easy way to create auto increment number?

    Hello SharePoint Fam,
    Is there a easy solution to have a auto increment column that just creates new number on each new item.
    Wanting something like:
    14-0001
    14-0002
    14-0003
    14-0004
    14-0005
    Thanks n advance

    If you need a simple auto increment column then you can use "ID" field which is already present in Sharepoint. 
    It will increment in this fashion: 1,2,3,4...........
    or
    you can take field as "Calculated" and use formula (="14-" & [ID]) without parentheses.
    it will increment in this fashion 14-1, 14-2, 14-3............
    or
    try this link...may be you will find something helpful here...
    http://dlairman.wordpress.com/2011/01/10/add-a-unique-auto-incrementing-column-to-a-sharepoint-list/
    ***If my post is answer for your query please mark as answer***
    ***If my answer is helpful please vote ***

Maybe you are looking for

  • Logo image is not placed in the application

    dear sir, What I did I had gif image ias d:\image\raghu.gif I went to shared components where i find images. I browsed and located the the above image and clicked the upload button. I just ensured by doing second time and got message that i already h

  • Question on Materialized View

    Hi All We are executing a materialized view fast refresh and go an error on the child view SQL> execute DBMS_MVIEW.REFRESH('ADRN_MV', nested => TRUE, atomic_refresh=>false); BEGIN DBMS_MVIEW.REFRESH('ADRN_MV', nested => TRUE, atomic_refresh=>false);

  • Forums closed for maintenance/upgrades – April 3 – 5, 2009

    The Adobe Online Forums will be closed from 3pm (Pacific Time) on Friday April 3 through the weekend. We will re-open new forums on April 6. Thank you for your patience during this forum outage.

  • UDI Wizard - Capture/Restore USMT data Page Question

    I'm having some trouble figuring out why on a new pc deployment after a pxe boot on my select target page of the UDI defaults to local and everything else is greyed out.  I would like to be able to choose No Data to Restore or Network.  I can get the

  • Best way to perform the same task wih arrays of different Objects

    Hello all. This isn't an XPath question, it's a much lower-level Java Object question, but it involves XPath. I hope that doesn't distract from the question, or confuse anything. I have 4-5 different types of Objects (call them A, B, C, etc.) that ea