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

java calculations

Explorer ,
Feb 08, 2018 Feb 08, 2018

Copy link to clipboard

Copied

Hi All

Anyone able to help, I'd like to use or reference a fixed value so I can use it in a java calculation

I need to do this all in java, so my script needs to hold the value and I want to use it in some simple maths cals

This should be so easy but the material examples I am finding on the Net on Adobe pdf java is not helping me.

I been through Thoms video on Youtube and Iam still none the wizer

TOPICS
Acrobat SDK and JavaScript

Views

2.0K

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Expert , Feb 15, 2018 Feb 15, 2018

The line before, + "Admin $"+AF;

ends with a semi-colon.  This is why it is not being shown, remove the semicolon

Votes

Translate

Translate
Community Expert ,
Feb 15, 2018 Feb 15, 2018

Copy link to clipboard

Copied

I already told you what was wrong with that code, but you insist going back to it without making the modifications we mentioned.

I'm also giving up. You need to either spend time learning basic JS syntax, or hire someone to do it for you. Good luck.

Votes

Translate

Translate

Report

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 ,
Feb 15, 2018 Feb 15, 2018

Copy link to clipboard

Copied

The line before, + "Admin $"+AF;

ends with a semi-colon.  This is why it is not being shown, remove the semicolon

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

Translate

Translate

Report

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
Explorer ,
Feb 15, 2018 Feb 15, 2018

Copy link to clipboard

Copied

LATEST

Thank you for having the patients to help, much appreciated.

Votes

Translate

Translate

Report

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 ,
Feb 15, 2018 Feb 15, 2018

Copy link to clipboard

Copied

Then you have a very basic misunderstanding what you did.

The getField method is used to access a form fields. If you're not trying to do that, then what are you trying to do?

What is this "AF" value?

Votes

Translate

Translate

Report

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 ,
Feb 11, 2018 Feb 11, 2018

Copy link to clipboard

Copied

+ "Admin $" + this.getField("AF").value;

Votes

Translate

Translate

Report

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