Planet PDF Forum Archive

Planet PDF ForumWowsers! This is page is old, head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner to in-depth developer and pre-press discussions. If you wish to continue... one & two archive covers 1999-2011 (160,000 pages).


New Forum | Previous | Next | (P-PDF) Beginners


Topic: Change Field FillColor on Duplicate Field Value
Conf: (P-PDF) Beginners, Msg: 131390
From: Hudson
Date: 4/21/2005 02:50 AM

Would like to start off by thanking you all for all the help and great info I have gotten from this site.
My current problem is again a function that I have done in the past in MSAccess VBA but do not have a clue about how to go about it in Javascript.
I have not been able to attach my project PDF for reference. These forms will be used to document the data cables in equipment rooms. I would like to have the Field fillColor turn Blue if a user inserts a duplicate cable number in any “POS”
( position ) field on any of the Patch Panel forms “PP.” pages. That would be any and all “POS” fields with duplicate cable numbers. These numbers my be alphanumeric or just numeric, SB001, 1021, 4123, B012, ect… I don’t know if this matters but I mention it anyway.
Labeling Convention:
Form 1:
P1.PP.POS1
P1.PP.POS2
P1.PP.POS3
Thru
P1.PP.POS48

Form 2:
P2.PP.POS1
P2.PP.POS2
P2.PP.POS3
Thru
P2.PP.POS48

There are 15 “PP” Patch Panel forms with the ability to Spawn more.

I would also need the same for the Switch Forms “SW” and “SW80” together not separated. So if 1012 was entered on a “SW” form and 1012 was entered on a “SW80”, both would turn blue. Also can I do this on Blur? This would help the Tech find the duplicate cables numbers or fat finger problems as they are documenting the site.

SW Forms
P19.SW.SWPOS1
P19.SW.SWPOS2
P19.SW.SWPOS3
Thru
P19.SW.SWPOS48
There are 10 “SW” Data Switch forms with the ability to Spawn more.

P29.SW80.SW80POS1
P29.SW80.SW80POS2
P29.SW80.SW80POS3
Thru
P29.SW80.SW80POS80
There are 10 “SW80” Data Switch forms with the ability to Spawn more.

All three of these forms are in the same PDF.

Thanks in advance.
I have a simple example:
var f = this.getField("P1.PP.POS4");
var b = this.getField("P1.PP.POS3");
if (f.value == b.value).
f.fillColor = color.blue;
else
f.fillColor = color.white;
But how do I reference all POSitions on all PP pages?

PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

Debenu PDF Tools Pro

It's simple to use and will let you preview and edit PDF files, it's a Windows application that makes...

Download free demo

Back to the past, 15 years ago! Open Publish 2002

Looking back to 2002, it's amazing how much of the prediction became a reality. Take a read and see what you think!

September 14, 2017
Platinum Sponsor





Search Planet PDF
more searching options...
Planet PDF Newsletter
Most Popular Articles
Featured Product

Debenu PDF Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.

Features

Adding a PDF Stamp Comment

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.