Richard,

I went through the same thought process a while back, when I had to build
a variable calendar template.  What I ended up with was a set of global
functions that did all of the work, called from each individual text box
as follows:

rule name: 0101

ThisDate = "1/1"

return TextBox(ThisDate);


The hard part about this is building the 365 individual rules, but I
cheated a bit and built one, then went outside of printable, copied the
text of the rule from the .def file, and wrote a script to duplicate it
and change the dates.  Then you link each date box to the correct rule. 
The advantage is that since all of your core code is in the global
function, it's very easy to maintain.  Until next year, when you have to
build a new set of 365 boxes, and link it all again.  But at least the
rules don't change (hint - don't put the year in any of the rules, add
that in separately in the global function).

The end result was a very flexible product, that allows for a lot of
variable content on the individual days, including variable holiday and
birthday lists, and in my case, custom text messages based on dates
supplied in a database for tradeshows, and reminder messages every two
weeks before the show.

Let me know if you want any more information on what I did.  Or even
better, use Dan's very impressive (if complicated) suggestion, and then
let me know how it works.

Paul Klingler
[EMAIL PROTECTED]

> So is it possible for a global java function to access and change the text
> in another text box, other that the one it is called from? I would rather
> not have to call a function from every datebox in the calendar as that
> would involve either calculating the dates from every box (504 text boxes)
> or making some global arrays that it has to access.

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
FusionPro 5.0 Now Available!


Variable text on a curve and soft drop-shadows for variable text


LIMITED TIME upgrade offer of $299 per license for current customers:
http://fusionpro.printable.com/store/upgrade

New licenses available for $599 each at:
http://fusionpro.printable.com/store/

All FusionPro 5.0 customers to receive FusionPro 5.1 with
Adobe Acrobat 8 and InDesign CS3 support when released for FREE.
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
--
Users of FusionPro Desktop have unlimited free email support. Contact Printable 
Support at [EMAIL PROTECTED] 
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm

--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
--


--
Note:  All e-mail sent to or from this address will be received or otherwise 
recorded by the e-mail recipients of this forum. It is subject to archival, 
monitoring or review by, and/or disclosure to someone other than the recipient. 
Our privacy policy is posted on www.printplanet.com
--

Reply via email to