Dan,
        I do have a global variable that generates the table and that is in
turn assigned to two different boxes in two different pages. I assume that
the following would not work since the table needs to be generated before
the OnRecordStart can look at the flow? That was our dilemma here; How do we
get the table generated before OnRecordStart?


if(Field("BrochureType") == "Dated w Pricing")
{
        if (FusionPro.Composition.CurrentFlow.name == "02PricingBox")
        {
                if (!FusionPro.Composition.CurrentFlow.fits)    
                {
        
FusionPro.Composition.SetBodyPageUsage("DatePricing",true);
                }
else
                {
        
FusionPro.Composition.SetBodyPageUsage("NoDatePricing",true);
                }
        }
}
        if(Field("BrochureType") == "Non-dated w Pricing")
{
        if (FusionPro.Composition.CurrentFlow.name == "02PricingBox")
        {
                if (!FusionPro.Composition.CurrentFlow.fits)    
                {
        
FusionPro.Composition.SetBodyPageUsage("DatePricing",true);
                }
else
                {
        
FusionPro.Composition.SetBodyPageUsage("NoDatePricing",true);
                }
        }
}
        if(Field("BrochureType") == "Dated without Pricing")
        {
        
FusionPro.Composition.SetBodyPageUsage("DateNoPricing",true);
        }
        if(Field("BrochureType") == "Non-dated without Pricing")
        {
        
FusionPro.Composition.SetBodyPageUsage("NoDateNoPricing",true);

} 






-----Original Message-----
From: Dan Korn [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 27, 2007 11:23 AM
To: FusionPro Users Forum
Subject: [fusionpro] RE: Switch Page

Hi Raul,

It's true that the FusionPro.Composition.SetBodyPageUsage function can
only be called from OnRecordStart.  However, you should be able to do
whatever calculations you need based on the record data within
OnRecordStart.  You may have to move the logic you are using to generate
the tables to a function in your JavaScript Globals.  Also, remember
that, even if you suppress the output of a body page with
SetBodyPageUsage, the frames and flows on that page are still composed,
and you will still see any warning messages about text not fitting in
those frames/flows, even if the frames in question are not actually
included in the output.

Dan





+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- 
Calling all FP Web Users!

Do you have a question or lots of knowledge to share about FusionPro Web?

If so, join our Printable Web to Print Users' Forum today!

Send email to [EMAIL PROTECTED] to find out how! 
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-


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