Jump to content

dwhetzel

Registered Users - Approved
  • Posts

    8
  • Joined

About dwhetzel

  • Birthday 02/03/1958

Converted

  • Location
    Maryland

Converted

  • Occupation
    Manager of Technical Operations

Converted

  • FusionPro Products
    Yes

Converted

  • FusionPro VDP software version
    12.0.2

Converted

  • Acrobat Version
    Acrobat DC
  • Homepage
    http://www.digilink-inc.com

dwhetzel'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 Gregg, Thanks for your quick input. The explanation was spot on and I was able to find what I needed in this great community. It's really simple once I grasped the concept.
  2. Hi All, I am looking for some ideas and help on how to print data from multiple rows on one page of a two page letter. There is a unique field for each name in the data "account id". There is no set number of rows for each id. One in the full data has 30 rows. I attached a sample of the data and a two page pdf that shows how the data fields need to be laid out. The back page is what has me stumped. I need to get the "close date" and the "amount" for each row that has the same "account id" to be placed on the back page of the doc. I tried searching the forum but not sure what to even search for. I assume I will need to use some kind of table and an array. I am totally ignorant of both I have just dabbled some in JavaScript by reading this forum for ideas and direction. If anyone can point me in the right direction on where to start on this it would be greatly appreciated. TestData.zip VariableLayout.pdf
  3. Thanks Dan! That line worked like a charm of course you already knew that. I will work on incorporating your reduced code into my rule instead. Have a great weekend!
  4. Spent the better part of the day trying to figure this out. Searched and searched the forums still stumped. If I comment out the line with "toTitleCase" in it validation passes and it works fine. I've tried all kinds of variations on the name to no avail. Error when validating scrpt... In an OnRecordStart rule. TypeError:Field("RegTypeB").toTitleCase is not a function Thanks so much for any help with this it's driving me crazy. (short drive that it is) if (Field("RegTypeB") == "Government for the people") { // statements to perform if // expression is true FusionPro.Composition.AddVariable("RegTypeB", Field("RegTypeB").toUpperCase()); FusionPro.Composition.AddVariable("RegTypeB", Field("RegTypeB").toLowerCase()); FusionPro.Composition.AddVariable("RegTypeB", Field("RegTypeB").toTitleCase()); var botBar = FindTextFrame("botBar"); botBar.suppress = false; } else if (Field("RegTypeB") == "Sponsor") { // statements to perform if // expression is true FusionPro.Composition.AddVariable("RegTypeB", Field("RegTypeB").toUpperCase()); var botBar = FindTextFrame("botBar"); botBar.suppress = false; } else if (Field("RegTypeB") == "Staff") { // statements to perform if // expression is true FusionPro.Composition.AddVariable("RegTypeB", Field("RegTypeB").toUpperCase()); var botBar = FindTextFrame("botBar"); botBar.suppress = false; } else if (Field("RegTypeB") == "Press") { // statements to perform if // expression is true FusionPro.Composition.AddVariable("RegTypeB", Field("RegTypeB").toUpperCase()); var botBar = FindTextFrame("botBar"); botBar.suppress = false; } else if (Field("RegTypeB") == "Industry") { // statements to perform if // expression is true FusionPro.Composition.AddVariable("RegTypeB", Field("RegTypeB").toUpperCase()); var botBar = FindTextFrame("botBar"); botBar.suppress = true; } else { // statements to perform if // none of the above expressions is true FusionPro.Composition.AddVariable("RegTypeB", Field("RegTypeB").toUpperCase()); var botBar = FindTextFrame("botBar"); botBar.suppress = true; }
  5. Dan, Thanks for your fast reply. Per another post of yours I had tried that. Just tried again and still wont work. I even tried it with taggedtext=true and false. I tried to find the same senario in one of the included templates but did not find any. I guess I will just have to teach the operators to convert to JS and fix it there.
  6. Trying to make an XML template that puts two fields together with a space in between. Here is the code below I get the two fields combined but I lose the space between. I have tried every thing I could find to get this to work. If I convert to JavaScript in the rule builder I see the space is gone. I can type it back in in the script and it works. Can anyone point me in the right direction to fix this? TIA <?xml version="1.0" encoding="ISO-8859-1" ?> <template_rule name="1_Combine Text with space Rule" version="1.0" taggedtext="false" type="text"> <rulename language="en-US">Combine Text with space</rulename> <Comment language="en-US">Use this to combine two fields with a space between</Comment> <Description language="en-US">Choose 2 fields to combine.</Description> <fieldlist> <field type="FIELDLIST" required="true"> <fieldname>Var1</fieldname> <prompt language="en-US">Left field to combine</prompt> <value></value> </field> <field type="FIELDLIST"> <fieldname>Var2</fieldname> <prompt language="en-US">Right field to combine</prompt> <value></value> </field> </fieldlist> <code> var fullName = Field(Var1) + " " + Field(Var2); return fullName; </code> </template_rule>
×
×
  • Create New...