You should be able to call a tagged file that contains the data for your table from a rule. So, you should be able to do what you are attempting. Without having the job in front of me, this is a little hard to visualize...but, one potential problem could be in how you are creating the tagged resource. For exampe, you say:
return CreateResource(Asset + "OP1" + ".txt", "tagged text file") And then the variable Asset is defined as: Asset = "./Images-Tables/" + AssetRef; I believe the problem is in the variable AssetRef. You should be giving a path name for CreateResource, but instead you're passing it a field value too. AssetRef = DbRef.GetFieldValue(FindMe, "MS"); Take a look and see if this is really the logic that you want passed to CreateResource. Lauren Nackoney Senior Quality Assurance Engineer Printable Technologies, Inc. [EMAIL PROTECTED] -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 30, 2007 10:08 AM To: FusionPro Users Forum Subject: [fusionpro] RE: Syntax Help Lauren, I am getting "{Tablebody1}" on the composition. Perhaps I should explain a little better. I have a series of tagged files (.txt) that are different tables. a Part of one of those tables looks like this; <table columns = "4" title = "above" alignment = "center" Margins = "bottom:10"> <column width = 8925> <column width = 6913 > <column width = 6913 > <column width = 6913 > <row><z newsize="8"> <cell rulings="top:thin,BLACK;bottom:thin,BLACK;"><p br=false quad=L><f name="Times LT Std Bold">SIGNET RINGS <cell rulings="top:thin,BLACK;bottom:thin,BLACK;"><p br=false quad=C>10K <cell rulings="top:thin,BLACK;bottom:thin,BLACK;">14K <cell rulings="top:thin,BLACK;bottom:thin,BLACK;">18K <row><z newsize="8"><f name="Times LT Std Bold"> <t><cell><p br=false quad=L>Extra small <f name="Times LT Std"><z newsize="5">4810XS <cell><variable name="TableBody1">$001.00<f name="Times LT Std Italic"><z newsize="7"> $04.00* <cell><variable name="TableBody1">$002.00<f name="Times LT Std Italic"><z newsize="7"> $05.00* <cell><variable name="TableBody1">$003.00<f name="Times LT Std Italic"><z newsize="7"> $06.00* I have a Javascript rule in the template that creates the resource from a database. I wanted to shorten the amount of typed data in the tagged file and have the rule replace the markups with the "tablebody" variables. the rule looks like this; if(FusionPro.isMac) { DbRef = new ExternalDataFileEx("ORP DB BRO REF.txt", " "); FindMe = DbRef.FindRecord("SchoolName", (Field("School"))); AssetRef = DbRef.GetFieldValue(FindMe, "MS"); Asset = "./Images-Tables/" + AssetRef; } else { DbRef = new ExternalDataFileEx("E:\\ISRepository\\DataFiles\\ORP DB BRO REF.txt", " "); FindMe = DbRef.FindRecord("SchoolName", (Field("School"))); AssetRef = DbRef.GetFieldValue(FindMe, "MS"); Asset = ".//Images-Tables//" + AssetRef; } TableBody1 = '<z newsize="9"><p br=false quad=C><f name="Times LT Std">'; TableBody2 = '<f name="Times LT Std Italic"><z newsize="8">'; TableBody3 = '<f name="Times LT Std">'; Option1 = "10k 14k"; Option2 = "10k 14k 18k"; Option3 = "Celestrium 10k 14k"; if (Field("MetalSelection") == Option1) return CreateResource(Asset + "OP1" + ".txt", "tagged text file") if (Field("MetalSelection") == Option2) return CreateResource(Asset + "OP2" + ".txt", "tagged text file") if (Field("MetalSelection") == Option3) return CreateResource(Asset + "OP3" + ".txt", "tagged text file") I have a suspicion that what i am trying to accomplish cannot be done since i am not having the rule create the table itself but simply referencing the file. Is my assumption correct? > One thing I noticed that is wrong are the quote marks for the = > variables. When you have one set of double quotes inside another set, = > you need to have the outside set be single quote marks. Here's an = > example of how it should be: +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- 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 -- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- 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 --