Hello Everyone,
I'm trying to write an OnRecordStart Rule that will first determine how
many variable fields contain something. Then it will use that
information to pull a specific page within the template. The reason I
need to create the template this way is because the layout changes
dramatically depending on the amount of information used. Unfortunately
when I preview in FusionPro both pages are being used. I've attached my
rule syntax below. I would really appreciate it if anyone could either
point out the error in my syntax or suggest a better way of writing the
code. Thanks in advance for any help!
Current Rule Syntax:
if (Field("Name") == "") {var1 = 0} else {var1 = 1};
if (Field("Title1")=="") {var2 = 0} else {var2 = 1};
if (Field("Title2")=="") {var3 = 0} else {var3 = 1};
if (Field("Phone") == "") {var4 = 0} else {var4 = 1};
if (Field("Phone2") == "") {var5 = 0} else {var5 = 1};
if (Field("Phone3") == "") {var6 = 0} else {var6 = 1};
if (Field("Email") == "") {var7 = 0} else {var7 = 1};
if (Field("WebAddress") == "") {var8 = 0} else {var8 = 1};
sum1 = var1 + var2 + var3 + var4 + var5 + var6 + var7 + var8;
if (Field("DepartmentName") != "" && Field("DepartmentNameCont") != ""
&& Field("AssociatedDeptName") != "" && sum1 == "8")
{
FusionPro.Composition.SetBodyPageUsage("PG1", false);
FusionPro.Composition.SetBodyPageUsage("PG2", true);
}
if (Field("DepartmentName") != "" && Field("DepartmentNameCont") != ""
&& Field("AssociatedDeptName") != "" && sum1 <= "7")
{
FusionPro.Composition.SetBodyPageUsage("PG1", true);
FusionPro.Composition.SetBodyPageUsage("PG2", false);
}
--
Nicola DosSantos
Ambit Press / Minuteman Press of Cambridge
Five Cambridge Center
Cambridge, MA 02142
Tel: 617.876.3688
Fax: 617.876.3896
www.ambitpress.com
Please send all jobs to [EMAIL PROTECTED]
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
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
--