Jump to content

ryanceot

Registered Users - Approved
  • Posts

    9
  • Joined

Converted

  • FusionPro Products
    Yes

Converted

  • FusionPro VDP software version
    10.1.11

Converted

  • OS
    7

Converted

  • Acrobat Version
    Acrobat DC

ryanceot's Achievements

Rookie

Rookie (2/14)

  • First Post Rare
  • Week One Done
  • One Month Later
  • One Year In
  • Conversation Starter Rare

Recent Badges

10

Reputation

  1. Hi Thomas, Thank you for the response. I'm not sure my question is clear. I need FusionPro to look at a field that will contain multiple characters in random order. Then tell FusisionPro to show content when a field contains a specific character regardless of where it is in the string. Example: If field "PTO" contains "A" display "Lakeland, FL". Strings in PTO could be "124Abd3", "A3429", or just simply "A". Thanks, Ryan
  2. Thomas and Dan, thank you for your help and quick responses!
  3. I'm given fields with multiple characters where each character is used to "turn on" content within a rule. The order of the characters is random. How do I write a rule to tell FusionPro to look for a certain character within a string, ignore all other characters, and the order of the characters? Example: Field Name = Optional Field String 1 = AXYD Field String 2 = DYXA If X is in string show content 1. If Y is in string show content 4. I'm already using rules that show content based on an exact string match and am looking for the flexibility to show content based on contains vs. an exact match. Thank you for any assistance you can provide! -Ryan
  4. Is there a way to have Fusion Pro name the document with only the first letter of the first name? I've tried using FusionPro.Composition.outputFileName = Field("KEY1") + substr(Field("PFNAME"),1,1) + Field("PCIFID") + Field("PDDATE") + ".pdf"; but get a substr is not defined error.
  5. Thank you Dan! Just realized I never posted a thank you. With all the work done on the dates, I think I'll leave as is for now, but I'm interested to know the shortcut.
  6. Here's the .zip file. I've deleted some assets to make the .zip smaller and deleted other sensitive info. Some art or merge fields might not appear correctly. Thank you for taking a look at it. -Ryan RC22.zip
  7. I am trying to activate unused pages using if ((Field("DATE01") != "")) { FusionPro.Composition.SetBodyPageUsage("Itinerary",true); } The presence of data in DATE01 is what I'd like to trigger the page to appear. What the data is irrelevant. I've tried using "!=" and "==". Any help is appreciated. Thanks! -Ryan
  8. Hi Dan, I'm in a similar situation (not zip code specific but leading zeros specific) but using external data. I have the current code, which is pulling the rec field instead of the "DITKT#" or "DDTKT#" fields. Any help is appreciated. Thanks, Ryan //Calling data from an external data file var ex = new ExternalDataFileEx('ppfinalfltb.csv', ','); var cursor = ex.SortBy('KEY1'); var rec = cursor.FindRecords(Field('KEY1')); if (((ex.GetFieldValue(rec, 'RDAT01') !='') && ex.GetFieldValue(rec,'DITKT#') != '') && (ex.GetFieldValue(rec,'DDTKT#') != '')) { return ex.GetFieldValue (rec, FormatNumber('0000000000000', Trim('DDTKT#'))) + ', ' + ex.GetFieldValue (rec, FormatNumber('0000000000000', Trim('DITKT#'))); } if ((ex.GetFieldValue(rec,'RDAT01') !='') && (ex.GetFieldValue(rec,'DITKT#') != '')) { return ex.GetFieldValue (rec, FormatNumber('0000000000000', Trim('DDTKT#'))); } if (ex.GetFieldValue(rec,'GROUND') !='') { return RawText('Our records indicate that have elected to make your own flight arrangements. Therefore, we do not have your ticket number(s) on file.'); } return '';
  9. I'm using the following code and receive an "Uncaught Exception: TypeError: GetFieldValue requires more than 1 argument. Any help would be greatly appreciated. --- //Calling data from an external data file var ex = new ExternalDataFileEx('ppfinalfltb.csv', ','); var cursor = ex.SortBy('KEY1'); var rec = cursor.FindRecords(Field('KEY1')); if (((ex.GetFieldValue('RDAT01') !='') && ex.GetFieldValue('DITKT#') != '') && (ex.GetFieldValue('DDTKT#') != '')) { return ex.GetFieldValue('DITKT#') + ', ' + ExField('DDTKT#'); } if ((ex.GetFieldValue('RDAT01') !='') && (ex.GetFieldValue('DITKT#') != '')) { return ex.GetFieldValue('DITKT#'); } if (ex.GetFieldValue('GROUND') !='') { return RawText('Our records indicate that have elected to make your own flight arrangements. Therefore, we do not have your ticket number(s) on file.'); } return '';
×
×
  • Create New...