Automatically generated Unique number

Hello

I would like to have some sort of function on my document that creates a unique number for each submitted form.

The form is both submitted by .xml and .pdf.

is it possible to do something like that?

See you soon,.

Wes

Hi Wes,

I don't know how good you are with script/Javascript, but also I have such a function, you may have different ideas 2 based on what you want to do:

1. you can have a string generator that could be based on information inserted in certain areas of the user.

for example: you can use the substring function to get some partial information from different fields of the form and concatenate together to create a unique "ID" of the form.

Unfortunately, this could have IDS that might be the same if a form is filled with more than once by a user, and or (rare) some information could be almost equal to the others...

2. There is the option which can use the date and time of the form when it is submitted. Using this method is almost perfect never have the same unique ID 2. You can also use a random string generator to concatenate the time with her.

The best option you have is to have all of the answers above. Unique ID would start with partial information in the form + date/time of the form provided or vice versa.

If you want more of these 3 options above, you can also add a random string generator in the process. Here is a help for the random string generator, you can modify it as you wish...

random password generator?

Mag

Tags: Adobe LiveCycle

Similar Questions

  • Automatically generate unique key

    I am currently working on a registration form. A user must enter their address electronic and other data. At the same time, when the form loads, I want a unique key must be generated. A key that looks like example as follows: afg1csd6df4. Or regardless of numbers with letters. This key would be added as the value of a hidden field to a form. This is possible using PHP?

    Try this, see if it helps.

    http://cookbooks.Adobe.com/post_Registration_system_that_requires_the_user_to_vali-16646.h tml

    Gary

  • How to get PDF automatically generate new invoice number whenever it is open

    I need a unique invoice number to display in the corner of a form.  I was thinking the best way (perhaps the easiest?) generate a number...  I would like the shape of the aperture to create this number automatically.  In addition, a PDF is filled and so forth, then saved, I don't want this invoice number to regenerate once its open again for whatever the reason.  Is this sound possible?

    My bad... The code should be:

    this.getField("Invoice_No").value = util.printf ("% 06 d", Math.floor ((Math.random () * 1000000) + 1) ");

  • Need to generate unique sequence number based on category

    Hello

    I have to update the NEW_NUMBER column with a unique number, taking into account the category column.

    Here is the table structure and data.

    {code}

    create table (sample)

    CATEGORY VARCHAR2 (100),

    NUMBER VARCHAR2 (100),

    NEW_NUMBER VARCHAR2 (100))

    {code}

    {code}

    insert into sample values ("CAPACITOR ', ' 36858'," ");

    insert into sample values ("CAPACITOR ', ' 37858'," ");

    insert into sample values ("CAPACITOR ', ' 36958'," ");

    Insert the sample values ('RÉSISTANCE', '46858', ");

    Insert the sample values ('RÉSISTANCE', '47858', ");

    Insert the sample values ('RÉSISTANCE', '46958', ");

    {code}

    I have to update the NEW_NUMBER column with a unique number, taking into account the category column.

    Output would be like that.

    {code}

    Insert in the values('CAPACITOR','36858','270-01-0000001') sample.

    Insert in the values('CAPACITOR','37858','270-01-0000002') sample.

    Insert in the values('CAPACITOR','36958','270-01-0000003') sample.

    Insert in the values('RESISTOR','46858','370-01-0000001') sample.

    Insert in the values('RESISTOR','47858','370-01-0000002') sample.

    Insert in the values('RESISTOR','46958','370-01-0000003') sample.

    {code}

    If you can help generate for one category, I'll do it for the other categories.

    Thanks in advance.

    Thank you

    LAK

    Not sure how you came up with 270 and 370. But with the information that you never provided that that's what I came with.

    SQL > select * sample;

    CATEGORY OLD_NUMBER NEW_NUMBER
    ---------- -------------------- --------------------
    CAPACITOR 36858
    CAPACITOR 37858
    CAPACITOR 36958
    RESISTANCE 46858
    RESISTANCE 47858
    RESISTANCE OF 46958

    6 selected lines.

    SQL > fusion in a sample
    2 using the)
    3. Select category
    4, old_number
    5, decode (category, "CAPACITOR ', ' 270', 'RÉSISTANCE', '370'")
    6                 || ' '-01 -.
    7                 || LPAD
    8                    (
    9 row_number() over (partition by order of category by old_number)
    10                     , 7
    11                     , '0'
    (12) new_number
    13 for example
    (14) b
    15 on)
    a.category 16 = b.category and
    17 a.old_number = b.old_number
    18        )
    19 when matched then
    20 update set a.new_number = b.new_number;

    6 lines merged.

    SQL > select * from sample by category, old_number;

    CATEGORY OLD_NUMBER NEW_NUMBER
    ---------- -------------------- --------------------
    CAPACITOR 36858 270-01-0000001
    CAPACITOR 36958 270-01-0000002
    CAPACITOR 37858 270-01-0000003
    RESISTANCE 46858 370-01-0000001
    RESISTANCE 46958 370-01-0000002
    RESISTANCE 47858 370-01-0000003

    6 selected lines.

  • is there any function in the osb to generate a unique number in proxy

    is there any function in the osb to generate a unique number in proxy

    FN - bea: uuid()

    The function fn - bea: uuid() returns a universal unique identifier. The function has the following signature:

    FN - bea: uuid() as XS: String

    You can use this function in the pipeline of proxy to generate a unique identifier. You can insert the unique identifier that is generated in an XML document in the form of element. You are unable to generate a unique identifier to the system variable. You can use this to edit a message payload.

    For example, suppose you want to generate a unique identifier to add it to a message for follow-up purposes. You can use this function to generate a unique identifier. The function returns a string that you can add it to the SOAP header.

  • need to generate unique sequence for each transaction number

    need to generate unique sequence for each transaction number

    Use sometihng like that



    use the orcl: sequence-next function val

  • Put a unique number on each form is submitted

    My Department is new to Live Cycle Designer.  We created a PDF using LCD ES form that is used to approve the purchase of certain types of equipment.  I was prompted to change to include a unique identification number, and I need advice on where to start.

    The user goes on the web opens the PDF homologation form, fills out and clicks a button to send (on the form) that fits over the filled PDF an email that is sent to our office.  Once the form comes to us, it must be distributed to the other 4 or 5 oversight offices, and we want to identify each shape with a unique number, so we can monitor his progress.

    So what I was asked to do is to find a way to put a unique number generated automatically on the form at one point before it is emailed to us.  The number may have a number any numbers or characters (for as long as it is readable by humans) and does not need to be sequential.  I think a 5 or 6 digit would be good.

    I thought that the right approach would be to create a small Access database to generate/store identification numbers and then get the form of capture/read a new number every time that you click the submit button.  While I can connect to my database of test very well, what I do understand not how to execute SQL of LCD, or how to do it after the events, as when the form is opened or when the user clicks the submit button.  I didn't see any chance of finding similar good one so far.

    Is this the right way to go, or is there a better way to do it in LCD?

    Thanks for your time,

    -Max

    I created an example showing the various options that are available. Note that if you connect an external source such as a database and your users use player then you have to drive to extend the form using LiveCycle to allow this.

    The file that I was talking about is attached. If you need the process and controls for the DB I mention just ask and I'll post those as well. You will need LiveCycle server for this part.

    Paul

  • Stress Test ADF Faces with JMeter, simulate multi user - unique number doc

    Hi all
    I was able to configure JMeter to test ADF faces 10g application, now is the time to define the load and the scenario.
    When reading JMeter docs, I'm curious if others has been doing so successfully and can share it. (at least Mr. Chris Muir...?  :)

    I have two questions:

    (1) the page I want to test is a Page of entry of order with master - detail (form - editable table).
    I f I just create a group of JMeter threads with Thread number = 50.
    These '50 users' insert exactly the SAME data, even if I have a single Unique constraint on a field "Order-Ref" (which is not automatically generated, but entered by the user).
    Is it possible to use a meter on JMeter, so this "Order-Ref" field will be filled with 'REF-1', ' REF - 2 "etc...?". (so that I can survive the unique constraint)

    (2) have you tried JMeter to insert data of editable table ADF?

    Thank you very much
    xtanto

    Search the concept of function in JMeter, more precisely the function of the counter:
    http://Jakarta.Apache.org/JMeter/UserManual/functions.html#__counter

    CM.

  • Automatically generate color

    I need to create codes of different color (like colors of 10, 20 or even more depending on the number of parameters). That is to say for a number n of parameters I n different colors.
    Now in this example, I have only 4 colors (1,0,0, 0,1,0, 0,0,1 1.0.1) codes

    Is there a way to automatically generate the color codes? Or any other ideas?

    Thank you

    Hello

    I just tried something. check if it is suitable for you.

  • Jdev 12.2.1, automatically generate the password when creating a new user

    Hello

    Just by creating a new Admin user wants to automatically generate the password based on specific conditions and some mail users e-mail ID entered during creation.

    Please help me find the solution

    Nikhil

    Hi Timo,

    create new user with the username, userid, e-mail, etc. and the strength to change password to true by default. and the implimentation of security as capital letters, Lowwercase, number, at least one special character. There is no need of plu username. just something random.

  • The use of sequence and generate the number in a table that has data

    Hello

    There is a custom table that has a column Rowid (NULL).
    This table already has 10 k with rowid as null lines, now the user asks me to enter a unique number for the Rowid.
    I created a sequence, but don't know how to use this sequence and generate numbers for the Rowid.

    Could you suggest.

    Thank you.

    "rowid" is an oracle reserved word and should be avoided. Perhaps "Rowid" between quotes or something.

    Here's how to "fill" a column by a sequence:

    SQL> create table t (id number, value varchar2(100));
    
    Table created.
    
    SQL> insert into t (value) select object_name from all_objects where rownum <= 10000;
    
    10000 rows created.
    
    SQL> create sequence idgen_sequence;
    
    Sequence created.
    
    SQL> update t set id = idgen_sequence.nextval;
    
    10000 rows updated.
    

    Given that the sequence was used all the 'id's will be unique.

  • How to auto generate unique ID

    Hi all

    I automatically generate the unique field in my table using the sequence and to display this value in the Page of the OFA.

    Help, please.

    Thank you

    Published by: fsl 9 December 2010 23:02

    Hello
    Instead of using this, you can write your code in AM.
    Retrieves the sequence and manually assign the special attribute. using the method EOVOobj.setAttribute ("Attribute1", sequenceNum);

    Kind regards
    GYAN

  • Generation of a unique number on the columns.

    Hello

    Please check this query,

    < pre >

    SELECT DISTINCT A.LKP_ID AS ID
    D.PART_CNDTN_CD as a CONDITION
    D.PART_DISPOSTN_CD AS PROVISION
    C.LKP_NM AS DESCRIPTION
    OF FWOWNER. CLM_LKP_VALUE HAS
    FWOWNER. CLM_LKP_USAGE B
    FWOWNER. C CLM_LKP_VALUE_LANG
    IWOWNER. WC_CLM_SRVC_PART D
    WHERE B.LKP_USED_AS IN ('RR_CAUSAL_PART_CNDTN_CODE', 'rr_parts_disposition')
    AND A.LKP_REF BETWEEN B.LKP_REF AND B.LKP_REF + '.' 99999
    and A.LKP_ID = C.LKP_ID
    AND C.LANG_CD = 'ENG_USA. '
    AND A.LKP_LVL = 3
    and A.LKP_VALUE = BOX
    WHEN B.LKP_USED_AS IN ('RR_CAUSAL_PART_CNDTN_CODE')
    THEN D.PART_CNDTN_CD
    WHEN B.LKP_USED_AS IN ('rr_parts_disposition')
    THEN D.PART_DISPOSTN_CD
    END

    < / pre >


    top query let me out like,

    < pre >
    AVAILABLE FOR THE ID CODE DESCRIPTION
    ----- ------- ---------- ---------------------------------
    CP07 25774 REVAMPED bad calibration
    25789 CP22 leak (null)
    25795 CP28 scars / covered
    25796 CP29 (null) Warped/distorted/curly
    25768 CP01 PROCESSED Bent/pleated/Fold/bent/blister
    CP10 25777 chipped
    Contamination CP12 25779
    25786 CP19 grooved/crosses (null)
    25793 pitted CP26 (null)
    25768 CP01 (null) Bent/Creased/Fold/twisted/Crinkled
    25777 chipped CP10 (null)
    CP11 25778 Circuit (null) Bad
    25783 dented CP16 (null)
    25790 obsolete CP23 / supplant (null)
    25797 CP30 (null) worn too
    25798 CP31 (null) bad part
    * 25799 CP32 (null) other *.
    * Other CP32 25799 *.
    28225 CP07 REVIEW REVIEW
    25771 CP04 Broken/fractured (null)
    25779 CP12 Contamination (null)
    25780 CP13 corroded/eroded (null)
    25781 CP14 Cracked (null)
    25785 CP18 Galled/frettees (null)
    25788 CP21 (null) failure to point
    25795 CP28 Scarred/Spalled (null)
    CP30 25797 door too
    28225 CP01 REVIEW REVIEW

    28 response (s) selected [extract metadata: 0/ms] [extract data: 0/ms]


    < / pre >

    Please see the part "BOLD", I get two duplicates with a vertical drop of NULL and empty space I want to generate a unique number on the CONDITION column and available how to do this.


    (Please check my previous thread of reference
    MERGE TWO COLUMNS?
    )

    This is not Oracle...

    In any case:

    SELECT  DISTINCT A.LKP_ID          AS ID
    ,       D.PART_CNDTN_CD          as CONDITION
    ,       CASE WHEN LENGTH(D.PART_DISPOSTN_CD)=0 or D.PART_DISPOSTN_CD IS NULL THEN null ELSE D.PART_DISPOSTN_CD END  AS DISPOSITION
    ,       C.LKP_NM AS DESCRIPTION
    FROM     FWOWNER.CLM_LKP_VALUE          A
    ,     FWOWNER.CLM_LKP_USAGE          B
    ,     FWOWNER.CLM_LKP_VALUE_LANG      C
    ,     IWOWNER.WC_CLM_SRVC_PART     D
    WHERE     B.LKP_USED_AS          IN ( 'RR_CAUSAL_PART_CNDTN_CODE', 'rr_parts_disposition')
    AND     A.LKP_REF          BETWEEN     B.LKP_REF     AND     B.LKP_REF + '.99999'     -- No quotes
    and     A.LKP_ID          = C.LKP_ID
    AND     C.LANG_CD          = 'ENG_USA'
    AND     A.LKP_LVL          = 3
    and      A.LKP_VALUE          = CASE
                             WHEN  B.LKP_USED_AS     IN ( 'RR_CAUSAL_PART_CNDTN_CODE')
                             THEN  D.PART_CNDTN_CD
                             WHEN  B.LKP_USED_AS     IN ('rr_parts_disposition')
                             THEN  D.PART_DISPOSTN_CD
                          END
    

    Max
    [My Italian blog Oracle | http://oracleitalia.wordpress.com/2010/02/07/aggiornare-una-tabella-con-listruzione-merge/]

  • How to automatically generate memories

    Upgrade to Mac OS Sierra, I decided the new updates of Photos of the evidence. But after you import a lot of images (which have been distributed in files) pictures has not created memories for these photos.

    So, how could I apply Photos to automatically generate memories for the library.

    Patience - give it time - it is an automatic process - you do not control it

    LN

  • Numbers: Automatically generate data in one worksheet to another worksheet.

    By the numbers, how can you (or is it possible to) automatically generate data in a spreadsheet that is manually entered in another sheet?  For example, I want to track customer information in sheets 2-10 and I want specific data of these sheets to automatically fill the sheet 1 box so I can create an overview of the specific data in any of my clients.  As a dashboard of sorts.

    The devil is in the details here. Can you give more details?

    In general, I would say it will be much easier to enter your data at a specific location and then consolidate that extracts the "views" or "reports" it for each customer, to enter data for each client separately.

    But both ways are possible.

    SG

Maybe you are looking for

  • Export to MP4

    Asked me to export images in a project on FCP X to MP4. It is not listed as an available option and I don't no compressor. I'd appreciate any help, please.

  • Cleaning questions

    I have a pop up that says: 714 issues found with a circle with a brush and apple icon, a yellow triangle with an exclamation point.  It has a button to start the repair.  I also have a blue robot that says a scan is recommended. Is - is this legitima

  • No Facetime App

    I have an iphone 6 more bought in Pennsylvania, the United States and running iOS 9.2.1.  For some reason, there is no facetime on my phone app.  When I fo to the settings, there isn't even an entry of facetime.  How could I get that fixed?  Thank yo

  • Satellite M70-350 - 633 Mhz DDR2 Ram work?

    I have a Satellite M70-350 and on that I have 512 Mo DDR2-533 (266 Mhz)I know I can go 2Gb maximum. My question; If I put on my Lalonde DDR2-633, it will work or not?

  • Problem Driver WiFi HP 255 G2

    Hello, I just bought my G2 255 HP and I spend a lot of time to find the driver of apropriat. All the drivers that I tried to install start to load and then close any whitout a clue. The led of the button WiFi (f12) is always orange. In the device man