rpaterick Posted October 16, 2012 Share Posted October 16, 2012 I would like to add another field to the naming output from another column header. Is this possible for the Output to multiple files Rule? FusionPro.Composition.outputFileName = Field("YOUR_FIELD_NAME") + ".pdf" Thanks Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted October 16, 2012 Share Posted October 16, 2012 Sure, you can do build up just about any string you want: FusionPro.Composition.outputFileName = Field("YOUR_FIELD_NAME") + Field("YOUR_OTHER_FIELD_NAME") + "." + FusionPro.Composition.outputFormatExtension; Quote Link to comment Share on other sites More sharing options...
dreimer Posted October 16, 2012 Share Posted October 16, 2012 Is this option only for use with Version 8? If not, is this an OnNewOutputFile rule? Quote Link to comment Share on other sites More sharing options...
dreimer Posted October 16, 2012 Share Posted October 16, 2012 OK, so I see how this works and could be very beneficial. Is there a way to have the output files chunked by the value change in the specified field or is it only based on how many records you indicate per file? Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted October 16, 2012 Share Posted October 16, 2012 Is this option only for use with Version 8? If not, is this an OnNewOutputFile rule? No, this is not unique to FP 8. You can build up whatever string you want to in the OnNewOutputFile rule as well. (Although I believe that the FusionPro.Composition.outputFormatExtension property is new in 8.0, but you can just hard-code ".pdf" or whatever extension in any version.) Quote Link to comment Share on other sites More sharing options...
dreimer Posted October 16, 2012 Share Posted October 16, 2012 Yep, figured that part out and used "PDF" instead. I was replying when you did so maybe you didn't see my next question. Is there a way to have the file output change by the value changes in the field or is it still only driven by the value I enter for the output to multiple files? Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted October 16, 2012 Share Posted October 16, 2012 Is there a way to have the file output change by the value changes in the field or is it still only driven by the value I enter for the output to multiple files? Yes, in FusionPro 8, you can do this in OnRecordStart: if (FieldChanged("myfield")) FusionPro.Composition.OpenNewOutputFile(); You can optionally tell it the name of the file right there as well, so that you don't need the OnNewOutputFile callback: if (FieldChanged("myfield")) FusionPro.Composition.OpenNewOutputFile(Field("YOUR_FIELD_NAME") + Field("YOUR_OTHER_FIELD_NAME") + "." + FusionPro.Composition.outputFormatExtension); Quote Link to comment Share on other sites More sharing options...
dreimer Posted October 16, 2012 Share Posted October 16, 2012 OK, so that option is only in 8. Will have to look into upgrading, thanks. This forum is great, helps me out a ton!!! Thanks everyone!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.