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: Issues, Questions, Etc. August 15th, 2018, 04:43 PM
Replies: 5
Views: 431
Posted By step
Forum: Dates August 10th, 2018, 08:24 AM
Replies: 1
Views: 555
Posted By step
Re: Date Rule to return Graphic not working

You're comparing strings rather than dates. You should convert them to actual dates:

var birthday = new Date(Field('BIRTH_DATE'));
var cutoff = new Date('08/31/1963');
var file = birthday >...
Forum: Formatting Text June 14th, 2018, 07:13 PM
Replies: 3
Views: 672
Posted By step
Re: Trim all space's

I bet you're variable is actually returning a non-breaking space character ( ) rather than an actual space. Try this:

return RawTextFromTagged(Field("Partner Code")).replace(/\s/g, '');
Forum: The JavaScript Library May 29th, 2018, 06:24 AM
Replies: 11
Views: 1,721
Posted By step
Re: Switching pages with on record start

Because cases have been set for all other scenarios. If none of the cases evaluated to true, then it stands to reason that the only remaining option would be the 72x36 size. Check out this reference...
Forum: The JavaScript Library May 29th, 2018, 06:12 AM
Replies: 2
Views: 620
Posted By step
Re: Parse data to determine page and extract data

You could use the substr (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr) method to parse the values from your string:

// Your field here.
var...
Forum: The JavaScript Library May 23rd, 2018, 07:03 PM
Replies: 11
Views: 1,721
Posted By step
Re: Switching pages with on record start

Yes, I know. But you only have 3 size options. The switch statement determines which size to use. From there, the style is appended to the size to create the page name.


Are you saying that the...
Forum: The JavaScript Library May 23rd, 2018, 06:37 AM
Replies: 11
Views: 1,721
Posted By step
Re: Switching pages with on record start

Both of those variables are set to the same value. Is that intentional?

I don't think that will work. If I'm understanding correctly, Gdellaiera is trying to determine which page to use here based...
Forum: The JavaScript Library April 30th, 2018, 03:21 PM
Replies: 10
Views: 1,694
Posted By step
Re: Variable Width Headings that Group Headshots by Teams

Use span tags?

