473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Coding Javascript/XML in PDF Forms

BlueChrome
I am doing some basic sums in PDF Forms using Javascript and XML. The form is 4 pages long, and I can't get the sum fields on page 4 to reference cells on page 1. Here is one of my sum scripts:

<calculate>
<script contentType="application/x-javascript">this.rawValue = II_TOTAL_REV_c.rawValue + II_6_c.rawValue + II_7_c.rawValue + II_8_c.rawValue + II_9_c.rawValue - II_10_c.rawValue;</script>
</calculate>

The sum field continues to read "0.00" even when data is entered into the reference cells
Apr 28 '08 #1
5 1980
acoder
16,027 Expert Mod 8TB
I see you found the "Post a Question" link ;)

Can you access the values on the second page?
Apr 28 '08 #2
No. I actually need to access fields on the first page from the second, and fields from the first three pages on the last. I noticed when I set the tab order that it reset to 1 every time I clicked on the next page, and I thought maybe it just does that, but now I'm wondering if I'm set up where each page is a separate section or something. I even tried referencing the page in the script (ie.
Expand|Select|Wrap|Line Numbers
  1. page2.field1.rawValue
) - to no avail.
Apr 29 '08 #3
acoder
16,027 Expert Mod 8TB
Since the JavaScript in Adobe Acrobat is different from the ones used in web pages, I can't help much more than point you to the Developer Center for Acrobat. Good luck!
Apr 30 '08 #4
Interesting, thanks. I was studying one of their conversion manuals and noticed that they referenced subforms a lot. I looked into my document to see if it had any subforms and noticed it had subforms like P1, P3, etc. So I thought "Could P1=Page 1?" Yep. When I rewrote the script to reference P1.Field1.rawValue, it worked.

Praise the Lord, Hallelujah.
Apr 30 '08 #5
acoder
16,027 Expert Mod 8TB
Well done. Glad you got it working and thanks for posting.
Apr 30 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Gowhera Hussain | last post by:
Use This for Learning Only .... Do Not Try To Act Smart HACKING WITH JAVASCRIPT Dr_aMado Sun, 11 Apr 2004 16:40:13 UTC This tutorial is an overview of how javascript can be used to bypass...
1
by: jarit | last post by:
Hi, Found these coding guidelines for C#, HTML, Javascript, Java, HTML, PL/SQL, T-SQL, VB and VBScript. Well written and free to download. www.demachina.com/products/swat Jeroen
6
by: bravesplace | last post by:
I am hoping for a code example of how to do this, and hopefully it will help me to see an easy way to code what seems to be a huge monster. I need to create a form that has two pulldown menues...
3
by: bhanubalaji | last post by:
hi, I am unable to disable the text(label) in javascript..it's working fine with IE,but i am using MOZILLA.. can any one help regarding this.. What's the wrong with my code? I am...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.