Create/update consecutively-numbered markers?

I have a 200+-page CS5 document in which I need to place several hundred consecutively-numbered markers. There may be anywhere from 0 to 12 markers on a page, and they must be numbered left-to right, top to bottom from the beginning to the end of the document. I will occasionally have to insert or delete markers, requiring subsequent markers to be renumbered.
Does this require a script, or could I do something with footnoting? Or outlining? Wouldn't I have to link the text boxes to make either of those work?
I have done this for smaller documents where I had to manually number/renumber every marker, but in a document this size, that would take hours.
I am comfortable with programming, and have a very slight familiarity with JavaScript, but not a clue where to start for something like this. Any pointers would be greatly appreciated.

I'm not sure what you mean by "markers". If you mean you need to number
certain paragraphs, take a look at my "Line Numbers" script on
www.freelancebookdesign.com (under the scripting tab).
It has several options which makes it fairly flexible -- including only
numbering certain paragraph styles, consecutive numbering throughout the
document, etc.
Ariel

Similar Messages

  • How to get consecutive numbering at the end of paragraphs?

    In a big text some paragraphs, already styled, need a consecutive numbering.
    At the beginning of the paragraph the numbering will create a mess.
    Tried with fake footnotes: Impossible. The text has footnotes and converting the faked ones to text is not available.
    Tried a nice script written by Jong to add/subtract a number on numbered items, but it is restricted to index situations.
    O R I G I N A L                                   R E Q U I R E D
    a. Many years ago.                    a. Many years ago. [1]
    Lucy Smith                              Lucy Smith
    b. Margaret run away.               b. Margaret run away. [2]

    Hi, Camilo:
    First of all,  I was not thinking clearly when I blamed ID for a cross-reference bug. It was my error. Cross-references within a document need to be updated by the author, using the Update cross-references button at the bottom of the Hyperlinks & Cross-References panel, when they're moved or their source content changes. I was thinking about the known issues with cross-references that go between ID document files, which update automatically - performance slows, and sometimes they cause crashes.
    Here's the replacement reply for my previous post #1:
    camilo umaña wrote:
    In a big text some paragraphs, already styled, need a consecutive numbering.
    At the beginning of the paragraph the numbering will create a mess.
    Tried with fake footnotes: Impossible. The text has footnotes and converting the faked ones to text is not available.
    Tried a nice script written by Jong to add/subtract a number on numbered items, but it is restricted to index situations.
    O R I G I N A L                                   R E Q U I R E D
    a. Many years ago.                    a. Many years ago. [1]
    Lucy Smith                              Lucy Smith
    b. Margaret run away.               b. Margaret run away. [2]
    It's not clear if the right-hand numbers are supposed to replace the left-hand numbers while keeping the same sequence, or if you want to retain the left-hand numbers. You can use cross-references to create right-hand numbers from the paragraphs auto-numbers.
    Insert a cross-reference to the paragraph at the end of the text, with a format that captures its autonumber, and adds any ornamentation, like the square brackets in your example.
    If the rightmost number must be positioned at the right margin of the numbered paragraph, no matter how long or short it is, or if it wraps around to new lines, add a right-aligned tab stop to the paragraph style, positioned at the location where you want the number to appear, and insert a tab character in the paragraph before the cross-reference.
    If the left hand numbers are supposed to go away, you can't change the paragraph style to a non-autonumbered style, because you need the numbers that the cross-references capture. So, you need to create a character style that's very small and uses Paper for the text color, to hide the autonumbers. If the smallest point size (IIRC, it's 2 points) leaves too much space at the left of the autonumber, you might be able to reduce it further by using a small value in the Horizontal Scale property of the Advanced Character Formats in the Character Style dialog box. Your example seems to show that the numbered paragraphs are indented, so the space occupied by the hidden autonumbers may not be a problem.
    If the paragraphs are rearranged in sequence, you'll need to use the Update Cross-References button at the bottom of the Hyperlinks & Cross-References panel to update the affected cross-references.
    I'm still not clear about numbers at the end of the paragraphs in square brackets. Are they supposed to be the same value as the auto-number at the beginning of the paragraph, except that they use a numeric display format instead of an alphabetic format?
    I don't know of any code that can work with a find/replace action that can capture a paragraph's autonumber and display it at a specific location. As you've seen, cross-references need to be inserted manually. You might post a query in the InDesign scripting forum to see if someone has figured this out. If there's no complete solution, you might want to ask about a script that searches for the ends of paragraphs of the autonumbered paragraph style and opens the Insert Cross-Reference dialog box.
    Using Quick Apply to execute the Insert Cross-References command, which opens the New Cross-References dialog box, might save some energy for doing the many manual cross-references insertions. Search Google for terms like "InDesign quick apply" without quotes. You can open Quick Apply with a keystroke shortcut - Cmd+Return on Mac. You can type abbreviated commands. I use "rt cr" without quotes for (Inse)rt cr(oss-reference). Opening Quick Apply repeats the last command that was entered.
    Also, if you haven't tried a Google search for phrases like "InDesign numbered list at right end of paragraph," without quotes, give it a try. There are lots of links, including one to this forum article. Perhaps there's a golden nugget among them.
    If you think it's important for ID to be able to place autonumbers at the ends of paragraphs, please post a formal feature request here: Wishform Eventually, some user originated feature requests are incorporated in future ID releases.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Consecutive Numbering and Current Date

    I am trying to create an invoice (that I will save as a template) and I want the invoice number to change, each time I open the invoice template, to the next consecutive number. I also want the date to stay current each time I open the document. Can anyone help? Thanks in advance.

    MATOS-3802 wrote:
    Thanks for the reply. I am neither familiar with computer lingo nor am I very computer savvy, so a lot of that is really confusing to me. Is there a plain English "numbers for dummies" way of going about it? Thanks again.
    Hi MATOS,
    Fortunately you don't need to understand most of it in order to use it.
    As a user, you need only understand:
    Open the Script Editor.
    Copy Yvan's script from his post, then Paste it into the Script editor.
    Then read this part (assuming your English is stronger than your French). The numbers labeling the sections are used in my notes below:
    Section 1A:
    +++++++
    Save this script as Script : invoiceWithDateAndnumber.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Note 1
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Section 1B
    menu Scripts > Numbers > invoiceWithDateAndnumber
    will create a new document from the defined user template
    and insert a new number and the current date as a fixed value.
    Section 2
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    Section 3
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2010/06/05
    Section 4
    --=====
    property theApp : "Numbers"
    Adapter ces six “properties” à vos besoins
    Adjust these six properties to fit your needs
    property myTemplate : "my_invoice.nmbtemplate"
    property fichierNum : "the_number.txt"
    property mySheet : "1"
    property myTable : "1"
    property cell4number : "A1"
    property cell4date : "A2"
    --=====
    Section 4 is the beginning of the actual script. You will need to edit the properties list to fit your own situation.
    The first property "theApp" names the application (Numbers) that the script affects. Do not change this.
    Below the line "Adjust these...":
    myTemplate:
    Change "my_invoice.nmbtemplate" to match the name of your Invoice template, and add the ".nmbtemplate" extension to the name.
    fichierNum:
    This is the name of the file that keeps the most recent invoice number. The script will create the file the first time the script is run, and will update it each tome after that. No change is needed in this line.
    mySheet:
    myTable:
    These are currently set to use the first (ie. top of the list) Table on the first sheet of your invoice template. If the template contains only one table (and only one sheet) no change is needed. If your template contains more than one table, you may need adjust the number(s).
    cell4number:
    This is the cell in which the Invoice Number will be placed. Change "A1" to the actual location of the Invoice Number on your template. Remember to enclose the location in double quotes.
    cell4date:
    This is the cell in which the current date will be placed. Change "A2" to the actual location of the Invoice Date on your template. Remember to enclose the location in double quotes.
    In Section 1, Note 1 tells you you will need a specific set of folders in which to place the script.
    In the Finder, open a new window and click on yourAccount (the house icon with your username below it), then on Library, then on Scripts, then on Applications, then on Numbers.
    Each time you click, it opens the folder and shows (in the next column, if your Finder window is in Column view) the items in that folder. If any of the names on this path are missing, you will need to go to the File menu, choose New Folder, and give the new folder the name shown above. (If you have not yet added any scripts, you will likely need to create at least the Applications and Numbers folders.)
    Section 1A tells what to do with the script after you have edited it: Save it in the Numbers folder you created above. You can save it to the Desktop, then move it to the correct folder, or you could save it directly to the correct folder. Yvan's name is chosen to tell exactly what the script does.
    Section 1B tells how to call the script (ie. how to get it to do what it's written to do):
    go to the Scripts Menu, choose Numbers, then choose "invoiceWithDateAndnumber",
    then describes what the script does.
    The Scripts menu is likely not yet in your Menu bar, so Section 2 tells how to get it there. If you, like me, have a crowded Menu bar already, you may also have to remove something else to make room for the Scripts menu.
    Section 3 tells who wrote the script (Yvan) and when he did so.
    Once you've completed those steps (editing properties and saving the script to the correct location), creating a new dated and numbered invoice is a simple matter of choosing this script in the Scripts menu.
    Regards,
    Barry

  • Problem with updating serial numbers in sales order!

    Hi,
    I am trying to update serial numbers for a sales order in SAP. I tried using both SERNR_ADD_TO_AU and SERNR_ADD_TO_DOCUMENT. However, in both cases the FM returned the number of serial numbers created but these did not reflect in the sales order. The code for both is as below:
    WA_SERXX-SDAUFNR = '0000001733'.
    WA_SERXX-POSNR = '000010'.
    WA_SERXX-KUNDE = '0000009000'.
    WA_SERXX-VBTYP = 'C'.
    WA_SERXX-SD_AUART = 'OR'.
    WA_SERXX-SD_POSTYP = 'TAN'.
    WA_SERNR-SERNR = '000000001234ABCDAR'.
    APPEND WA_SERNR TO IT_SERNR.
    WA_SERNR-SERNR = '000000001234ABCDAQ'.
    APPEND WA_SERNR TO IT_SERNR.
    CALL FUNCTION 'SERNR_ADD_TO_DOCUMENT'
      EXPORTING
        operation                       = 'SDAU'
        objkopf                         = 'SER02'
        serxx                           = wa_serxx
        material                        = 'P1-TEST'
       PROFILE                         = 'Z001'
        quantity                        = '2'
      M_CHARGE                        =
       J_VORGANG                       = 'PMS2'
      KMATNR                          =
      CUOBJ                           =
      R_MATERIAL                      =
      BSTCH                           =
      BSTUP                           =
      SNBWG                           =
      EMATN                           =
      KDAUF                           =
      KDPOS                           =
      AUTOMATIC                       = ' '
      NO_ENQUEUE                      = ' '
      MORE_ALLOWED                    = ' '
      BUDAT                           =
    IMPORTING
       ANZSN                           = anzsn
       NEW_OBKNR                       = new_obknr
       SERIAL_COMMIT                   = serial_commit
       STATUS_NOT_ALLOWED              = status_not_allowed
      tables
        sernr                           = IT_SERNR
        r_sernr                         = it_ser1
      XVBPA                           =
    CHANGING
      T_SMESG                         =
    EXCEPTIONS
      KONFIGURATIONS_ERROR            = 1
      GENERAL_SERIAL_ERROR            = 2
      NO_PROFILE_OPERATION            = 3
      DIFFERENCE_IN_HEADER_DATA       = 4
      OTHERS                          = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    commit work and wait.
    CALL FUNCTION 'SERNR_ADD_TO_AU'
      EXPORTING
        sernr                       = '000000001234ABCDAR'
        profile                     = 'Z001'
        material                    = 'P1-TEST'
      M_CHARGE                    =
        quantity                    = '1'
      J_VORGANG                   = 'PMS2'
      KMATNR                      =
      CUOBJ                       =
        document                    = '0000001733'
        item                        = '000010'
        debitor                     = '0000009000'
        vbtyp                       = 'C'
        sd_auart                    = 'OR'
        sd_postyp                   = 'TAN'
    IMPORTING
       ANZSN                       = ANZSN
      ZEILEN_ID                   =
       SERIAL_COMMIT               = SERIAL_COMMIT
    EXCEPTIONS
      KONFIGURATIONS_ERROR        = 1
      SERIALNUMBER_ERRORS         = 2
      SERIALNUMBER_WARNINGS       = 3
      NO_PROFILE_OPERATION        = 4
      OTHERS                      = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    COMMIT WORK AND WAIT.

    hi,
    In order to maintain customer specific serial numbers you can do the following steps:
    1. Maintain the serial numbers provided by your client in tcode IQ01. this will create the customer serial numbers in the system.
    2. In the material master under Sales View maintain the serial number profile as 0002. this is sap standard.
    3. Once the above has been maintained you can assign serial numbers at the time of delivery and NOT in sales order.
    I hope this helps.
    Regards,
    Vishesh

  • Problem with BAPI_OUTB_DELIVERY_CHANGE to update serial numbers

    hi All,
    I am using BAPI_OUTB_DELIVERY_CHANGE to update serial numbers. i am executing this directly in se37 giving delivery number alone in import parameters header_data, header_control and delivery.
    and giving delivery numer, item no and random serial no in tables ITEM_SERIAL_NO. when i execute  it is not throwing any errors. how ever the delivery is not updated with the serial no's.Return parameters is also nor showing any values.
    Any pointers to solve this would be appreciated.
    Regards,
    Sreekanth.

    Hi,
    You need to use BAPI_TRANSACTION_COMMIT just after BAPI_OUTB_DELIVERY_CHANGE .
    Mark WAIT = 'X' in the IMPORT parameter of BAPI_TRANSACTION_COMMIT.
    For testing if it is working or not:
    Goto SE37 --> click on FUNCTION MODULE --> TEST -->TEST SEQUENCES
    First give BAPI_OUTB_DELIVERY_CHANGE and then BAPI_TRANSACTION_COMMIT.
    Click on EXECUTE. Execute BAPI_OUTB_DELIVERY_CHANGE then 'BACK' and then BAPI_TRANSACTION_COMMIT with proper data.
    Goto the transaction from where you can check entry has been created or not.
    Regards

  • Update Serial Numbers and Qty with bapi_outb_delivery_change

    HI All
    I want to update serial numbers and quantity(delivery qty) for a delivery, this is mostly in case of short ship and over ship, I am using the BAPI for this updation, but I am getting errors to it.
    I am passing the following data in the BAPI:
    HEADER_DATA -
    > Delivery Number
    DELIVERY -
    > Delivery Number
    ITEM_DATA -
    > DELIV_NUMB(Delivery Number), DELIV_ITEM(Item), MATERIAL(material), DLV_QTY(Qty what i need to update in VL02n), FACT_UNIT_NOM(as 1), FACT_UNIT_DENOM (as 1), SALES_UNIT(VRKME), BASE_UOM(MEINS)
    ITEM_CONTROL -
    > DELIV_NUMB(delivery Number), DELIV_ITEM(Item), CHG_DELQTY(as 'X') .
    But I get this error message.
    "serial numbers are already maintained. Quantity cannot be changed"
    Please suggest how can I change both?
    Regards
    Swar

    Hi Swar
    I can maybe give you insight on why you are receiving the error message in hopes in can help you go to the right direction.  In the sales order for technical objects if you are maintaining lets say a qty of 2 each serial numbers.  When you create the delivery the system passes both serial numbers to the delivery. In cases of short ship (wanting to only ship one each) go to the serial number in the file menu under extras in the delviery and  before changing qty to one each; delete the serial number you are not shipping then change your qty this works.
    Edited by: Kim Blair on Sep 29, 2011 5:19 PM

  • Consecutive Numbering in New Documetns (Action)

    Hi all,
    About two years ago I posted this query regarding a possible bug in Photoshop 4.  As much as christoph pfaffenbich tried extremely hard to help me, he was unable to provide a solution.  UNFORTUNATELY, the problem still exists in Photoshop CS 5.1.  Here is the strange problem:
    Way back in CS2 I created an action which basically involves a) copying, b) creating a new document, c) pasting, and d) color correcting. In previous versions of PS, whenever I did this action and it got to part b) (creating a new document), the new doc would have a unique file name from the previous (consecutive numbering). However in CS4 (and now in CS5.1), every new document is given the same name (i.e. "Untitled-1") which wreaks havoc. Does anybody know how to fix this so that I can get my unique naming of new documents back?
    NOTE 1: If I manually create new documents, the unique and consecutive numbering works fine. It is only when the new document is created from within an action that it does not work.
    NOTE 2: Inserting a menu item into the action FILE -> NEW, also does not work.
    Thanks,
    Daniel

    The screenshot of the action steps below may or may
    not work for you, but anyway here's how it works:
    Once you've copied the selection, made a new document 1 px x 1 px and
    pasted, the reveal all step expands the document to the copied selection's pixel dimensions.
    Whether it works for your documents without more intervention depends on if your dealing
    with different bit depths, color modes and color profiles that you would have entered into
    the new document step in the action.
    A scripting solution would probably be more ideal and hopefully someone wiil know if it's
    possible and you could also post in the scripting forum:
    http://forums.adobe.com/community/photoshop/photoshop_scripting
    MTSTUNER

  • HELP: Multiple Consecutive Numbering per Page - Multiple Pages

    I am working with an 8.5" x 11" InDesign document that has eight 4.25" x 2.75" "coupons" per page - see sample below.
    Each coupon will need to be automatically and consecutively numbered 00001-00008 on page 1, 00009-00016 on page 2, etc. prior to printing and cutting into eight individual coupons. I know I can do this manually, but I would rather not since there may end up being dozens of pages.
    My questions...
    - Is this possible?
    - If so, how can this be done using InDesign?
    I appreciate any help!

    There may be a better way to do this but this will work:
    1. Set up your doc as a single page (unselect facing pages)
    2. Go to the master page and place your coupons.
    3. Create 2 columns and adjust your margins and gutter so the columns are the width of the text containing your numbers and in the exact postion. - These columns and margins will be un-usual looking.
    4. Using 6 sets of sample numbers with a return at the end on each one, set 3 in one column and 3 with the 2 frames threaded.
    5. Create a para style and adjust the space after each paragraph so the text in each column lands on the right spot on each coupon
    You doc should be set up. Delete text and go to first page
    6. In Excel or similar create a column (not row) with numbers you need and copy
    7. Place text in first column on P1, select all the text (Ctr/Cmd A) and apply paragraph style you created - the 3 numbers should be in correct position
    8. Click on red + sign, and, holding down Shift, thread remaining text into 2nd column - the text will flow into that column and create all the extra pages for the rest of yur numbers .
    Brian

  • Counting consecutive numbers into one row

    Hello everyone,
    I have recently discovered that we can use Max ( Decode ()) function of Oracle to pivot the results of a table. I have executed this just fine. However, pivoting a table is just one part of the solution that I need. The pivoting function results to something like this:
    01,02,03,05,06,07,08,09,10,11,12,13,14,16,17,20,21,23,25What I actually need is something like this:
    1-17, 20-21,23,25I really don't know how to start solving this but so far I have the below query:
    SELECT DISTINCT
         MAX(DECODE(wldw.wafernumber,'01', '01'))
          || MAX(DECODE(wldw.wafernumber,'02', ',02'))
          || MAX(DECODE(wldw.wafernumber,'03', ',03'))
          || MAX(DECODE(wldw.wafernumber,'04', ',04'))
          || MAX(DECODE(wldw.wafernumber,'05', ',05'))
          || MAX(DECODE(wldw.wafernumber,'06', ',06'))
          || MAX(DECODE(wldw.wafernumber,'07', ',07'))
          || MAX(DECODE(wldw.wafernumber,'08', ',08'))
          || MAX(DECODE(wldw.wafernumber,'09', ',09'))
          || MAX(DECODE(wldw.wafernumber,'10', ',10'))
          || MAX(DECODE(wldw.wafernumber,'11', ',11'))
          || MAX(DECODE(wldw.wafernumber,'12', ',12'))
          || MAX(DECODE(wldw.wafernumber,'13', ',13'))
          || MAX(DECODE(wldw.wafernumber,'14', ',14'))
          || MAX(DECODE(wldw.wafernumber,'15', ',15'))
          || MAX(DECODE(wldw.wafernumber,'16', ',16'))
          || MAX(DECODE(wldw.wafernumber,'17', ',17'))
          || MAX(DECODE(wldw.wafernumber,'18', ',18'))
          || MAX(DECODE(wldw.wafernumber,'19', ',19'))
          || MAX(DECODE(wldw.wafernumber,'20', ',20'))
          || MAX(DECODE(wldw.wafernumber,'21', ',21'))
          || MAX(DECODE(wldw.wafernumber,'22', ',22'))
          || MAX(DECODE(wldw.wafernumber,'23', ',23'))
          || MAX(DECODE(wldw.wafernumber,'24', ',24'))
          || MAX(DECODE(wldw.wafernumber,'25', ',25'))  AS WAFERS     
    FROM a_wiplothistory wl
    JOIN Container C ON (wl.containerid = c.containerid OR wl.containerid= c.splitfromid )
    JOIN a_wiplotdetailshistory wld ON wl.wiplothistoryid = wld.wiplothistoryid
    JOIN a_wiplotdetailswafershistory wldw ON wld.wiplotdetailshistoryid = wldw.wiplotdetailshistoryid
    WHERE c.containername = :lotThanks for helping guys.
    Edited by: 1001275 on May 15, 2013 6:28 PM

    Hi,
    1001275 wrote:
    Hello everyone,
    I have recently discovered that we can use Max ( Decode ()) function of Oracle to pivot the results of a table. I have executed this just fine. However, pivoting a table is just one part of the solution that I need...You said it!
    First, you need some way of grouping consecutive rows together (1-17 in one group, 20-21 in anoter, 23 as a group all by itself, and so on).
    Then you need GROUP BY to get infmation about each goup, such as the smallest and largest number in the group.
    Finally, you need to combine all that information into one big string. This is actually an example of String Aggregation , rather than pivoting. The two are closely related. Pivot means you're taking 1 column on multiple rows, and putting them into multiple columns on one row. String Aggregation is taking 1 column on multple row, and concatenating all their contents into one big string column.
    Here's one way to do it:
    WITH     got_group_id     AS
         SELECT     wafernumber
         ,     ROW_NUMBER () OVER (ORDER BY wafernumber)
                      - wafernumber          AS group_id
         FROM     wldw
    ,     got_group_info     AS
         SELECT       TO_CHAR (MIN (wafernumber))
                || CASE
                         WHEN  COUNT (*) > 1
                    THEN  '-' || TO_CHAR (MAX (wafernumber))
                     END             AS group_label
         ,       ROW_NUMBER () OVER (ORDER BY  MIN (wafernumber))
                             AS group_num
         FROM      got_group_id
         GROUP BY  group_id
    SELECT  SUBSTR ( SYS_CONNECT_BY_PATH (group_label, ',')
                , 2
                )     AS txt
    FROM    got_group_info
    WHERE     CONNECT_BY_ISLEAF     = 1
    START WITH     group_num      = 1
    CONNECT BY     group_num     = PRIOR group_num + 1
         AND     prior sys_guid () is not null
    ;I find the first part of this query to be the trickiest. I used the Fixd Difference technique to assign a common group_id to consecutive rows. See {message:id=9953384} and/or {message:id=9957164} foran explantaion of the Fixed Difference technique.
    Next, in sub-query got_group_info, I used aggregate functions to produce a group_label, such as '1-17', and to assign consecutive numbers to each group. This is also a little tricy, because it involves nesting an aggregate function (MIN in this case) inside an analytc function (ROW_NUMBER).
    Finally, I used SYS_CONNECT_BY_PATH to do the string aggregation.
    Output:
    TXT
    1-17,20-21,23,25Whenever you have a question, please post CREATE TABLE and INSERT statements for some sample data. For example:
    CREATE TABLE     wldw
    (       wafernumber     NUMBER (3)     PRIMARY KEY
    INSERT INTO wldw (wafernumber) VALUES ( 1);
    INSERT INTO wldw (wafernumber) VALUES ( 2);
    INSERT INTO wldw (wafernumber) VALUES ( 3);
    INSERT INTO wldw (wafernumber) VALUES ( 4);
    INSERT INTO wldw (wafernumber) VALUES ( 5);
    INSERT INTO wldw (wafernumber) VALUES ( 6);
    INSERT INTO wldw (wafernumber) VALUES ( 7);
    INSERT INTO wldw (wafernumber) VALUES ( 8);
    INSERT INTO wldw (wafernumber) VALUES ( 9);
    INSERT INTO wldw (wafernumber) VALUES (10);
    INSERT INTO wldw (wafernumber) VALUES (11);
    INSERT INTO wldw (wafernumber) VALUES (12);
    INSERT INTO wldw (wafernumber) VALUES (13);
    INSERT INTO wldw (wafernumber) VALUES (14);
    INSERT INTO wldw (wafernumber) VALUES (15);
    INSERT INTO wldw (wafernumber) VALUES (16);
    INSERT INTO wldw (wafernumber) VALUES (17);
    INSERT INTO wldw (wafernumber) VALUES (20);
    INSERT INTO wldw (wafernumber) VALUES (21);
    INSERT INTO wldw (wafernumber) VALUES (23);
    INSERT INTO wldw (wafernumber) VALUES (25);I realize that your table (and your query) are a lot more complicated, but it looks like you can show the part you don't already understand using just this one table with this one column.
    Also, whenever you have a question, say which version oif Oracle you'e using (e.g., 11.2.0.2.0).
    The query above should work in Oracle 10.1 and up. I got the wong results in the main query in Oracle 10.2, however. (Oracle 10.2 has a lot of bugs related to CONNECT BY.) It worked fine in version 11.1.
    If you're using Oracle 11.2, you'll want to use LISTAGG, not SYS_CONNECT_BY_PATH, to do the string aggregation.
    For more about string aggregation in various versions of Oracle, see this Oracle Base page.

  • After an update of Numbers all my files dissapeared.

    I recently purchased Numbers for my Ipad 2 and created numerous spreadsheets which have now completely dissapeared.  I believe there was an update on Numbers that may have caused this to happen.  Has anyone had this happen before, can I retrieve the files somehow and should I never use this spreadsheet program again.

    Hi Maws,
    You have posted in the Numbers forum for OS X running on a Mac. You say you are using an iPad. You will get a quicker and better answer in the iWork for iOS forum:
    https://discussions.apple.com/community/app_store/iwork_for_ios?view=discussions
    Regards,
    Ian.

  • Consecutive numbers

    I have a requirement where I have to store consecutive numbers (permanently not virtual) for customers. I can 't use a sequence hence there is a possibility of rollback, I can't produce them at application level as concurrence strucked may way.
    any inputs please.
    Thanks,
    Hesh

    Billy Verreynne wrote:
    This seems a little rash to me;It is intend to be as this is a fundamental issue that can turn any RDBMS into a useless door stop.
    But it is still a valid requirement, that was only point I was making. The fact the solution will almost certainly be inelegant, usually serialized and most probably turn the RDBMS into a useless doorstop doesn't alter that.
    There are legal requirements in some countries for certain kinds of businesses to assign consecutive document numbers to each financial document they produce.And this appears on what? The actual document captured usually. Which means that Oracle does not have to generate it and you simply need an entry field as part of the data capture processes to obtain the number.
    My understanding is that it is a mechanism for implementing financial controls, although as I said I've never had to use it.
    In the few cases where it needs to be generated, due to some weird law, there are far better ways to deal with it - like normalising that as a separate entity that describes the document. Simple example. Your FINANCIAL_DOCS table uses a surrogate key, generated from a standard Oracle sequence. There are no enforced serialisation on this table as a result. A separate table UNIQUE_FDOC_NUMBER contains the surrogate key, and the gap free sequence number.
    The latter table is updated by a separate process - this one enforces serialisation as it has no choice.
    When inserting a new financial document, the main table is inserted into - no serialisation. And can be committed. A separate PL/SQL call is then needed to make that document "permanent" and assign a gapfree number to is via the 2nd table. Also, once such a number is assigned, the source row can no longer be deleted as that will cause a missing document and a gap in the document numbering range.
    This separate call can now be used where it is meaningful (e.g. nightly batch job that makes all new documents, permanent ) - and where it has the minimal performance impact.And if the requirement is that the document cannot be saved without a gapless sequence number?
    Even so, I would still argue that the law that requires this, is not fully understood - as even such a law must take cognisance of the fact that documents lapse, are removed, looses their "legal status", are replaced, and so on. And this will result in a list of current legal documents that do have sequential numbering gaps in them.
    This may be the purpose of gapless sequences in Oracle Financials (I don't know); laws don't comply with either good system design principles or RDBMS functionality, it is the system design that must comply with the law. Try arguing with the authorities about whether you owe them money or not if you don't have the documents to back up your case. In my experience, the intersection between legal requirements, accounting standards and systems design is an ugly place to be if you are a systems designer. There is almost always a better solution which requires less work, will run like the wind, be technically elegant and have far fewer support issues. You just never get to build it because it doesn't comply with the law.

  • Consecutive numbers in java?

    I am creating a slot machine class with 3 rotating disks and every disk contains the integers 0 - 9. The user will input 3 numbers of their choosing and the amount they are wagering. I am only to use if statements, i cant use arrays or random number generators or anything like that. I am having difficulty figuring out how i would tell my program to check the numbers the user inputs to make sure they are consecutive numbers in ANY order. Any number meaning it could be 1 2 3, 1 3 2, 2 1 3, 2 3 1, 3 2 1, 3 1 2.
    so far i've got this for my slot machine class:
    public class SlotMachine
    private int DiskOne;
    private int DiskTwo;
    private int DiskThree;
    private int AmountWagered;
    public SlotMachine(int diskOne,int diskTwo,int diskThree,int amountWagered)
    this.DiskOne = diskOne;
    this.DiskTwo = diskTwo;
    this.DiskThree = diskThree;
    this.AmountWagered = amountWagered;
    public int getDiskOne()
    return this.DiskOne;
    public int getDiskTwo()
    return this.DiskTwo;
    public int getDiskThree()
    return this.DiskThree;
    public int getAmountWagered()
    return this.AmountWagered;
    public String amountWon()
    if (DiskOne == DiskTwo && DiskTwo == DiskThree)
    return "All 3 Numbers The Same" + AmountWagered * 100;
    else if(DiskOne == DiskTwo || DiskTwo == DiskThree || DiskOne == DiskThree)
    return "Any 2 Numbers The Same" + AmountWagered * 4;
    else if() // This is where i need some help =/ anyone?
    return "3 Consecutive Numbers In Any Order" + AmountWagered * 20;
    else
    return "You Lose";
    }

    okay here it goes.
    Arithmetic progression talks about sequence of numbers
    Let the master sequnce of numbers be
    1 2 3 4 5 6 7 8 9and occurance of sub sequence of the above sequence is to be detected.
    (For simplicity we assume sequence starts from ONE)
    Arithmetic progression says
    T(n) = a+ (n-1)*d
    where
    a = fist term of the progression
    T(n) means number that occurs at Nth position
    d = common difference between two consecuitive numbers'd' would be ONE for the original sequence, as each consecutive number is ONE greater than the previous one.
    POSITIVE SCENARIO:
    Let the input sequence be
    7 6 8First arrange this in increasing order and the sequence becomes
    6 7 8Now this CAN be arithmetic progression (but we still dont know now!)
    This is how we validate-
    a = 1 (as the sequence starts from 1)
    n = 6 (first number after arranging in ascending order)
    (In other words, I'm saying that 6th position in original sequence should have '6')
    d = 3rd number - 2nd number = 8 - 7 = 1
    T(6) = a + (n-1) * d
         = 1 + (6-1) * 1
         = 1 + 5
         = 6The above math means that 6th element of the original sequence is '6' which is CORRECT. Let us now check the thrid element of the input sequence 6 7 8
    T(8) = a + (n-1) * d
         = 1 + (8-1) * 1
         = 1 + 7
         = 8The above math means that 8th element of the original sequence is '8' which is CORRECT. The two checks have passed.
    This is what we have done till now: for given sequence of *6 7 8*, we verified that 6th place in the original sequence is '6' and 8th place is '8' as depicted by the input sub sequence *6 7 8*. As both match, the sequence *6 7 8* is declared to be sub sequence of the original sequence. In other words, the input jumbled sequence *7 6 8* is sub sequence of the original sequence irrespetive of the order.
    Note that we sort the numbers to ensure even jumbled input can also be validated!
    NEGATIVE SCENARIO:
    We now check if the logic developed till now does identify wrong sequences as WRONG.
    Let the input now be
    5 9 1Arrange in ascending order first, so the sequence would be
    1 5 9
    a = 1 (as the sequence starts from 1)
    n = 1 (first number after arranging in ascending order)
    (In other words, with this assumption, I'm saying that 1st position should have '1' in the sequence)
    d = 3rd number - 2nd number = 9 - 5 = 4
    T(1) = a + (n-1) * d
         = 1 + (1-1) * 4
         = 1 + (1 - 1) * 4
         = 1 + 0
         = 1The above math means that 1st element of the original sequence is '1' which is CORRECT as depicted by the input sub sequence. Let us now check the thrid element of the input sequence 1 5 9
    T(9) = a + (n-1) * d
         = 1 + (9-1) * 4
         = 1 + (8) * 4
         = 1 + 32
         = 33The above math means that 9th position in the original sequence is 33 which is NOT (the 9th position in the original sequence is 9).
    This is what we have done till now: for given sequence of *1 5 9*, we verified that 1st place in the original sequence is '1' and 9th place is '33' as depicted by the input sub sequence *1 5 9*. As the second check fails, the sequence *1 5 9* is declared that it is not a sub sequence of the original sequence. In other words, the input jumbled sequence *5 9 1* is NOT sub sequence of the original sequence irrespetive of the order.
    Now you put this in a Java program_ :)
    Edited by: DynamicBasics on Oct 21, 2010 1:39 AM
    Corrected formatting tags

  • Automatically update a Numbers spreadsheet from other application/documents

    Hi,
    Before I start I am a relative novice in using Numbers, and if it applies in this instance, Applescript and Automator. I run a small local weekly free newspaper (created using InDesign if that is relevant) which is paid for by adverts; I want to create a spreadsheet to track my advertisers and the financials in every respect - renewals, sizes and duration of ads, amount paid and owing, and a whole load of other stuff which includes their contact details. Now I know that I can import the relevant info from Address Book as a snapshot at that moment, but what I want to know is whether it is possible to have the spreadsheet automatically update whenever I change a contact or add a new one to my Address Book? As far as I have been able to ascertain so far, it is not, so if that is the case, is there some sort of workaround, possibly using Automator and another app or even the web, where this can be done? Or is it possible the other way round, where I keep the contact details updated in Numbers and this gets transferred to Address Book? Or any other bright ideas? I don't really want to have to type the same information, or even copy/paste it for every new customer, as well as inputting it into my phone (which I don't think is able to sync with my Mac - it is a Samsung).
    Please keep any scripting/technical answers as simple as possible, as I don't have much experience with it. Thanks in anticipation...

    I have been doing a lot more reading on the forum and I now think there might be a partial solution to what I would like to do, possibly even a complete one, but I am not sure if what I have in mind is possible.
    Using Automator/Applescript, could it be done that on a weekly basis Address Book gets opened automatically, the relevant group of contacts (which is already set up) is selected and copied/exported, and then Numbers and the relevant sheet opened automatically and the updated contact list pasted/imported? In addition is it possible to set up a script that can check if a group in AB has been changed, and if it has for this to be the trigger for the earlier script/workflow I have described rather than a date (every week in this case)? Again this could work the other way around, with the Numbers sheet being the one changed by me, and then a script to update AB. Any help would be massively appreciated.
    I have now managed to set up iSync to work with my phone so that can be updated once AB has been, but I am still working on getting the information from the phone to AB to be correct for Numbers! This is because of how my phone contact details is stored which is different seemingly from AB and I am not sure if I can sort that out. There is a First Name and Last Name field but no Company name in my phone, and I need to have all of those for it to work.

  • Google Analytics OPT-OUT Browser Add-on 0.9.6 doesn't retain OPT-OUT settings...never did really. Also JAVA now refuses to create updates for WinXP/FireFox.

    I use PaleMoon now trying to get rid of advertising sharks. I have WINXP still - need assistive-technology computer for pain so taking time on getting new computer.
    I have been severely sabotaged by advertising conglomerates selling my private information. They have no right -yet they do whatever they want. Anyhow...I've tried to OPT-OUT of EVERYTHING POSSIBLE. I've tried 5 places found. Google, NAI, DAA, & FIREFOX HELP said go to about:config was instructed to turn "from false to true" the "privacy.tracking.protection.enabled" .But I couldn't keep this setting because this also has to be set to false to use any saved log-on's to my accounts., and add-on AD BLOCK PLUS 2.6.7 when I was on Firefox & had some ticks and now it is disabled because it won't work with PaleMoon 25.2.1
    This case is about GOOGLE OPT-OUT. Starting here: http://www.google.com/settings/ads?hl=en&sig=ACi0TCgWymel0CNWxdcnEWPzWNs9wDd7cVQHxHsmtz4w30CAyHk7MqyzzZdGh3m6FpDaJsKmunTLEvJZY5LAm3h6gIdzE30L-Q
    There are 2 columns. The left one "ADS ON GOOGLE" NEVER RETAINS AFTER LOG-OFF. The right column "Google ads across the web
    " seems to retain sometimes - if I remember right it falls off after a period of time as opposed to after just LOGGING-OFF. Below the columns there are options, but I don't have a GOOGLE ACCOUNT.
    Also down there is this link: https://support.google.com/adsense/troubleshooter/1631343?hl=en ...you see the box with this: Advertising industry program participation
    Google is a participating member of groups that have developed industry privacy standards like the Ad-Choices icon for online advertising.
    Group Location
    Network Advertising Initiative United States
    Digital Advertising Alliance (DAA) United States
    European Digital Advertising Alliance Europe
    Digital Advertising Alliance of Canada Canada
    ....I clicked OPTED OUT FOR NAI on their link http://www.networkadvertising.org/
    ...I clicked OPTED OUT FOR DAA on their link http://www.aboutads.info/
    ...I clicked PROTECT MY CHOICES and downloaded the app.
    These 1st 2 links used to have the same trouble and didn't retain ANYTHING and wouldn't re OPT-OUT ANY UNTIL THEY WERE SATIATED - saying I didn't have 3rd party cookies allowed when I did - this took hours.
    I sent numerous trouble reports to them that they ignored - then I think I sent one to Firefox and it is much better but still not completely right. Today DAA retains 106 out of 122 and if I repeatedly RE-OPT-OUT successively I can get it to 121 out of 122 - never completely. (currently the one not taking is Accuen Inc. but it changes periodically - makes me think they set one up to take my info and then share it with all of them - lol )
    Same for NAI currently I started with 94 out of 96 - next re-OPTED-OUT got it to 95 out of 96 and no further and same co. Accuen Inc (accuenmedia.com ) wouldn't update.
    NOTE: I was copy/pasting the list of NON-OPT-OUT'S to them and my own document file to try and find trends/problems...now NAI programmers protected the list from being able to be COPIED AND PASTED!!! That's the opposite of being open and interested in making this work, right? Why would they want to allow us to OPT-OUT of their criminal espionage behavior...RIGHT? (lol) FYI: I recorded that the big one that was always retained before this one was...MEDIA MATH INC.
    MANY Opt-outs would drop off while on-line and ALL would drop-off once logged-off. Now it's retaining most once logged off - but it hasn't been long enough to tell if they'll fall back into their bad habits as they've done before...
    This has been going on forever for me - I've been reporting this malfunction since 2013.
    Of course I downloaded PROTECT MY CHOICES FOR FIREFOX via NAI AND DAA'S links ...http://www.aboutads.info/PMC#protect-your-choices-for-firefox ............they both go to the same place???.....PROTECT MY CHOICES http://www.aboutads.info/plugin/install/firefox....that seems odd...it's as if they are the same entity then. ABOUTADS is DAA'S WEBSITE. NAI'S IS NETWORKADVERTISING.ORG so why would NAI use DAA'S PROTECT MY CHOICES app?
    Lastely, I also requested that the COOKIES NAMES BE UNIFORMLY IDENTIFIABLE. All the OPT-OUT COOKIES that are to be forevermore retained on my computer and that I am to trust the EVERY FUNCTION OF - well they all have different COOKIE NAMES!! Most of the names you can not tell that they are OPT-OUT COOKIES!! - SO NOWWW They have created another problem.
    We can no longer just "DELETE ALL COOKIES".
    PLUS, we can no longer go through our cookies and delete individual ones that snuck through.
    Every one of the OPT-OUT COOKIES SHOULD SAY "OPT-OUT" IWITHIN THEIR NAME OF THEIR COOKIE - PERIOD. RIGHT? (LOL) For real. Why was this mess was allowed?
    REALLY IN MY OPINION THESE COMPANIES SHOULD BE BLOCKED AT THE LOCAL PHONE COMPANIES LEVEL - IN OUR SERVERS. We should not have to deal with them. Same thing with viruses, malware and such beasts. But I digress.
    In summary:
    1.)Google Analytics OPT-OUT Browser Add-on 0.9.6 doesn't retain OPT-OUT settings
    2.) JAVA refuses to create updates for WinXP/FireFox/PaleMoon.
    3.) DAA & NAI still don't retain ALL OPT-OUT settings and never completely OPT-OUT all companies.
    4.) OPT-OUT cookies should be uniformly names with the words OPT-OUT in their titles.
    5.) Ad Block Plus 25.6.7 doesn't work for Pale Moon and there is no alternative - (didn't work great in FireFox)
    Right now I'm mainly interested in #1)retaining my GOOGLE OPT-OUTS while on line AND while logged off since it is attacking my computer and steeling all the speed until it freezes my keyboard.
    Currently I am trying to remember to run through 3. OPT-OUTS every time I log on.
    Thanks so much!

    hello, palemoon's support forums are here: http://forum.palemoon.org/

  • Where is the option "create update rule" in BW 7.3?

    Hi, all.
    We have updated our BI sandbox to BW 7.3. After installing cube 0PT_C01 from the BCT, I realized that infosource 0HR_PT_3 is not linked to the cube. So I was trying to manually create the update rule. But that "create update rule" option is nowhere to be found. Can you please advise?
    Thanks,
    Jonathan.

    Hi jonathan,
    you are implementing time and labour 0PT_C01.
    for that we have only 2 standard data sources
    1 is 0HR_PT_1
    2 is 0HR_PT_2
    in addition to the above data sources we can also use 0HR_PT_3 data source for the info provider 0PT_C01.
    PL check the below link
    http://help.sap.com/saphelp_nw04/helpdata/en/18/3a8337fb02735ce10000009b38f8cf/content.htm
    regards
    venuscm

Maybe you are looking for