Jump to content

iprint2

Registered Users - Approved
  • Posts

    32
  • Joined

Posts posted by iprint2

  1. We have our first client requesting SSO service. Unfortunately we have no one our team with experience handling this request. We are looking for additional information on this forum for guidance on how this is implemented and what questions needs to be asked of our client so we can sound "somewhat" informed. We have received the SSO documentation from Marcom support but it is all a little foreign to us....

    Thanks for the help!

  2. I am trying to load a font Poppins for a client to run Variable Ask offers. The font loads in InDesign and will not load in FusionPro. I have tried putting the font in my system font folder, loading it in font book and no success. Anyone else have this issue.

     

     

    Thanks

  3. Below is the rule that I am working with

     

     

    if (FormatDate(Field("BIRTH_DATE"),"mm/dd/yyyy") > FormatDate("08/31/1963","mm/dd/yyyy"))

    {

    return Resource("Entertainment TL_Sept.jpg");

    }

    else

    {

    return Resource("Better with Age Day_new TL_Sept.jpg");

    }

     

     

    My problem is that I have the date of 10/08/1942 and it is returning the Entertainment graphic rather than the Better with Age Day and I have a 05/15/1976 that is doing the opposite. Other dates are working fine. Any idea what I am doing wrong?

  4. Text List Libaries Is there a way to create a hard return in a text list in the library (MarcomCentral)?

    I need this title to break this way in my Library(MarcomCentral).

     

     

    Vice President, Employee Experience/

    Human Resources

     

     

    Any suggestions?

    Thanks

    Gretchen

    __________________

    iPrint

    Fusion Pro VDP Creator 9.3.22

    Acrobat 11.0.10 and DC

    Mac OS 10.10

  5. Hi Dan

    We tried it again using your rule and have noticed that when processing records that are each 10 pages (5 duplex sheets printed) in length;

    The impositionSheetNumber gives us "01" for the first record (all 10 sheets read the same - 01) and then "06" for the next record and "11" for the next....

    The impositionTotalSheets gives us a "00" for all records and sheets.

  6. Thanks Dan, this is helping. We are making progress. This is what we currently have working. However, the currentPageNumber is not working how we would like. We need the code to do sheet count and not page count - for example;

    Pages 1-2 = 1

    Pages 3-4 = 2

    Pages 4-5 = 3

    etc...

    Current programming:

    var dataforbarcode = FormatNumber("00", FusionPro.Composition.currentPageNumber) + FormatNumber("00", FusionPro.Composition.totalPages/2) + "00000" + Field('SEQUENCE');

    var dmbarcodeobj = new DataMatrixBarcode;

    dmbarcodeobj.encodingmode = "C40";

    dmbarcodeobj.pointSize = 6;

    return dmbarcodeobj.Make(dataforbarcode);

  7. I am in need of generating a 2D barcode using 15 digits.

     

    01 – Digit 1 and 2 – these are the sheet count of the current sheet for the record

    04 – Digits 3 and 4 – this is the total sheet count for the record

    Digits 5-9- we won’t use for now so they all need to be “0” (6 and 7 are the ones we can program to tell it if a certain record gets an additional insert)

    Digits 10-15 we can use for the 6 digit Sequence Code

     

    Example

    030500000025066

    This is sheet 3 of a 4 sheet set with Seq number of 025066

     

    Can someone help with setting up code for this?

  8. This is what I need it to look like.

    It’s my pleasure to provide you with the enclosed annual endowment report(s) for the <Designation 1>.

     

    It’s my pleasure to provide you with the enclosed annual endowment report(s) for the <Designation 1> and the <Designation 2>.

     

    It’s my pleasure to provide you with the enclosed annual endowment report(s) for the <Designation 1>, <Designation 2> and the <Designation 3>.

     

    It’s my pleasure to provide you with the enclosed annual endowment report(s) for the <Designation 1>, <Designation 2>, <Designation 3> and the <Designation 4>.

     

    This is what I have but it is not returning like the above.

     

    if (Field("Designation 1") != "")

    {

    return "<span>" + TaggedDataField("Designation 1") + RawText(" and the ") + TaggedDataField("Designation 2") + RawText(".") + "</span>";

    }

     

     

    if (Field("Designation 1") && Field("Designation 2") && Field("Designation 3") != "")

    {

    return "<span>" + TaggedDataField("Designation 1") + RawText(", ") + TaggedDataField("Designation 2 ") + RawText("and the") + TaggedDataField("Designation 3") + RawText(".") + "</span>";

    }

     

     

    if (Field("Designation 1") && Field("Designation 2") && Field("Designation 3") && Field("Designation 4") != "")

     

    {

    return "<span>" + TaggedDataField("Designation 1") + RawText(", ") + TaggedDataField("Designation 2") + RawText(", ") + TaggedDataField("Designation 3") + RawText(" and the ") + TaggedDataField("Designation 4") + RawText(".") + "</span>";

    }

    else

    {

    return "<span>" + TaggedDataField("Designation 1") + RawText(".") + "</span>";

    }

  9. I am needing to use a 2D barcode. My problem is that in the first line of code the “02” I need to be the page count with a zero before it. This page count is variable per record. Any idea how to make that happen. I tried to put the page count rule in there, but it didn’t seem to work.

     

    var dataforbarcode = “02" + Field('SEQUENCE');

    var dmbarcodeobj = new DataMatrixBarcode;

    dmbarcodeobj.encodingmode = "C40";

    dmbarcodeobj.pointSize = 4;

    return dmbarcodeobj.Make(dataforbarcode);

  10. I need to have a minimum of 5 numbers in a field if 5 are not entered I need it to automatically fill with leading zeros. How can I make this happen. I was trying to use this to create an error alert, but it is not working either.

     

    <script type="text/javascript">

     

    //This needs to match the <input id= of the field that the url is entered in.

    var EmployeeNumber = "EmployeeNumber";

     

     

    document.getElementById(EmployeeNumber).onblur = alert_box;EmployeeNumber

     

    function alert_box()

    {

    var EmployeeNumber= /^\(?([0-9]{5})\)$/;

     

    if(!this.value.match(EmployeeNumber))

    {

    alert("This is not a valid number.Must be 5 digits. Use leading zeros if necessary. Example: 00001”);

    this.value = "";

    }

    }

     

    </script>

  11. Ah i see how that works.

     

    Have you ever considered, teaching java? You seem to have a Damn good handle on it, and both times you've helped you've also explained how its working in an understandable way. Not something i see a lot dealing with coding stuff. I bet you could make some money on a site like udemy.

    I know id take that course. :)

     

    Anyway, thanks a ton for the help again!

  12. Man sorry i didnt even consider the Graphics, The whole job should be attached now, at least everything needed for this. Also a pdf of what im able to get, and what i want to get.

     

     

    Are you wanting to add a specific PDF before every blank that may be needed (PDF, blank, PDF, blank, etc) or are you trying to add a specific PDF before the blanks start (PDF, blank, blank, blank, etc). Sample output would be very helpful. If it's the former, you could probably do this:

     

     

    what i would need is the second option.

    PDF before the blanks start (PDF, blank, blank, blank, etc)

     

    I have one pdf (closing letter_ps.pdf in the attached zip folder.) that will need to be placed before the template outputs blanks to the remaining graphic frames.

     

    
    var field = eval(frameName);
    return (field) ? Resource(pdfMap[field]) : [color=Red]Resource("Closing Letter_PS")[/color];
    
    

     

    If I make the change in red to the code i already posted, i get the pdf i attaced "this is what im getting"

    What i would like is for the the closing letter ps, to go in, and then have the rest be blank.

     

    Im not sure if this is any clearer, let me know if you have more questions.

     

    Thanks

    Htel Test.zip

    Should look like this.pdf

    This is what im getting.pdf

  13. Hey Everyone,

     

    I have an image rule I've been using for about a year that works great.

    Now i need to adjust it so that it does something slightly different.

     

     

    Basically this is what ive got now

     

    var frameName = FusionPro.Composition.CurrentFlow.name;
    
    var [p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16,p17,p18] = 
       [Field("P1"),Field("P2"),Field("P3"),Field("P4"),Field("P5"),Field("P6"),Field("P7"),Field("P8"),
       Field("P9"),Field("P10"),Field("P11"),Field("P12"),Field("P13"),Field("P14"),Field("P15"),Field("P16"),Field("P17"),Field("PROTOCOL")].filter(String);
    
    var pdfMap = {
       "1": "Heart disease1.pdf",
       "2": "Heart failure2.pdf",
       "3": "Breathing3.pdf",
       "4": "Kidney4.pdf",
       "5": "Diabetes5.pdf",
       "6": "Depression6.pdf",
       "7": "7_Other Health Conditions.pdf",
       "8": "8_No Health Conditions Listed.pdf",
       "9": "************9.pdf",
       "10": "Multiple medications10.pdf",
       "11": "Falls11.pdf",
       "12": "Cane12.pdf",
       "13": "Caregiver13.pdf",
       "14": "Calling14.pdf",
       "15": "Overnight15.pdf",
       "16": "Memory loss16.pdf",
       "17": "17_Confidence in Filling Out Med Forms.pdf", 
       "201": "Closing letter18.pdf",
       "701": "Closing letter18.pdf",
       "702": "Closing letter18.pdf",
       "703": "Closing letter18.pdf",
    
       }
    
    var field = eval(frameName);
    return (field) ? Resource(pdfMap[field]) : NullResource();
    
    

     

    What is does is add a bunch of graphics, and then when there isnt anymore "active" fields, it returns a blank.

     

    What i need now it that is does the same thing, but i need it to add a particular pdf before the blank, for every record.

     

    Ive included a zip with the test file im working with.

     

    Any thoughts

    Jason

    Htel Test.zip

  14. If you've imported all of your PDFs as resources your return line needs to look like this:

    return (field) ? Resource(pdfMap[field]) : NullResource();
    

    If you want to add the resources on the fly:

    return (field) ? CreateResource(pdfMap[field], 'graphic') : NullResource();
    

     

    Ok, So i uploaded a new batch of files in case anyone else wants to try.

     

    Also I tried changing the return line to Resource, i also tried to just insert the resource using the building block tool only did it for resource 1). Im still just getting a return value of Resource("<None>") when i validate it. So im guessing its missing something that needs to stop it from getting to nullresource.

     

    This is what i have now

     

    var frame = FusionPro.Composition.CurrentFlow.name;
    
    
    var [f1,f2,f3] = [Field("P1"),Field("P2"),Field("P3"),Field("PROTOCOL")].filter(String);
    
    var pdfMap = {
       "1": Resource("Heart disease1.pdf"),
       "2": "Heart failure2.pdf",
       "3": "Breathing3.pdf",
       "4": "Kidney4.pdf",
       "704":"Closing letter15.pdf",
       "712": "ClosingLetter16"
    }
    
    var field = eval(frame);
    
    return (field) ? Resource(pdfMap[frame]) : NullResource();
    

    healthtel java code.zip

×
×
  • Create New...