Forum: The JavaScript Library
April 21st, 2022, 05:21 PM
|
Replies: 5
Views: 774
Re: Issue with blank or no selection
Whoops I forgot to get the record from the external data field. Try this:
var externalDF = new ExternalDataFileEx("Competitor-ExDF.xlsx", "Excel");
var unique = function (value, index, self) {
...
|
Forum: The JavaScript Library
April 21st, 2022, 03:07 PM
|
Replies: 5
Views: 774
Re: Issue with blank or no selection
Would this work?
var externalDF = new ExternalDataFileEx("Competitor-ExDF.xlsx", "Excel");
var unique = function (value, index, self) {
return value ? self.indexOf(value) === index : false;...
|
Forum: FusionPro® VDP Server (API)
February 20th, 2019, 05:33 AM
|
Replies: 1
Views: 12,607
FP Server concurrent usages
Is the maximum number of concurrent usages of FusionPro 10 Server something that is tied to your license or is it a configuration that can be adjusted? I vaguely recall it being a configuration in...
|
Forum: Issues, Questions, Etc.
August 15th, 2018, 03:43 PM
|
Replies: 5
Views: 13,319
|
Forum: Dates
August 10th, 2018, 07:24 AM
|
Replies: 1
Views: 15,205
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, 06:13 PM
|
Replies: 3
Views: 9,670
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, 05:24 AM
|
Replies: 11
Views: 44,120
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, 05:12 AM
|
Replies: 2
Views: 11,984
|
Forum: The JavaScript Library
May 23rd, 2018, 06:03 PM
|
Replies: 11
Views: 44,120
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, 05:37 AM
|
Replies: 11
Views: 44,120
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, 02:21 PM
|
Replies: 10
Views: 30,259
|
Forum: The JavaScript Library
April 30th, 2018, 12:53 PM
|
Replies: 10
Views: 30,259
|
Forum: FusionPro® VDP Creator
April 23rd, 2018, 01:05 PM
|
Replies: 5
Views: 11,618
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, 01:33 PM
|
Replies: 5
Views: 11,618
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, 12:24 PM
|
Replies: 10
Views: 30,259
|
Forum: FusionPro® VDP Creator
April 17th, 2018, 04:47 AM
|
Replies: 5
Views: 17,855
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, 01:27 PM
|
Replies: 1
Views: 7,539
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, 03:48 PM
|
Replies: 4
Views: 10,724
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, 03:15 PM
|
Replies: 2
Views: 11,129
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, 03:52 PM
|
Replies: 1
Views: 9,526
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, 03:54 PM
|
Replies: 11
Views: 26,847
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, 09:36 AM
|
Replies: 19
Views: 37,958
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, 06:38 PM
|
Replies: 19
Views: 37,958
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, 04:11 PM
|
Replies: 2
Views: 16,675
|
Forum: FusionPro® VDP Creator
December 28th, 2017, 12:46 PM
|
Replies: 19
Views: 37,958
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)...
|