Ryan is correct:  You would need to have a separate call to the
SetBodyPageUsage function for each page.  But if you set all the pages
to be unused initially (in the Page Usage dialog), then you only need to
activate the one you want in the rule.   And you don't need to bother
with the "return" statement in Callback rules.

That said, if the page names all match the field values, you can reduce
all of the logic to this single line:

  FusionPro.Composition.SetBodyPageUsage(Field("Layout"),true);

Much simpler, and, if later on you add more pages and corresponding
field values, you don't need to add more cases to the JavaScript logic.

Also, if your page usage rule is not working, take a look for messages
starting with "In SetBodyPageUsage(), no page named " in your
composition log file.  (The error message is only output at composition
time, and not at rule validation time, because the Rule Editor doesn't
really know what pages exist, since it's not really in a composition.)

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

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