I'm thinking, something like this:

if (Field("Back") != "" &&
        !FusionPro.Composition.GetBodyPageUsage(Field("Department")) ==
true)

        switch (Field("Back")) {
                case "Option A - Blue":
                        FusionPro.Composition.SetBodyPageUsage("Option
A",true);
                case "Option B - White":
                        FusionPro.Composition.SetBodyPageUsage("Option
B",true);
                case "Department":

FusionPro.Composition.SetBodyPageUsage(Field("Department"),true);
        }

I am still getting the Compose error



-----Original Message-----
From: Craig Daters [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2008 7:35 AM
To: Web To Print Users Forum
Subject: [pti_web_to_print] Question re: BodyPage "Exists" logic

Working with a organization that has many departments, but not all of them
have a second side option for this particular business card.

I have the following "OnRecordStart" rule:

switch (Field("Back")) {
        case "Option A - Blue":
                FusionPro.Composition.SetBodyPageUsage("Option A",true);
        case "Option B - White":
                FusionPro.Composition.SetBodyPageUsage("Option B",true);
        case "Department":

FusionPro.Composition.SetBodyPageUsage(Field("Department"),true);
}

I am getting an error for those departments for which I do not have a second
BodyPage:

Job started 07:21:24 - 1206627684.
OnRecordStart, line 7: Error: In SetBodyPageUsage(), no page named "Track &
Field"
Begun composing record #1
Job ended 07:21:25 - 1206627685.


What would be the best way to adjust my logic to accommodate scenarios where
that department does not have a BodyPage and not generate an error
condition?

I guess I am looking for logic which tests whether or not a BodyPage exists,
and if it does, then "turn it on", if not "return" kind of thing.

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1345 - Release Date: 3/26/2008
6:50 PM




--
Please note: It is the policy of West Press that all e-mail
sent to and from any @westpress.com address may be recorded
and monitored. Unless it is West Press related business,
please do not send any material of a private, personal,
or confidential nature to this or any @westpress.com
e-mail address.

This message has been scanned for UCE (spam), viruses,
and dangerous content, and is believed to be clean


--
You are currently subscribed to pti_web_to_print 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
--

No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1345 - Release Date: 3/26/2008
6:50 PM


No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1345 - Release Date: 3/26/2008
6:50 PM




--
Please note: It is the policy of West Press that all e-mail
sent to and from any @westpress.com address may be recorded
and monitored. Unless it is West Press related business,
please do not send any material of a private, personal,
or confidential nature to this or any @westpress.com
e-mail address.

This message has been scanned for UCE (spam), viruses,
and dangerous content, and is believed to be clean 


+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
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