Jump to content

Output to multiple files RULE, 2 fields for naming possible?


rpaterick

Recommended Posts

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...