Go Back   PTI Marketing Technologies User Community > Search Forums

Notices

Showing results 1 to 25 of 500
Search took 0.14 seconds.
Search: Posts Made By: step
Forum: Formatting Text November 15th, 2017, 06:40 AM
Replies: 3
Views: 88
Posted By step
Re: How to trim spaces inside data values

You can do this:

return Field("Your Field Name").replace(/\s/g, '');
Forum: Imposition November 13th, 2017, 02:15 PM
Replies: 2
Views: 77
Posted By step
Re: Specify Color for Crop Marks

Not to my knowledge. We've run into the same limitation as well and ended up using a Pitstop Pro (http://www.rpimaging.com/enfocus-pitstop-pro-2017.html) action to convert the color of the crop marks...
Forum: FusionPro® VDP Creator November 13th, 2017, 02:05 PM
Replies: 3
Views: 68
Posted By step
Re: Repeat pages based on quantity in spreadsheet.

Assuming your PDFs are named the same as your fields, you could create a text rule:

var result = [];
for (var field in FusionPro.Fields) {
if (!/^Store/.test(field)) {
var count =...
Forum: The JavaScript Library November 6th, 2017, 04:04 PM
Replies: 2
Views: 162
Posted By step
Re: Ampersand problem

This line of code isn't necessary. It is replacing every occurrence of "&" in the string "Title" with "&." Since there are no instances of "&" in "Title," you can remove that code.

I'm going to...
Forum: The JavaScript Library November 6th, 2017, 02:44 PM
Replies: 4
Views: 99
Posted By step
Re: Simple rule to check input

If you want to print the book number on the first page of the book, then you aren't really trying to determine if the record is a multiple of 50. Record 1, 51, 101, etc aren't multiples of 50.

I...
Forum: FusionPro® VDP Creator October 30th, 2017, 10:22 AM
Replies: 4
Views: 132
Posted By step
Re: How to set multi-line to every 6 records?

If you wanted to, you could make a global array containing all of your codes in an OnJobStart callback and then splice off the first 6 codes in that array and print them on every 6th record:
...
Forum: Issues, Questions, Etc. October 26th, 2017, 04:08 PM
Replies: 6
Views: 135
Posted By step
Re: How to decrease line height in table with multi-line records

I see a line of code that contains the word "Margins" but it is commented out, incorrectly defined, and the "Top" and "Bottom" properties are set to zero (which I noted wouldn't work in my response)....
Forum: Issues, Questions, Etc. October 26th, 2017, 03:24 PM
Replies: 6
Views: 135
Posted By step
Re: How to decrease line height in table with multi-line records

You can adjust the space between rows in a table by adjusting the top and bottom margins of the row's cells (must be greater than 0). Additionally, you can set a minimum height for the row itself.
...
Forum: The JavaScript Library October 26th, 2017, 01:48 PM
Replies: 5
Views: 173
Posted By step
Re: Assigning a value to a FusionPro Field in an OnRecordStart

I don't know about MarcomCentral but in FusionPro, "SetFieldValue" is not a property of a text frame.

If you're trying to override the value of the "size" field from your OnRecordStart rule, you...
Forum: FusionPro® VDP Creator October 26th, 2017, 01:15 PM
Replies: 5
Views: 187
Posted By step
Re: Multiple lines of data on one page with one input file

This is how I would do it:
First, you need to remove all of the content from your overflow frame ("Donations2") on page two. That frame will be populated by "Donations1" if the text doesn't fit.
...
Forum: Graphic Rules October 9th, 2017, 03:09 PM
Replies: 2
Views: 145
Posted By step
Re: Return Multiple Graphics in 1 Graphic Box

You should try returning an inline graphic in a text frame:

var result = '';
for (var i = 1; i <= 6; i++) {
if (!(logo = Field("Logo " + i))) continue;
result +=...
Forum: FusionPro® VDP Creator October 4th, 2017, 05:20 PM
Replies: 2
Views: 174
Posted By step
Re: Counting contents of fields

Maybe this would do the trick:

var result = [];
var meals = {};
var fields = ["Guest Entree", "2nd Guest", "3rd Guest", "4th Guest", "5th Guest", "6th Guest", "7th Guest"]
...
Forum: FusionPro® VDP Creator September 29th, 2017, 11:26 AM
Replies: 2
Views: 183
Posted By step
Re: External data question

Sure, it's possible; check out the static example below. Just create the array as a JavaScript Global:

globalArray = [];

Then you can populate the array at the start of each record in...
Forum: Issues, Questions, Etc. September 29th, 2017, 11:14 AM
Replies: 2
Views: 183
Posted By step
Re: Composing Only Certain Records Based on a Field in the Data

You could put this in your OnRecordStart callback:

FusionPro.Composition.composeThisRecord = Field("Code") == "E";


And this in your OnJobStart rule:

FusionPro.Composition.composeAllRecords...
Forum: Issues, Questions, Etc. September 22nd, 2017, 01:33 PM
Replies: 2
Views: 173
Posted By step
Re: Problems with bottom alignment of table in text frame

I've run into this issue before as well. Maybe it has something to do with the 'table' markup tags, but vertical alignment doesn't seem to like it if a paragraph tag isn't the last line in the text...
Forum: Formatting Text September 22nd, 2017, 09:05 AM
Replies: 4
Views: 225
Posted By step
Re: Pulling data from XDF

Since 'FindRecords' returns an array of record numbers, you could also splice the first 10 and map them to the correct fields like this:

var XDF = new ExternalDataFileEx("your file name");
return...
Forum: FusionPro® VDP Creator September 21st, 2017, 01:27 PM
Replies: 9
Views: 591
Posted By step
Re: Multiple page output in one record based on different fields

You just need to modify it slightly:

FP.AddVariable('NameAdd', content.txt, true);
Forum: FusionPro® VDP Creator September 19th, 2017, 12:40 PM
Replies: 4
Views: 194
Posted By step
Re: Multiple pg body usage

It's a ternary operator (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_Operator). It's a shorthand way of writing this:

if (Field("List") == "Local") {
...
Forum: FusionPro® VDP Creator September 19th, 2017, 12:21 PM
Replies: 4
Views: 194
Posted By step
Re: Multiple pg body usage

Are your pages named 1, 2, 3, and 4? If not you may need to make the page numbers integers instead of strings:

if (Field("List")=="Local")
{
FusionPro.Composition.SetBodyPageUsage(1, true)
...
Forum: The JavaScript Library September 18th, 2017, 11:52 AM
Replies: 12
Views: 551
Posted By step
Re: Mass Entity Rule Possible?

Oh okay, thank you for attaching your collected template. I see what you're saying. Well this is kind of awkward. After I posted that whole missive about how "AddVariable" works, it turns out I don't...
Forum: The JavaScript Library September 14th, 2017, 09:29 PM
Replies: 12
Views: 551
Posted By step
Re: Mass Entity Rule Possible?

Yes. But, in doing so it updates the value returned by the "Field" function. Let's assume you have a field in your data called "Salutation" and that field contains "Dear Lance." Naturally, that is...
Forum: The JavaScript Library September 14th, 2017, 06:13 PM
Replies: 12
Views: 551
Posted By step
Re: Mass Entity Rule Possible?

The ReplaceSubstring function is replacing each occurrence of the 'find' variable in each FusionPro field with the corresponding 'replace' variable defined in the 'charMap' object and then redefining...
Forum: Issues, Questions, Etc. September 14th, 2017, 01:06 PM
Replies: 3
Views: 246
Posted By step
Re: Business Card Imposition

Essentially what you want to do is set up your imposition to be 4 up and you want each record to produce 4 cards to fill the imposition.

So you'd present the customer with 4 name fields (Name1,...
Forum: FusionPro® VDP Creator September 13th, 2017, 07:37 AM
Replies: 9
Views: 591
Posted By step
Re: Multiple page output in one record based on different fields

Delete the "NameAdd" rule and change your "OnRecordStart" callback rule to:

var FP = FusionPro.Composition;
var graphics = [Field("TribType"), Field("TribType1"), Field("TribType2"),...
Forum: The JavaScript Library September 8th, 2017, 03:35 PM
Replies: 12
Views: 551
Posted By step
Re: Mass Entity Rule Possible?

I think this might work:

// An object of values to find as the keys,
// and the string to replace them with as the value.
var charMap = {
// Find : Replace
"&amp;" : "&",
"&rsquor" :...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -7. The time now is 02:28 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.