Search the Community
Showing results for tags 'page'.
-
================ UPDATE: 1/29/2016 Listing as solved and leaving code for future people if they need help. ================ I am working on creating several rules based on the page number of a document. First rule is a barcode for our inserter. We need to include: customer id current page (2-digit) total pages in record (2-digit) check digit So it should look something like: CN61341010300 I am having difficulty calling the page numbers in the empty rules though. Second rule is making it so that the barcode only displays on odd number pages and the first page is a different setup than all the other pages. Page 1 has a special check digit that signifies start of a document. Page 2-N have a different check digit to signify that it continues to pull. How would I call up page numbers in these situations? Will they work in empty rules or do I need a callback?
-
I have a multi-page PDF that will use only one of the pages based on the state the user selects. I've set all of the pages to "Unused" under manage pages, and have created a rule for OnRecordStart. This rule works fine and gives me the results I expect. However, it gives me the error "Function Does Not Return a Value" when I save the rule. It also gives me an error when I compose it, but the composed file IS correct. I'm guessing that my script is missing something. Here's what I have in OnRecordStart: if (Field("State") == "Florida") { FusionPro.Composition.SetBodyPageUsage("MC34310_FL", true); } else if (Field("State") == "New Hampshire") { FusionPro.Composition.SetBodyPageUsage("MC34285_NH", true); } else if (Field("State") == "New York") { FusionPro.Composition.SetBodyPageUsage("MC34467_NY", true); } else if (Field("State") == "Texas") { FusionPro.Composition.SetBodyPageUsage("MC34700_TX_1210", true); } else { FusionPro.Composition.SetBodyPageUsage("MC34188", true); }
- 5 replies
-
- javascript
- multi
-
(and 3 more)
Tagged with: