You're probably not getting the values you expect in your field. What
you need to do is debug your rule to determine why it's not giving you
the expected results.
There are several ways to do this. For a callback rule, the best way is
to add some Print statements to write extra information to your log
file. For instance:
Print("PR_FLAG field value: \"" + Field("PR_FLAG") + "\"");
if (ToUpper(Field("PR_FLAG")) == "10220-E")
{
Print("Activating pages for 10220-E");
FusionPro.Composition.SetBodyPageUsage("Body 1", true);
FusionPro.Composition.SetBodyPageUsage("Body 2", true);
}
else if (ToUpper(Field("PR_FLAG")) == "10220-F")
{
Print("Activating pages for 10220-F");
FusionPro.Composition.SetBodyPageUsage("FRE BODY P1", true);
FusionPro.Composition.SetBodyPageUsage("FRE BODY P2", true);
}
else
Print("Failed to activate pages!");
Run the job again, and look in the log file. The messages should give
you some clues about what's happening. Please post back about what you
find out.
Dan
--
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
--
Don't miss The Printable Technologies 2007 User Group Conference at the Monte
Carlo Resort and Casino in Las Vegas, March 14 through March 16, 2007.
For more details or to register, go to
http://www.traveltrust.com/Forms/pt_signup_2007-3.html
--
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
--