team.members.push({
team: '<span font="Arial" color="white">' + ToUpper(teamname) + '</span>',
name: Field('Name' + i),
headshot: CreateResource(Field('Headshot' + i),...
Forum: The JavaScript Library April 30th, 2018, 01:53 PM
Replies: 10
Views: 1,694
Posted By step
Re: Variable Width Headings that Group Headshots by Teams

The team names in the 'teams' object need to match (case-sensitive) the team names in your data. So, in this case, you could modify the object definition to be:

var teams = {
'Onsite Team': {...
Forum: FusionPro® VDP Creator April 23rd, 2018, 02:05 PM
Replies: 5
Views: 761
Posted By step
Re: Drop down List with Open Text Choice

var XDF = new ExternalDataFileEx("PostcardContent.txt", "\t");
var s = XDF.GetFieldValue(XDF.FindRecord(0, Field('Header')), 1) || Field('HeaderCustom');
s = ReplaceSubstring(s, "[COMMUNITY NAME]",...
Forum: FusionPro® VDP Creator April 20th, 2018, 02:33 PM
Replies: 5
Views: 761
Posted By step
Re: Drop down List with Open Text Choice

Because your site is sending back the "option" the user selected rather than the value of the option the user selected, I think you'll have to continue referencing the external data file.

That...
Forum: The JavaScript Library April 20th, 2018, 01:24 PM
Replies: 10
Views: 1,694
Posted By step
Re: Variable Width Headings that Group Headshots by Teams

I think you could use a table to achieve that layout. Each team member would be made up of two rows: the first row would be their team name and the second row would be there headshot/name/etc. Then...
Forum: FusionPro® VDP Creator April 17th, 2018, 05:47 AM
Replies: 5
Views: 932
Posted By step
Re: Highlighting Words of a Text Frame

There isn't a way to highlight text in FusionPro.

If you posted your template, some sample data, and an example of what you're trying to achieve, it might be possible to come up with a solution...
Forum: FusionPro® VDP Creator April 10th, 2018, 02:27 PM
Replies: 1
Views: 659
Posted By step
Re: Multiple lines of data on one page.

What version of FusionPro are you using? FusionPro 10 offers a built-in method of handling this scenario. You could look up "FusionPro.GetMultiLineRecords()"

Otherwise, if you could post your...
Forum: The JavaScript Library February 22nd, 2018, 04:48 PM
Replies: 4
Views: 1,169
Posted By step
Re: OnRecordStart Switching Pages

The main issue is that you have multiple if/else statements when you really want to use a switch (https://www.w3schools.com/js/js_switch.asp) statement or a big if/else if/else...
Forum: FusionPro® VDP Creator February 20th, 2018, 04:15 PM
Replies: 2
Views: 879
Posted By step
Re: Positioning image over text

Is the paragraph itself variable? Would making the entire paragraph and the "hand drawn circle" that surrounds it an image suffice? It would be easier to offer a better solution if you could collect...
Forum: Issues, Questions, Etc. January 29th, 2018, 04:52 PM
Replies: 1
Views: 1,090
Posted By step
Re: Output to multiple files - stay unique

You could do it by tracking how many times each account number has been used by adding them to a global object:
JavaScript Globals

var accounts = {};


OnRecordStart

var FP =...
Forum: The JavaScript Library January 17th, 2018, 04:54 PM
Replies: 11
Views: 4,407
Posted By step
Re: Determine if a text frame exists

Try putting your logic in a function (called "validateTextFrames" for example) and then call it from your OnRecordStart callback.

JavaScript file:

function validateTextFrames() {
// Your...
Forum: FusionPro® VDP Creator January 17th, 2018, 10:36 AM
Replies: 19
Views: 3,074
Posted By step
Re: My First Table - help!

No, sorry, I've just been busy. Try this:

var numOfCols = 3;
var data = FusionPro.GetMultiLineRecords();

var table = new FPTable();
table.AddColumns(6000, 7000, 3000);

var header =...
Forum: FusionPro® VDP Creator January 12th, 2018, 07:38 PM
Replies: 19
Views: 3,074
Posted By step
Re: My First Table - help!

I haven't tested this but it seems like it would give you what you're looking for:

var numOfCols = 3;
var data = FusionPro.GetMultiLineRecords();

var table = new FPTable();...
Forum: The JavaScript Library January 10th, 2018, 05:11 PM
Replies: 2
Views: 1,216
Posted By step
Re: Check for character

You could do this:

return Field("Years Attended").replace(/'(\d{2})/g, "'$1")
Forum: FusionPro® VDP Creator December 28th, 2017, 01:46 PM
Replies: 19
Views: 3,074
Posted By step
Re: My First Table - help!

It's done the same way:

for (var i = rec; i <= data.recordCount; i++) {
function ExField(str) { return TaggedTextFromRaw(data.GetFieldValue(i, str)); }
if (ExField('company') && i > rec)...
Forum: FusionPro® VDP Creator December 28th, 2017, 12:22 PM
Replies: 19
Views: 3,074
Posted By step
Re: My First Table - help!

Sure, just add the line in red to the existing code:

var header = table.AddRow();
header.Type = 'Header';
var cell = header.Cells[0];
cell.SetBorders('Thin', 'Black', 'Bottom');
cell.HAlign =...
Forum: FusionPro® VDP Creator December 27th, 2017, 05:26 PM
Replies: 19
Views: 3,074
Posted By step
Re: My First Table - help!

So, there's probably an easier way to do this in FusionPro 10 but here's how I would do it in FusionPro 9 (add the following to an OnRecordStart callback):

var numOfCols = 3;
var data = new...
Forum: FusionPro® VDP Creator December 26th, 2017, 07:13 AM
Replies: 19
Views: 3,074
Posted By step
Re: My First Table - help!

Interesting. Maybe you could post your template with some sample data? I think it would be easier to see what you're dealing with that way because the screenshots you posted are tiny and I have bad...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -7. The time now is 07:19 PM.


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