First you would have to reference it in your JavaScript Globals like this.

//Below define Gdata as my external data source
englishfile = new ExternalDataFileEx("Macintosh
HD:Users:cg161807:Desktop:Working Files:yourfilename.txt", ",");
englishfile renames the file so you don't have to call back the entire
file location.
The comma is the delimiter in this case.
I would also add the file as a resource so that when you compose it
composes with that file.

Now it is a matter of creating a rule that pulls different your different
versions.
I don't know what is different about the two versions other than language,
but here is an example that I have.

Create a rule on record start.

//Top Section sets Status

CurRec = CurrentRecordNumber();


if(englishfile.GetFieldValue(CurRec, "columnnamehere") >= Int("11"))

        {
        status = "english";
        }

if(frenchfile.GetFieldValue(CurRec, "columnnamehere") < Int("11")
        {
        status = "French";


//Section Below define page usage

if((status == "english"))

        {
        FusionPro.Composition.SetBodyPageUsage("FrenchPage", false);
        FusionPro.Composition.SetBodyPageUsage("EnglishPage", true);
        }

else
        {
        FusionPro.Composition.SetBodyPageUsage("FrenchPage", true);
        FusionPro.Composition.SetBodyPageUsage("EnglishPage", false);
        }

This probably made no sense at all, but gives you a starting point? I
hope!

Chad


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