These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Purchase order number generator

hawkesi
Registered: Aug 31 2010
Posts: 1

Hi all,

I'm a bit new to forms creation so i'm hoping for a bit of help here.

Basically i have created an acrobat form for purchase orders. I need a unique purchase order number to appear each time the file is opened. The file is on a server and accessed by several people so i need to make sure that purchase order numbers aren't duplicated.

I've found several similar questions posted here and it looks like i need the file to import the numbers from a data base or perhaps using Javascript.

Can anyone tell me how i might be able to achieve this?

Thanks in advance,

Steve

My Product Information:
Acrobat Pro 9.3.1, Macintosh
try67
Expert
Registered: Oct 30 2008
Posts: 2398
If you don't care about the numbers being successive or of a certain length, you can easily add a function that will generate a random purchase order each time the file is opened. The chance of an identical number being generated twice are then dependent on the length of the number you choose, and you don't need a database.

Another option is to use a time signature, in which case you will get a 13-digit number, guaranteed to be unique (unless two people opened the same file in the exact same millisecond).

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com