Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Incremental PO number

New Here ,
Jun 01, 2017 Jun 01, 2017

I would like to create a field on a form for a PO number which would increment by 1 each time the form it opened.  Example - the starting number would be 17001 and and stored in the form then next time the form is opened it would increment to 17002 and stored.

TOPICS
Acrobat SDK and JavaScript , Windows
857
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 02, 2017 Jun 02, 2017

There are a lot of states that need to be examined.

See Accumen Journal August 2004 for an article discussing this issue.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 14, 2017 Jun 14, 2017

I dont understand what you are trying to say with the link above.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 14, 2017 Jun 14, 2017
LATEST

That is a link to an article that explains how to use the "global" object in PDF forms to provide an incremental advance when any of the forms in the group is opened. You will have to download the ZIP file and extract the document to read it. Also there are associated PDF files that provide a working example.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 14, 2017 Jun 14, 2017

Does anyone else have an idea of how to do this or if its possible?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 14, 2017 Jun 14, 2017

Is there only going to be one copy of this, or will it be used only on one computer?

If not, there isn't really a way for one copy to know which numbers were already used by another copy, and you'll get duplicate numbers...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 14, 2017 Jun 14, 2017

See this previous discussion: How to create sequential number field?

In general, trying to do this in your document is not a good idea: What if the document is opened on two different computers and new copies are created? You would end up with two different documents that share the same number.

The only safe way to accomplish this is to have the serial number/document number generated outside of the document, and then the document would request a new number from e.g. a web server whenever a new number is required. This way, even when two users  work on creating two different documents at the same time, the server would make sure that both documents would have different numbers. See here for one way to implement this: Getting a Serial Number Into a Form Using SOAP - KHKonsulting LLC

Using SOAP is only supported on Adobe Acrobat, not with the free Reader, so if you also want to use Reader to start a new document, you would have to use e.g. FDF to communicate with the server. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines