#1
|
|||
|
|||
![]()
I have a template that requires more the one "OnRecordStart" Rule, but I am unable to get both of them to function in the same template. Is this possible.
I am using FP 6.0 on a Mac. Thanks, Richard. |
#2
|
|||
|
|||
![]()
FusionPro only processes one record at a time so as for the rule, like Highlander, there can be only one. What are you trying to do? I would think you would place both "functions" in the one rule.
|
#3
|
|||
|
|||
![]()
For the first function I want to turn off and on Unused Body pages and the second part I want to use the Repeat record count function.
Thanks, Richard. |
#4
|
|||
|
|||
![]()
You would perform both "actions" in the one rule. I do it all the time.
![]() |
#5
|
|||
|
|||
![]()
Thanks Eric for the reply, is there a certain command that I have to insert between the two scripts to combine them.
Thanks, Richard. |
#6
|
||||
|
||||
![]()
You should just be able to copy and paste both sections of the code into the single rule. What happens when you try this? If you could paste the code here, it would be a lot easier to help.
__________________
Dan Korn FusionPro Developer / JavaScript Guru / Forum Moderator PTI Marketing Technologies | Printable | MarcomCentral I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com. Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs. This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data. Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages. Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance. Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support. How To Ask Questions The Smart Way The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript. Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5. return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)}); ![]() |
#7
|
|||
|
|||
![]()
Hi Dan, here are the scripts I am trying to use:
if (Field("PR_LETTER") == "RTF") { FusionPro.Composition.SetBodyPageUsage("RT_F", true); } else if (Field("PR_LETTER") == "RTE") { FusionPro.Composition.SetBodyPageUsage("RT_E", true); } else if (Field("PR_LETTER") == "ICE") { FusionPro.Composition.SetBodyPageUsage("IC_E", true); } else if (Field("PR_LETTER") == "ICF") { FusionPro.Composition.SetBodyPageUsage("IC_F", true); } else if (Field("PR_LETTER") == "IVF") { FusionPro.Composition.SetBodyPageUsage("IV_F", true); } else if (Field("PR_LETTER") == "MTF") { FusionPro.Composition.SetBodyPageUsage("MT_F", true); } else if (Field("PR_LETTER") == "MTE") { FusionPro.Composition.SetBodyPageUsage("MT_E", true); } |
#8
|
|||
|
|||
![]()
Nope. In my data, I have a field for the version and a field for the quantity of that record needed. Assuming I name my PDF pages the same as the information in the associated field, my OnRecordStart rule looks something like this:
Code:
//assign which page to use per record FusionPro.Composition.SetBodyPageUsage(Field("PR_LETTER"),true); //assign how many copies of each record to output FusionPro.Composition.RepeatRecordCount(Field("Quantity")); Code:
//make sure these results match page names assigned in "Manage Pages..." var Front = Field("PR_LETTER") + "-front"; var Back = Field("PR_LETTER") + "-back"; //assign which pages to use per record FusionPro.Composition.SetBodyPageUsage(Front,true); FusionPro.Composition.SetBodyPageUsage(Back,true); //assign how many copies of each record to output FusionPro.Composition.RepeatRecordCount(Field("Quantity")); Last edited by esmith; May 29th, 2009 at 07:09 AM.. Reason: spelling error in code |
#9
|
||||
|
||||
![]()
Okay, so that's one. What's the other? What happens if you just put that other logic after this?
__________________
Dan Korn FusionPro Developer / JavaScript Guru / Forum Moderator PTI Marketing Technologies | Printable | MarcomCentral I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com. Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs. This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data. Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages. Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance. Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support. How To Ask Questions The Smart Way The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript. Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5. return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)}); ![]() |
#10
|
|||
|
|||
![]()
Hi Gentlemen, I am now getting a chance to try what Eric has suggested. When I got to validate it gives me an error that Fusion Pro has no properties.
Thanks, Richard. |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|