kristina3909 Posted January 27, 2017 Share Posted January 27, 2017 Is there a way to store my original data source name? I would like to use the name of my flat file as a way to find the matching background image. For instance my data source name would be 12345.csv and I would like to use that in a rule to pull the associated background image 12345.pdf. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted January 27, 2017 Share Posted January 27, 2017 Is there a way to store my original data source name? I would like to use the name of my flat file as a way to find the matching background image. For instance my data source name would be 12345.csv and I would like to use that in a rule to pull the associated background image 12345.pdf. What do you mean by "original?" Do you mean the data file specified in the Data Definition (.def) file, as opposed to the actual data file used for composition in FP Server or Producer? (They're the same in Creator/Desktop compositions, although not in Creator Preview compositions.) If so, you can use the FusionPro.inputFileName property to get the input data file name from the Data Definition, and FusionPro.Composition.inputFileName to get the file actually used for composition in a Server or Producer composition. There's also a helper PrimaryInputFile() function which gets the current data file in composition case, and at rule validation time. Quote Link to comment Share on other sites More sharing options...
kristina3909 Posted January 27, 2017 Author Share Posted January 27, 2017 I am using the desktop version and by original I mean the data source I am mapping to the template. I want to store that name and use it in a rule. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted January 27, 2017 Share Posted January 27, 2017 I am using the desktop version and by original I mean the data source I am mapping to the template. I want to store that name and use it in a rule. That would be FusionPro.inputFileName. 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.