Jump to content

tou

Registered Users - Approved
  • Posts

    112
  • Joined

Posts posted by tou

  1. I've modified the following and seems to work.....looks like nesting the filename values into the OpenNewOutputFile() function within OnRecordStart must have a lapsed error or system variable for the file part number not transferring right away.....:mad:

     

    OnRecordStart:

    if (FieldChanged("Order_Number")) {

    FusionPro.Composition.StartNewStack()

    FusionPro.Composition.OpenNewOutputFile()

    }

     

    OnNewOutputFile:

    FusionPro.Composition.OpenNewOutputFile(Field("Product_Desc") + "_" + Field("Order_Number") + "_" + FormatNumber("0000", FusionPro.Composition.currentOutputFileNumber) +"."+ FusionPro.Composition.outputFormatExtension);

     

    I've tested the above with both checking and not checking the "output to multiple files" and was successful. It was still able to split correctly if I have a quantity less than the split amount (for example, split amount is 100, but only 25 exist in some of these chunks - the OnRecordStart rule that has FieldChange() will honor to the next chunk of 100 records if it has it).

     

    I think we're good now. Just had to poke around with it.

     

    Thanks!

  2. I current working on splitting a file out in OnRecordStart callback rule and was wondering why the FusionPro.Composition.currentOutputFileNumber value doesn't actually jump correctly the first time up. In output settings, I'm processing the entire range.

     

    I've set the following in OnJobStart:

    .........codeStart............

    FusionPro.Composition.chunksBreakStacks = true;

    .........codeEnd............

     

    I've set the following in OnRecordStart:

    .........codeStart............

    if (FieldChanged("Order_Number")) {

    FusionPro.Composition.StartNewStack()

    FusionPro.Composition.OpenNewOutputFile(Field("Product_Desc") + "_" + Field("Order_Number") + "_" + FormatNumber("0000", FusionPro.Composition.currentOutputFileNumber) + "."+ FusionPro.Composition.outputFormatExtension);

    }

    .........codeEnd............

     

    Attached is a snapshot of my PDF files....note the **0001.pdf in the first two filenames.

     

    I'm sorry in advance if this issue has been resolved in other posts.

     

    Thanks in advance.

    filenamepartsseq.png.4190468aa83ef1e97879ed5e36b0f379.png

  3. create a rule (YOUR RULE NAME) and use the following code. If you sequence number is 10,000 it'll set it to 10,000 due to 0 remainder......

     

    var setA = 10000

    var a = FusionPro.Composition.inputRecordNumber%setA

     

    if (a==0)

    a = setA

     

    return a

  4. order of operation says that the bottom pieces are overlapping the top? so it honors the gutter closure but doesn't crop the images there?

     

    interesting...maybe do the n-up in inDesign?

     

    what you can do is use a white box to cover the top of the artwork to the crop marks and see if that will solve the issue.

  5. this should work....create a name rule, then insert into text editor...(hopefully all firstname fields are populated)

     

    if (trim(field("yourLastNameField"))=="")

    return ""

    else

    return field("yourFirstNameField")+" "+field("yourLastNameField")

  6. You can setup both scenario naming the pages "Inova 1" and "Inova 2" respectively.

     

    In OnRecordStart rule, set page usage accordingly.

     

    Scripting can be done as follows:

     

    if (2 LINE CRITERIA IS TRUE) {

    FusionPro.Composition.SetBodyPageUsage("Inova 2", true);

    FusionPro.Composition.SetBodyPageUsage("Inova 1", false);

    } else {

    FusionPro.Composition.SetBodyPageUsage("Inova 1", true);

    FusionPro.Composition.SetBodyPageUsage("Inova 2", false);

     

    I'm sure there are better ways of doing it....

  7. I tested the following and it works, but not dynamic like step's...

     

    var string1 = "Something"

    var string2 = ""

    //var string2 = "Something2"

    var string3 = ""

    //var string3 = "Something3"

     

    var token = 0

     

    if (Trim(string1)!="") {

    token = token+1

    }

     

    if (Trim(string2)!="") {

    token = token+1

    }

     

    if (Trim(string3)!="") {

    token = token+1

    }

     

    var parser1 = ""

    var parser2 = ""

     

    if (token==2) {

    parser1 = " and "

    parser2 = ""

    }

     

    if (token==3) {

    parser1 = ", "

    parser2 = " and "

    }

     

    return string1+parser1+string2+parser2+string3

  8. without too much programming....you can try the following in the text editor...but it looks like it's a little more complicated than that....

     

    something like this would work.....

     

    var token = 0

    var parser1 = ""

    var parser2 = ""

     

    if (Len(Trim(Field("Video_Level")))>0) {

    token = token+1

    }

     

    if (Len(Trim(Field("Data_Level")))>0) {

    token = token+1

    }

     

    if (Len(Trim(Field("Phone_Level")))>0) {

    token = token+1

    }

     

    if (token=2) {

    parser1 = " and "

    }

     

    if (token=3) {

    parser1 = ", "

    parser2 = " and "

    }

     

    return Field("Video_Level)+parser1+Field("Data_Level")+parser2+field("Movie_Level")

    2016-04-0615_35_27-ParagraphFormatting.png.e37d7aba7cb2689c0498be444d672f8e.png

  9. I don't know if it will work, but you can try a replacing the string with the following:

     

    var a = Field("YOURFIELD")

     

    a = a.replace("®","<superscript>®</superscript>")

     

    ** make sure you have "treat return string as tagged text"

     

    It appears that font plays a role too...so maybe you can switch the font? Calibri has a very nice default height...

    TESTREGISTERTRADEMARK....png.8b771a38a12b485088925a678155091a.png

  10. Maybe index unique outside of FusionPro creating a proof data set, then feeding that into FusionPro.

     

    In excel there's a de-dupe option on data tab, so if there's a field indicating the version, select just the version field and de-dupe will return you one of each version - remember to save it as a new filename and not overwrite the original.

  11. We have BCC, which can use a function called "nearestLocation" comparing recipient's address to a listing of address (healthcare in your case), and can return x number (you specify) of nearest locations in distance. I'm not familiar with Satori, but I assume they might have a similar tool/process to achieve it.

     

    I'm sorry I couldn't be of an assistance on this.

     

    Thanks.

×
×
  • Create New...