2018.1

1 2 3 4 5 6 7 8 9 10
Table Of Contents
User Guide
Version:2018.1

Summary of content (1368 pages)

'; $('#cameras').

  • PAGE 511

    Event Description clear.cotg Removes the scanned Barcode data. scan.cotg Opens the scanner. The Barcode Scanner broadcasts the following events. Event Description set.cotg This event is fired after Barcode data has been set to the value of the input. Camera cotgPhotoWidget([options]) options Optional. An array containing the desired settings, e.g. {quality: 50, height: 1024, width: 1024}. For any unspecified options the default settings will be used.

  • PAGE 512

    Option Description Type Default height The maximum height in pixels Number 864 width The maximum width in pixels. Number 1152 source Which buttons are enabled: Take now (take), Library (pick), or both (takeandpick). String 'takeandpick' scaleimage Scales the image to fit the maximum width or height. The aspect ration is maintained. Boolean true quality Quality of the saved image, expressed as a range of 0-100, where 100 is full resolution with no loss from file compression.

  • PAGE 513

    Option Description Type Default stampFontSize The time stamp's font size: small, medium, or large. String 'medium' Events The Camera listens for the following custom events. Event Description clear.cotg Removes the picture. savestate.cotg Saves the path of the current picture to the local storage of the COTG app. restorestate.cotg Restores the state of the widget when the form is reopened in the COTG app, after the app has restored previously entered values of static input fields.

  • PAGE 514

    Events The Date and Formatted Date elements listen for the following custom events. Event Description clear.cotg Removes the date. set.cotg Sets the given date. The date should be given as a Date object, for example: $("#date").trigger("set.cotg", new Date()); // set current date show-datepicker.cotg Opens the Date picker. Optionally, you can provide a date (as a Date object) for the Date picker to be opened with, for example: $('#date1').trigger("show-date-picker.

  • PAGE 515

    Event Description set.cotg This event is fired during initialization of the element, after setting its info to the current device. Document ID cotgDocumentId() Initializing a new Document ID puts the current Document ID in the hidden input of the element. Example: $('#myDocID').cotgDocumentId(); Events The Document ID element listens for the following event. Event Description clear.cotg Removes the Document ID. The Document ID element broadcasts the following event. Event Description set.

  • PAGE 516

    (){ $(this).closest('tr').cotgDeleteRow(); }); Geolocation cotgGeolocation([options]) options Optional. An array containing the desired settings, e.g. {enableHighAccuracy: true, timeout: 3000}. For any unspecified options the default settings will be used. Call cotgGeolocation([options]) on the new Geolocation element with any settings that you want to be different from the defaults. Example: $('#myGeolocation').

  • PAGE 517

    Event Description clear.cotg Removes the Geolocation data. restorestate.cotg Restores the state of the widget when the form is reopened in the COTG app, after the app has restored previously entered values of static input fields. update.cotg Sets the element to the current geolocation. Image & Annotation cotgNoteOnImage() Initializing a new Image & Annotation element prepares it for user interaction. Example: $('#myNoteOnImage').

  • PAGE 518

    Event Description savestate.cotg Saves the annotations. The Image & Annotation element broadcasts the following events. Event Description set.cotg Fired after an annotation has been made. Locale cotgLocale() Initializing a new Locale element sets it to the device's locale. Example: $('#myLocale').cotgLocale(); Events The Locale element listens for the following event. Event Description clear.cotg Removes the Locale data. The Locale element broadcasts the following event.

  • PAGE 519

    Repository ID cotgRepositoryId() Initializing a new Repository ID puts the current Repository ID in the hidden input of this element. The Repository ID is based on the currently logged on COTG user. Example: $('#myRepID').cotgRepositoryId(); Events The Repository ID element listens for the following custom events. Event Description clear.cotg Removes the Repositiory ID data. The Repository ID element broadcasts the following event. Event Description set.

  • PAGE 520

    Field Description draw.cotg Draws the signature on the form (e.g. after a set.cotg or restore-state.cotg event). restorestate.cotg Called when the form is reopened in the COTG app, after the app has restored previously entered values of static input fields. savestate.cotg Saves the signature data to the local storage of the COTG app. set.cotg Sets the given signature. The signature should be given as an SVG string, for example: $(“#signature”).trigger(“set.

  • PAGE 521

    Events The Time and Formatted Time elements listen for the following custom events. Event Description set.cotg Stores the given time (specified in a Date object). clear.cotg Removes the set time. show-timepicker.cotg Opens the Time Picker. If no time is provided (specified in a Date object), the current time will be shown. User Account cotgUserAccount() Initializing a new User Account element puts the account of the current user in the hidden input of this element. Example: $('#myUser').

  • PAGE 522

    Content elements Once you have created template, it can be filled with all kinds of elements, from text to barcodes and from tables to fields on a web form. All types of elements are listed on this page. There are several ways to insert elements, see "Inserting an element" on page 525. Each element can have an ID and a class, as well as a number of other properties, depending on the element's type.

  • PAGE 523

    selector; see "Using the Text Script Wizard" on page 671 and "Styling and formatting" on page 614. l "Hyperlink and mailto link" on page 598 l "Barcode" on page 528 l Web "Forms" on page 590 and Web "Form Elements" on page 594 l l l "Whitespace elements: using optional space at the end of the last page" on page 398 (Print context only) "Page numbers " on page 399 (Print context only) Article, Section, Header, Footer, Nav and Aside are HTML5 semantic elements; see http://www.w3schools.

  • PAGE 524

    l In the workspace, toggle to the Source tab. On this tab you can view and edit the content of the template in the form of plain text with HTML tags (note the angle brackets: <>). You may add and edit the text and the HTML tags, classes, ID’s and other attributes. To learn more about HTML, see for example https://developer.mozilla.org/enUS/docs/Web/Guide/HTML/Introduction and http://www.w3schools.com/html/default.asp.

  • PAGE 525

    Changing attributes via script Many attributes can be changed via the user interface. Another way to change attributes is by using a script. Any of the Script Wizards can produce a script that changes an attribute of an HTML element. Set the Options in the Script Wizard to Attribute, to output the script's results to the value of a specific attribute. See "Using the Text Script Wizard" on page 671.

  • PAGE 526

    * If the current element is located inside another element, use the Elements drop-down to select which element is used for the insertion location. The list displays every element in the breadcrumbs, from the current selection point down to the root of the body. For a list of links to the different types of elements, see "Element types" on page 522.

  • PAGE 527

    Deleting an element To delete an element, select it - as described above - and press the Delete key. If the deleted element was targeted by a script, you will be asked if you want to delete the script as well. Scripts are used to personalize templates. To start learning more about scripts, see "Personalizing Content" on page 656 and "Writing your own scripts" on page 689.

  • PAGE 528

    Barcode In PlanetPress Connect Designer, you can add a variety of barcodes to your template. The supported Barcode types include 1d barcodes (the striped ones) and 2d barcodes (encoded horizontally and vertically). Adding a Barcode Note When generating Print output, you can add extra barcodes and OMR marks. The reason why you would do this, is that at merge time more information is available about the actual output document. The page count, for example, is not available at design time.

  • PAGE 529

    l l l After start tag inserts it within the current HTML element, at the beginning, just after the start tag.* Before end tag inserts it within the current HTML element, at the end, just before the end tag.* After element inserts it after the element in which the cursor is currently located. For example if the cursor is within a paragraph, the insertion point will be after the end tag of the paragraph (

    ).

  • PAGE 530

    Changing a barcode Barcode script The barcode script determines which value is fed to the barcode generator. Double-click the script on the Scripts pane to change which field or fields are added to the barcode value. When you select more than one field, the script puts the values of the selected fields in one string and passes that to the barcode generator. Tip If you don't know which script matches the barcode, click the box that contains the barcode and check the ID of that box on the Attributes pane.

  • PAGE 531

    l "Codabar" on page 534 l "MSI" on page 557 l "IMPB" on page 551 l "Postnet" on page 562 l "QR Code" on page 563 l "Data Matrix" on page 542 l "Royal Mail Mailmark" on page 567 l "PDF417" on page 560 l "Aztec Code" on the facing page l "MaxiCode" on page 556 OneCode, KIX Code, Royal Mail, Australia Post OneCode, KIX Code, Royal Mail and Australia Post are some of the types of barcodes that can be added to a template; see "Barcode" on page 528.

  • PAGE 532

    Scale Defines if and how the rendered barcode is scaled in relation to the parent element: l None: The barcode is rendered based on the module width. l Fit to box: The barcode is stretched to fit the parent box in both width and height. l Proportionally: The barcode is stretched up to where it fits either the width or height of the parent box, whichever requires the less stretching.

  • PAGE 533

    Module size Enter the size of the square modules in pixels Configuration type Use the drop-down to select the format type used when creating the barcode: only full range format, only compact formats, or any format. Preferred configuration Use the drop-down to select the preferred format for the barcode. Note that the barcode generator may choose a different format if the data cannot be represented by the preferred format.

  • PAGE 534

    l Proportionally: The barcode is stretched up to where it fits either the width or height of the parent box, whichever requires the less stretching. Color The Color property allows you to choose a different Barcode color (instead of black) and Background color (instead of white), by typing a hexadecimal color value (see for example w3school's color picker). Output format Defines how the barcode is output on the page. There are two possible formats: l l SVG: Vector format.

  • PAGE 535

    Start Char and Stop Char Use the drop-down to select the start and stop character for the barcode, which defines the encoding mode. Available characters are A, B, C. Scale Defines if and how the rendered barcode is scaled in relation to the parent element: l None: The barcode is rendered based on the module width. l Fit to box: The barcode is stretched to fit the parent box in both width and height.

  • PAGE 536

    Code 11, Code 93, Code 93 extended, Industrial 2 of 5, Interleaved 2 of 5, Matrix 2 of 5 Code 11, Code 93, Code 93 extended, Industrial 2 of 5, Interleaved 2 of 5, and Matrix 2 of 5 are a few of the barcode types that can be added to a template. The barcode can be added either using the Barcode toolbar button or through selecting Insert > Barcode on the menu; see "Adding a Barcode" on page 528. Initially the barcode will have the barcode type's default properties.

  • PAGE 537

    Add Checksum When checked, PlanetPress Connect will calculate a Checksum character and add that to the result of the Barcode script. If the value to be encoded is longer than 10 digits, a second check character will be calculated. Human Readable Message When this option is checked, PlanetPress Connect shows a human readable text below or above the barcode, as defined using the Text Position, using the specified font and font size. The font size is given in points (pt).

  • PAGE 538

    Barcode properties This topic lists the properties of the barcode types Code 39 and Code 39 extended. For the properties of other barcode types, see "Barcode type and properties" on page 530. Module width Specifies the width of the narrow bars in centimeters. Changing this value to a higher value will make the barcode bigger when Scale is set to None. Inter Character Gap Two adjacent characters are separated by an inter-character gap.

  • PAGE 539

    w3school's color picker). Output format Defines how the barcode is output on the page. There are two possible formats: l l SVG: Vector format. This is smaller in size, but not compatible with Email output. PNG: Binary rasterized format. This is slightly larger than SVG but will display properly in Email output.

  • PAGE 540

    Scale Defines if and how the rendered barcode is scaled in relation to the parent element: l None: The barcode is rendered based on the module width. l Fit to box: The barcode is stretched to fit the parent box in both width and height. l Proportionally: The barcode is stretched up to where it fits either the width or height of the parent box, whichever requires the less stretching.

  • PAGE 541

    The barcode can be added either using the Barcode toolbar button or through selecting Insert > Barcode on the menu; see "Adding a Barcode" on page 528. Initially the barcode will have the barcode type's default properties. To change those properties, such as the scale and color, open the Barcode properties dialog: right-click the barcode (on the Design tab in the Workspace) and select the barcode type on the shortcut menu. Barcode properties This topic lists the properties of the barcode type Code 128.

  • PAGE 542

    Add Checksum When checked, PlanetPress Connect will calculate a Checksum character and add that to the result of the Barcode script. If the value to be encoded is longer than 10 digits, a second check character will be calculated. Human Readable Message When this option is checked, PlanetPress Connect shows a human readable text below or above the barcode, as defined using the Text Position, using the specified font and font size. The font size is given in points (pt).

  • PAGE 543

    Barcode properties This topic lists the properties of the QR barcode. For the properties of other barcode types, see "Barcode type and properties" on page 530. Hex Input For optimized mailings, German Post requires the supplied data for the Data Matrix barcode to be hexadecimal input. Check this option if your input data is a hexadecimal code. The incoming data will be interpreted as hexadecimal input and decoded to ASCII before passing the string to the Barcode library.

  • PAGE 544

    l None: The barcode is rendered based on the module width. l Fit to box: The barcode is stretched to fit the parent box in both width and height. l Proportionally: The barcode is stretched up to where it fits either the width or height of the parent box, whichever requires the less stretching. Color The Color property allows you to choose a different Barcode color (instead of black) and Background color (instead of white), by typing a hexadecimal color value (see for example w3school's color picker).

  • PAGE 545

    Module width Specifies the width of the narrow bars in centimeters. Changing this value to a higher value will make the barcode bigger when Scale is set to None. Show guardbars Checking this option adds guardbars to the barcode. Guardbars are bars at the start, in the middle and at the end that help the barcode scanner to scan the barcode correctly. Scale Defines if and how the rendered barcode is scaled in relation to the parent element: l None: The barcode is rendered based on the module width.

  • PAGE 546

    Human Readable Message When this option is checked, PlanetPress Connect shows a human readable text below or above the barcode, as defined using the Text Position, using the specified font and font size. The font size is given in points (pt). Color The Color property allows you to choose a different Barcode color (instead of black) and Background color (instead of white), by typing a hexadecimal color value (see for example w3school's color picker).

  • PAGE 547

    l l The GS1 Application Identifiers (AI) must be used for all data. In addition, the function code ~1 must be used as field separator for variable length AI elements. Only ASCII characters should be used. Barcode properties This topic lists the properties of the barcode type GS1 DataMatrix. For the properties of other barcode types, see "Barcode type and properties" on page 530. Module width Specifies the width of the narrow bars in centimeters.

  • PAGE 548

    Color The Color property allows you to choose a different Barcode color (instead of black) and Background color (instead of white), by typing a hexadecimal color value (see for example w3school's color picker). Output format Defines how the barcode is output on the page. There are two possible formats: l l SVG: Vector format. This is smaller in size, but not compatible with Email output. PNG: Binary rasterized format. This is slightly larger than SVG but will display properly in Email output.

  • PAGE 549

    l None: The barcode is rendered based on the module width. l Fit to box: The barcode is stretched to fit the parent box in both width and height. l Proportionally: The barcode is stretched up to where it fits either the width or height of the parent box, whichever requires the less stretching. Add Checksum When checked, PlanetPress Connect will calculate a Checksum character and add that to the result of the Barcode script.

  • PAGE 550

    Initially the barcode will have the barcode type's default properties. To change those properties, such as the scale and color, open the Barcode properties dialog: right-click the barcode (on the Design tab in the Workspace) and select the barcode type on the shortcut menu. Barcode properties This topic lists the properties of the barcode types OneCode, KIX Code, Royal Mail and Australia Post. For the properties of other barcode types, see "Barcode type and properties" on page 530.

  • PAGE 551

    l l SVG: Vector format. This is smaller in size, but not compatible with Email output. PNG: Binary rasterized format. This is slightly larger than SVG but will display properly in Email output. IMPB IMPB is one of the barcode types that can be added to a template; see "Barcode" on page 528. The barcode can be added either using the Barcode toolbar button or through selecting Insert > Barcode on the menu; see "Adding a Barcode" on page 528.

  • PAGE 552

    The barcode can be added either using the Barcode toolbar button or through selecting Insert > Barcode on the menu; see "Adding a Barcode" on page 528. Initially the barcode will have the barcode type's default properties. To change those properties, such as the scale and color, open the Barcode properties dialog: right-click the barcode (on the Design tab in the Workspace) and select the barcode type on the shortcut menu.

  • PAGE 553

    character will be calculated. Human Readable Message When this option is checked, PlanetPress Connect shows a human readable text below or above the barcode, as defined using the Text Position, using the specified font and font size. The font size is given in points (pt). Color The Color property allows you to choose a different Barcode color (instead of black) and Background color (instead of white), by typing a hexadecimal color value (see for example w3school's color picker).

  • PAGE 554

    l Code 93 extended l Industrial 2 of 5 l Interleaved 2 of 5 l Matrix 2 of 5 For the properties of other barcode types, see "Barcode type and properties" on page 530. Module width Specifies the width of the narrow bars in centimeters. Changing this value to a higher value will make the barcode bigger when Scale is set to None. Scale Defines if and how the rendered barcode is scaled in relation to the parent element: l None: The barcode is rendered based on the module width.

  • PAGE 555

    Output format Defines how the barcode is output on the page. There are two possible formats: l l SVG: Vector format. This is smaller in size, but not compatible with Email output. PNG: Binary rasterized format. This is slightly larger than SVG but will display properly in Email output.

  • PAGE 556

    Scale Defines if and how the rendered barcode is scaled in relation to the parent element: l None: The barcode is rendered based on the module width. l Fit to box: The barcode is stretched to fit the parent box in both width and height. l Proportionally: The barcode is stretched up to where it fits either the width or height of the parent box, whichever requires the less stretching.

  • PAGE 557

    The barcode can be added either using the Barcode toolbar button or through selecting Insert > Barcode on the menu; see "Adding a Barcode" on page 528. Initially the barcode will have the barcode type's default properties. To change those properties, such as the scale and color, open the Barcode properties dialog: right-click the barcode (on the Design tab in the Workspace) and select the barcode type on the shortcut menu. Barcode properties This topic lists the properties of the MaxiCode barcode.

  • PAGE 558

    Barcode properties This topic lists the properties of the barcode type MSI. For the properties of other barcode types, see "Barcode type and properties" on page 530. Module width Specifies the width of the narrow bars in centimeters. Changing this value to a higher value will make the barcode bigger when Scale is set to None. Scale Defines if and how the rendered barcode is scaled in relation to the parent element: l None: The barcode is rendered based on the module width.

  • PAGE 559

    w3school's color picker). Output format Defines how the barcode is output on the page. There are two possible formats: l l SVG: Vector format. This is smaller in size, but not compatible with Email output. PNG: Binary rasterized format. This is slightly larger than SVG but will display properly in Email output. OneCode, KIX Code, Royal Mail, Australia Post OneCode, KIX Code, Royal Mail and Australia Post are some of the types of barcodes that can be added to a template; see "Barcode" on page 528.

  • PAGE 560

    l None: The barcode is rendered based on the module width. l Fit to box: The barcode is stretched to fit the parent box in both width and height. l Proportionally: The barcode is stretched up to where it fits either the width or height of the parent box, whichever requires the less stretching. Color The Color property allows you to choose a different Barcode color (instead of black) and Background color (instead of white), by typing a hexadecimal color value (see for example w3school's color picker).

  • PAGE 561

    l l l Binary: allows any byte value to be encoded Text: allows all printable ASCII characters to be encoded (values from 32 to 126 and some additional control characters) Numeric: a more efficient mode for encoding numeric data Error Correction Level Use the drop-down to select the built-in error correction method based on Reed-Solomon algorithms. The error correction level is adjustable between level 0 (just error detection) and level 8 (maximum error correction).

  • PAGE 562

    Color The Color property allows you to choose a different Barcode color (instead of black) and Background color (instead of white), by typing a hexadecimal color value (see for example w3school's color picker). Output format Defines how the barcode is output on the page. There are two possible formats: l l SVG: Vector format. This is smaller in size, but not compatible with Email output. PNG: Binary rasterized format. This is slightly larger than SVG but will display properly in Email output.

  • PAGE 563

    Scale Defines if and how the rendered barcode is scaled in relation to the parent element: l None: The barcode is rendered based on the module width. l Fit to box: The barcode is stretched to fit the parent box in both width and height. l Proportionally: The barcode is stretched up to where it fits either the width or height of the parent box, whichever requires the less stretching.

  • PAGE 564

    Initially the barcode will have the barcode type's default properties. To change those properties, such as the scale and color, open the Barcode properties dialog: right-click the barcode (on the Design tab in the Workspace) and select the barcode type on the shortcut menu. Instead of using the Script wizard (see "Adding a Barcode" on page 528) you could write your own script to get the data for the QR Code; see this how-to: QR Codes in Designer.

  • PAGE 565

    Extended Channel Interpretation (ECI) This setting enables data using character sets other than the default set. Select Latin-1, Latin2, Shift JIS or UTF-8, or select None to disable extended channel interpretation. Correction level Part of the robustness of QR codes in the physical environment is their ability to sustain 'damage' and continue to function even when a part of the QR code image is obscured, defaced or removed.

  • PAGE 566

    l l SVG: Vector format. This is smaller in size, but not compatible with Email output. PNG: Binary rasterized format. This is slightly larger than SVG but will display properly in Email output. Barcode Data QR Codes can have many different types of data, which determines how the code will be generated. On top of just straightforward data, special data structures are used to trigger actions on the device that reads them. This can include contact cards, phone numbers, URLs, emails, etc.

  • PAGE 567

    l Bar width: the width of the bars l Spacing: the distance between the bars Scale Defines if and how the rendered barcode is scaled in relation to the parent element: l None: The barcode is rendered based on the module width. l Fit to box: The barcode is stretched to fit the parent box in both width and height. l Proportionally: The barcode is stretched up to where it fits either the width or height of the parent box, whichever requires the less stretching.

  • PAGE 568

    Barcode properties This topic lists the properties of the barcode type Royal Mail Mailmark. For the properties of other barcode types, see "Barcode type and properties" on page 530. Module width The recommendation is to print these barcodes with a module size of 0.5 mm, which equates to 6 dots when printed at 300dpi. The maximum module size for printing is 0.7 mm. Preferred version Use the drop-down to select the size of the barcode, in a number of modules.

  • PAGE 569

    UPC-A, UPC-E, EAN-8, EAN-13 UPC-A, UPC-E, EAN-8 and EAN-13 are a few of the barcode types that can be added to a template. The barcode can be added either using the Barcode toolbar button or through selecting Insert > Barcode on the menu; see "Adding a Barcode" on page 528. Initially the barcode will have the barcode type's default properties.

  • PAGE 570

    l Type: The supplement type can be 2-digit (originally used to indicate the edition of a magazine or periodical) or 5-digit (used to indicate the suggested retail price for books). In case this option is set to None, and the data includes digits for the 2 or 5 supplement, the supplement data will be skipped and the additional barcode will not be rendered. Note When the chosen supplement type doesn't match the data, the supplement data will be skipped and the additional barcode will not be rendered.

  • PAGE 571

    Tip Wrapping elements in a box (or in a semantic HTML element) makes it easier to target them in a script or in a style sheet. Place the cursor in the element or select multiple elements. Then, on the menu, click Insert > Wrap in Box. You can now use the wrapper element as a script's or style's selector; see "Using the Text Script Wizard" on page 671 and "Styling and formatting" on page 614. Tip With the Copy fit feature, text can automatically be scaled to the available space in a Box or Div.

  • PAGE 572

    Dynamically changing the position A Positioned Box has the following attributes: l anchor defines the page number (starting by 0) the box is placed on l offset-x defines the horizontal position of the box relative to its container l offset-y defines the vertical position of the box relative to its container. These attributes can be set in a script. The following script dynamically changes the position of a Positioned Box in a Print context by setting the offset-x and offset-y values. results.

  • PAGE 573

    Adding an Inline Box To insert an inline box, use the icon on the toolbar. Inline Boxes can be resized using the handles on the sides and corner. They can be styled using the Format > Box menu item, through the CTRL+M keyboard shortcut or through the CSS files; see "Styling and formatting" on page 614 and "Styling templates with CSS files" on page 616. Positioning an Inline Box Initially an Inline Box will float to the left.

  • PAGE 574

    Div The Div is the element used to create both Positioned Boxes and Inline Boxes. By default, a Div element reacts pretty much like a paragraph (

    ) or an inline box set to 'no float' except that it can be resized directly. Just like Positioned Boxes and Inline Boxes, Div elements can be styled using the Format > Box menu item, through the CTRL+M keyboard shortcut or through the CSS files; see "Styling and formatting" on page 614 and "Styling templates with CSS files" on page 616.

  • PAGE 575

    All of these changes have brought many new possibilities. They also inevitably lead to a number of backward compatibility issues. Charts made with a version of Connect prior to 2018.1 may not be converted correctly when opened in Connect 2018.1. For a list of known backward compatibility issues see: "Business Graphics: Backward Compatibility Issues" on page 134. Also note that charts based on expanded, custom scripts are never converted.

  • PAGE 576

    l l l l l At cursor position inserts it where the cursor is located in the template. Before element inserts it before the HTML element in which the cursor is currently located. For example if the cursor is within a paragraph, the insertion point will be before the

    tag.* After start tag inserts it within the current HTML element, at the beginning, just after the start tag.* Before end tag inserts it within the current HTML element, at the end, just before the end tag.

  • PAGE 577

    l l A Div element. It has a data-amchart attribute, as you can see when you select the chart and open the Source view in the Workspace. The data-amchart attribute contains settings for how the data is displayed. These settings are made via the chart's properties (see "Enhancing a charts' design" on page 579). A script. The script determines which data are displayed in the chart, with which colors and labels. The script can be edited any time; see "Selecting data in a Business Graphic script" below.

  • PAGE 578

    2. For a Bar or Line Chart based on a detail table, you also have to select a Category: one data field (in the detail table) of which the values will appear under the bars or the line; in other words, on the x axis. 3. Next to Values, select data fields with a numerical value. 4. Adjust the label of each of the selected data fields as needed: click on the label and type the new one. In Bar and Line Charts with Data Fields as input data, these labels appear under the xaxis of the chart.

  • PAGE 579

    When creating a data mapping configuration (see "Data mapping workflow" on page 164), it is recommended to arrange data in a detail table in such a way that it matches this 'one series per record, one bar/point per data field' approach. Occasionally you may find that data in a detail table does not match this approach, and that it would be a better fit if the chart had one series of bars/points for each selected detail data field instead, and one bar/point for each record.

  • PAGE 580

    Start by opening the Chart Properties dialog. Right-click the chart (in the template, or in the Outline pane) and select Chart. Every tab menu in the Chart Properties dialog, except the last one, gives direct access to a number of layout options.

  • PAGE 581

    ... } Properties of the Legend (listed here: https://docs.amcharts.com/3/javascriptcharts/AmLegend) should go in the legend section in the JSON: ... "legend": { "position": "right" }, For inspiration you could use amCharts' online editor: https://live.amcharts.com/new/. Properties can be copied directly from the Code tab in the live editor to the Source tab of the Chart properties dialog in Connect.

  • PAGE 582

    A. Switch to the Design mode. B. Right-click the chart area and select Box... from the contextual menu. C. On the Background tab, set the Color to: l #282828 for the 'dark' theme and the 'chalk' theme l #222222 for the 'black' theme 3. Finally, the 'chalk' theme requires adding a remote stylesheet with this URL: 'https://fonts.googleapis.com/css?family=Covered+By+Your+Grace' to your template. See "Using a remote style sheet" on page 618.

  • PAGE 583

    Camera The Camera element adds a group of buttons to capture or select an image. Once the image is selected via the camera or the device's library (aka "gallery"), it is saved within the Form data. When the form is submitted, the image is sent in a base64-encoded string format. To learn how to add Camera data to a template, see "Adding ​Camera data to the template" on page 469. The Camera element has a number of options, of which most can be set in the Design view. These options are described below.

  • PAGE 584

    widths. Annotations are submitted in SVG format by a hidden input added to the Camera element. The name of that input is the ID of the Camera element, followed by "-note-data", for example camera1-note-data. Cropping/editing/deskewing To allow the user to crop, edit and deskew the image after taking or selecting it, select Camera properties, and then check Edit Image and/or Allow Deskew.

  • PAGE 585

    How to use the captured or selected image in a template After a user has submitted the form and the data has been extracted, you may want to display the captured or selected image in a Designer template, for example in a letter or on a web page. To do this: 1. Load the data mapping configuration (or at least the data model). 2. Insert a dummy image in the template. 3. Right-click the dummy image and select Dynamic Image. The Text Script Wizard appears. 4.

  • PAGE 586

    Document ID The Document ID element retrieves the Document ID of the form currently viewed by the app. You could put the Document ID in a hidden input, so that when the form is submitted, the Document ID is submitted as well. A Document ID can be used on the server side to check (in the Connect database) if the data has already been submitted. Fields Table The Fields Table element adds a table with two rows, a delete button at the end of the first row and an add button at the end of the second row.

  • PAGE 587

    Image & Annotation The Image & Annotation element is meant to be used with an image that needs input from the user. When inserting an Image & Annotation element you have to select the image. The user can simply click (or rather, touch) the image to bring up the annotation dialog. Annotations can be made in a Marker (semi-transparent) or Pencil (solid) style, in different colors and with different widths. Annotations are submitted in SVG format by a hidden input.

  • PAGE 588

    template. With previous versions of the app, the format of returned signatures could vary. Time and Formatted Time The Time element and the Formatted Time element display the current time on the device when the form is first opened. When the element is touched, a time selector appears so the user can modify this time. The Formatted Time element displays times in a format that depends on the locale of the device on which the user is viewing the form.

  • PAGE 589

    Tip If you are looking to add a date that originates from a record set, to a template, see: "Variable Data" on page 669. To insert a date you could use either the drag and drop method or the Text Script Wizard; the latter lets you set the date/time format. Changing the date Once inserted, a date can be modified directly in the template (if it does not update automatically) or through the date script (if it does update automatically). To modify the date in the script: 1.

  • PAGE 590

    Forms Web templates can contain Forms. Capture OnTheGo templates always contain a Form. Tip To create a Capture OnTheGo template, preferably use a Template Wizard (see "Capture OnTheGo template wizards" on page 473). The Wizard doesn't just add the form, it also adds the necessary Capture OnTheGo form elements (see ), style sheets and JavaScript files, and extra pre-made elements. Adding a Form This procedure describes how to add a Form element to an existing Web context. 1.

  • PAGE 591

    5. Using the the Method drop-down, select whether the form should be sent using the GET or POST method. 6. Using the next drop-down, select the form's Encryption Type (enctype): l l l application/x-www-form-urlencoded: Default. All characters are encoded before they are sent. Spaces are converted to "+" symbols, and special characters are converted to ASCII HEX values. multipart/form-data: No characters are encoded. This value is required when you are using forms that have a file upload control.

  • PAGE 592

    11. Use the Location drop-down to select where to insert the element. l l l l l At cursor position inserts it where the cursor is located in the template. Before element inserts it before the HTML element in which the cursor is currently located. For example if the cursor is within a paragraph, the insertion point will be before the

    tag.* After start tag inserts it within the current HTML element, at the beginning, just after the start tag.

  • PAGE 593

    l An Encryption Type (enctype): l l l application/x-www-form-urlencoded: Default. All characters are encoded before they are sent. Spaces are converted to "+" symbols, and special characters are converted to ASCII HEX values. multipart/form-data: No characters are encoded. This value is required when you are using forms that have a file upload control. text/plain: Spaces are converted to "+" symbols, but no special characters are encoded.

  • PAGE 594

    Browser validation you can only make a field required and set a maximum length. Changing a Form's validation in HTML In HTML, the validation method is stored in the data-validation-method attribute of the element, with the value "browser" or "jquery-validation".

  • PAGE 595

    Fieldset A fieldset is a group of related elements in a form. The elements don't have to be of the same type. After inserting and selecting the Fieldset (see "Selecting an element" on page 526) you can add elements to it in the same way you add elements to a Form; see "Adding elements to a Form" on page 455. Text The Text element is a simple element with the type text. It accepts any alphanumerical characters, including special characters.

  • PAGE 596

    Hidden field A hidden field can contain specific data used by the server-side script. It is not visible to the user. When adding a Hidden Field you can set the value that will be sent on submit. Label A Label element is a text displaying informative text within the form. Labels are non-interactive. Note that this type of label is not tied to an input element. At the same time you add an input element, you can add a label to that element; see "Adding elements to a Form" on page 455.

  • PAGE 597

    If a Radio Button is not checked, no information is sent when the form is submitted. Fortunately, there is a workaround to submit the status of the unchecked radio button, see "Using Form elements" on page 454. The submit name of a Radio Button indicates to which Radio Button Group the Radio Button belongs. Select A Select element is a drop-down list with multiple entries from which the user can select only one option.

  • PAGE 598

    Hyperlink and mailto link Links can be added to any template but they only work in electronic output (web pages, email and PDF files). They can be a regular hyperlink pointing to a web page or a mailto link that will open the default email client when clicked. HTML element: a When you add elements, such as text, images or a table, to the content of a template, you are actually constructing an HTML file.

  • PAGE 599

    Target: use the drop-down or type in the target for the link.When the target is _ blank the link will open in a new browser window or tab. For a mailto link: l l l Email: enter a valid email address that appears by default in the To: field of the email client. Subject: type a default subject that appears in the Subject: field of the email client. Message: type a message that appears by default in the Message field of the email client.

  • PAGE 600

    Tip Using images in an Email template? See "Using images in email campaigns: tips" on page 418. Dynamic images Images can be switched dynamically, so that a letter, email or web page can include one image or another, depending on a value in the data set. Read "Dynamic Images" on page 682 to find out how to add such switching images. Background images Several parts of templates, such as sections and media, and elements such as positioned boxes, can have a background image.

  • PAGE 601

    HTML tag: img When you add elements, such as text, images or a table, to the content of a template, you are actually constructing an HTML file. It is possible to edit the source of the HTML file directly in the Designer; see "Editing HTML" on page 523. In the section's source file, images are elements. The tag has at least four attributes: src, alt, width and height. src specifies the URL of the image. alt contains the alternate text; see "Setting an alternate text" on page 605.

  • PAGE 602

    top of the Workspace. External images can not be added via the drag-and-drop method. Use the Select Image dialog instead (see below). If you add an external image via the Source tab or via a script, and the URL doesn't have a file extension, you have to add the filetype parameter to the URL manually. Specify the file extension as its value, for example: ?filetype=pdf, or &filetype=pdf if it isn't the first parameter. Note that the ampersand character needs to be encoded as &.

  • PAGE 603

    host is "localhost", it can be omitted, resulting in file:///, for example: file:///c:/resources/images/image.jpg. l Url lists image files from a specific web address. Select the protocol (http or https), and then enter a web address (for example, http://www.mysite.com/images/image.jpg).

  • PAGE 604

    Using one file that contains a collection of images When a template that contains lots of images is merged with a large record set, the many file requests may slow down the process of output generation. The solution is simple: combine the images into a single image file and display the part that holds the image. This reduces the number of file requests and can improve the output speed significantly. For an explanation of how to do this, see "Optimizing a template" on page 1103.

  • PAGE 605

    If necessary, it is possible to resize images automatically via a script in a Workflow process, as explained in a how-to: How to resize images via a script. Setting an alternate text Once an image has been inserted in the content of a template, it can have an alternate text. The alternate text will be shown in emails and on web pages at the position of the image while the image is loading and when the image is not found. On web pages, alternate texts are also used for accessibility.

  • PAGE 606

    format, not to position text and images. Tables used in web pages to position elements make those pages less accessible to users with disabilities and to viewers using smaller devices. In print, Tables can be used for both purposes. There are two types of Tables: Standard Tables which are static in nature, and Detail Tables which have a variable number of rows depending on a detail table in the record; see "Detail Table" on page 683.

  • PAGE 607

    3. Check the option Absolute to give the Table an absolute position, or use the Location drop-down to select where to insert the Table: l l l l l At cursor position inserts it where the cursor is located in the template. Before element inserts it before the HTML element in which the cursor is currently located. For example if the cursor is within a paragraph, the insertion point will be before the

    tag.

  • PAGE 608

    Alternatively, click in one of the cells and select Insert > Table > Insert thead or Insert tfoot, on the menu. Deleting a header or footer To delete a header or footer, simply right-click the header or footer and select Row > Delete on the shortcut menu. If the deleted element was targeted by a script, you will be asked if you want to delete the script as well. Rows and columns Adding a row or column To add a row or column to an existing Table, click in a cell.

  • PAGE 609

    l Click in the Table and drag the handles to resize it. Press the Shift key while dragging to scale the Table proportionally. This option only works in a Print section, with a Table that has an absolute position and for which resizing is allowed. l l If the position of the Table isn't absolute, right-click the Table and on the shortcut menu, select Convert to absolute.

  • PAGE 610

    Adding text To add text, simply type in the workspace in the middle. l Press Enter to insert a new paragraph. l Press Shift+Enter to insert a line break. Alternatively, copy-paste text into a template, or use the Insert Lorem Ipsum toolbar button to insert dummy text. Text that precedes or follows the value of a data field can be added by the Text Script Wizard; see "Using the Text Script Wizard" on page 671. Note: it is not possible to open a Word file in the Designer.

  • PAGE 611

    HTML element: p, h, li and others When adding elements, such as text, images or a table, to the content of a template, you are actually constructing an HTML file; see "Editing HTML" on page 523. In HTML text can be contained in many different elements: paragraphs, span elements, line items and table cells, for example. The HTML tag of a paragraph is

    . The paragraph should be followed by a closing tag:

    . A line break looks like this in HTML:
    .

  • PAGE 612

    Adding a snippet to the Resources Before adding a snippet: l l Import the resource files that are related to the snippet, such as image files and CSS files, into the template file. Drag and drop the files to the corresponding folders (Images and Stylesheets, respectively) on the Resources pane. If you want to use external images, see "Images" on page 599.

  • PAGE 613

    Adding a snippet to a section Drag-and-drop To add the snippet to the content of a section, drag the snippet from the Snippets folder on the Resources pane to the desired location in a section. Check the option Insert as shared content to insert a reference to the original snippet in the template, rather than a copy of the original snippet. When a snippet is being used as shared content, the contents of the snippet itself are not added to the page.

  • PAGE 614

    3. Right-click the new snippet on the Resources pane in the Snippets folder and rename it. JSON Snippets JSON Snippets are snippets that contain pieces of JSON data instead of HTML. Just like HTML snippets, JSON snippets are stored in the Snippets folder on the Resources pane, but their file name should end in '.json'. JSON Snippets cannot be inserted into the content directly, but they can be accessed via a script using the function loadjson(): var json_data = loadjson("snippets/snippet.json"); results.

  • PAGE 615

    Note that where local formatting conflicts with a formatting rule for the same element in one of the style sheets, the local formatting rule gets priority; the rule in the style sheet will be ignored. It is highly recommended to use style sheets in templates right from the start. Even more so if the communications are going to be output to different output channels, or if they consist of different sections (for example, a covering letter followed by a policy).

  • PAGE 616

    Styling templates with CSS files The Layout toolbar and the Format menu offer many possibilities to style every piece of a template. However, styling every single element, one after another, is a lot of work and, more importantly, can result in a template with a messy mix of styles that isn’t easy to maintain and lacks consistent design. Therefore the preferred way to style templates is with CSS files: Cascading Style Sheets. This topic explains how to do that.

  • PAGE 617

    On this tab you can view and edit the content of the template in the form of plain text with HTML tags (note the angle brackets: <>). You may add and edit the text and the HTML tags, classes, ID’s and other attributes. To learn more about HTML, see for example https://developer.mozilla.org/enUS/docs/Web/Guide/HTML/Introduction and http://www.w3schools.com/html/default.asp. Many video courses and hands-on courses about HTML (and CSS) are offered on the Internet as well, some for free.

  • PAGE 618

    Adding CSS files To add a CSS file of your own, open an Explorer window, drag the file to the Resources pane and drop it on the Stylesheets folder. In case the CSS file has references to specific images, you can drag/drop or copy/paste those images into the Stylesheets folder as well. To create a new CSS file, right-click the Stylesheet folder on the Resources pane and select New Stylesheet. Note The order in which style sheets are executed, can affect the actual output.

  • PAGE 619

    3. Enter the URL for the remote resource. This must be a full URL, including the http:// or https:// prefix, domain name, path and filename. 4. Optionally, for a Capture OnTheGo Form, you can check Use cached Capture OnTheGo resource, to prevent downloading a remote style sheet again if it has been downloaded before.

  • PAGE 620

    Step 1: edit CSS Editing CSS using a property sheet 1. Select Edit > Stylesheets. 2. Click the downward pointing arrow next to Global and select the context that you want to edit styles for, or select the Global CSS file to edit CSS rules that apply to all contexts. 3. Click New, or click one of the selectors that are already listed and click Edit. 4. Type a CSS selector. This can be: l l A class: .class. Class rules apply to all HTML elements with that class.

  • PAGE 621

    Rule dialog, in order to be able to see the template that you are working on.) If all is well, click OK. 7. In the Stylesheets dialog, click the selector that you chose. All CSS rules for that selector will become visible in a box below the list of selectors. Editing plain CSS l l Click the button Advanced in any property sheet to open a CSS property editor. Type CSS properties at the left and values at the right.

  • PAGE 622

    Adding a class or ID to an HTML element 1. Select the element (see "Selecting an element" on page 526). 2. On the Attributes pane, type the ID and/or class. Type the ID without the preceding # and class names without a dot. Note Note: Elements can have multiple classes. Separate the class names with a space (eg. “red small”). Alternatively, after selecting an element, you can click the Source tab at the bottom of the workspace. The selected element will be highlighted in the source.

  • PAGE 623

    gives it less weight. In case of conflicting rules, style sheets read later will override previous ones. Note Style sheets are applied in the order in which they are included in a section. The styles in each following style sheet add up to the styles found in previously read style sheets. When style sheets have a conflicting rule for the same element, class or ID, the last style sheet ‘wins’ and overrides the rule found in the previous style sheet.

  • PAGE 624

    l A rule with the same importance is read after the first rule. Not only is the order of the rules in a CSS file important, but also the order in which the style sheets are read. The style sheets that are included with a section are read in the specified order; see "Applying a style sheet to a section" on page 377. Using a more specific CSS rule By default, many CSS properties of an HTML element also apply to the elements inside that element.

  • PAGE 625

    Example Assuming that a table has the CSS property "color: red" (which colors text in the cells red), a more specific rule for cells in that table could be, for example: l l l l A rule for the text color of all table cells (td elements), for example: td { color: green; }. A rule for the text color of table cells with a certain class, for example .green { color: green; }. A rule for the text color of a table cell with a certain ID, for example: #greentext { color: green; }.

  • PAGE 626

    Formatting text and paragraphs locally An intuitive way of formatting text locally is by using the toolbar buttons: select some text, or an element that contains text (see: "Selecting an element" on page 526) and click one of the toolbar buttons to make it bold, center it, create a numbered or bulleted list, etc. To quickly change a paragraph into a Heading, Address or Pre element, select the paragraph (see: "Selecting an element" on page 526) and on the Format menu, select the appropriate element.

  • PAGE 627

    l l Whitespace: Specify how the text wraps. See CSS White-Space for details. This is equivalent to the white-space property in CSS. The style of the text. Check any option to apply the selected style to text within the element. This list shows the CSS property and value for each of the options: l Bold: Sets the font-weight to 700. l Italic: Sets the font-style to italic. l Underline: Sets the text-decoration to underline. l Strikethrough: Sets the text-decoration to line-through.

  • PAGE 628

    l l l l l l Line-height: Specify the height of each line in the paragraph's text, in a measure or percentage. Note that this is not the spacing between lines, but rather the complete height of the line itself including the text. This is equivalent to the line-height property in CSS. Align: Select how text should be aligned, such as left, center, right or justify. Equivalent to the align property in CSS. First Indent: Specify the indentation of the first line of the paragraph.

  • PAGE 629

    Removing local formatting from text Layout buttons and options on the Format menu add inline style tags to the text. Style tags can look like this: ... or like this:

    . Inline style tags have priority over styles defined in a CSS file. For example, when a formatting rule in a style sheet colors all paragraphs green, a paragraph with an inline style tag to color it red would still stay red.

  • PAGE 630

    2. Click the Content tab. 3. Check the Copy Fit option. 4. Enter the Min font size and/or Max font size using a valid font measurement unit (pt, px, in, cm or mm). Do not put a space between the number and the unit. l l The minimum font size is 1pt. The default minimal font size is 4pt. When the minimum font size is left blank, the font size in Design view becomes the minimum font size. This means that the text can only be made bigger than its initial size. The maximum font size is 1048pt.

  • PAGE 631

    How to position elements To position elements in relation to each other in a template, you can wrap those elements in a Table or Box (see "Table" on page 605 and "Boxes" on page 570), and/or use the Spacing property of the elements. The Spacing property can also be used to indent elements or create a hanging paragraph or image; see "Spacing" on page 655. Aligning objects with an absolute position is easy with the Alignment buttons.

  • PAGE 632

    Tip Use a negative left margin to create a hanging paragraph or image. Aligning objects In Print sections, objects with an 'absolute position', such as a Positioned Box, have a fixed position in relation to the page (see also: "Using the CSS position property" on the next page). Objects with an absolute position can be aligned easily: 1. Press the Ctrl key and hold it down while clicking on the objects that you want to align. The last selected object is the reference object; this object will not be moved.

  • PAGE 633

    Using the CSS position property An element can be positioned independently of the text flow by changing its position property to absolute or to relative (that is, relative to the 'parent', its container). When an element is placed inside another element, such as a Box, changing its position property to absolute positions the element absolutely inside its parent.

  • PAGE 634

    This property isn't present in one of the tab menus of the style rule editor, but you can add it and specify a value after clicking the Advanced button in the style rule editor (see "Styling templates with CSS files" on page 616). About the CSS display property The display property is one of the most important CSS properties for controlling layout.

  • PAGE 635

    6. Close the Advanced Formatting dialog. 7. Close the Formatting dialog, or click the Apply button to see the effect without closing the dialog. Note It is also possible to rotate elements by creating a style rule in a style sheet; see "Styling templates with CSS files" on page 616. Styling a table Just as other elements, tables can be styled in two ways: l l With local formatting. This means styling the table directly, using the Formatting dialog. Via Cascading Style Sheets (CSS).

  • PAGE 636

    Via the Formatting dialog The Formatting dialog allows you to change the font, font size and color (see "Fonts" on page 651), the borders (see "Border" on page 644), the cell padding (the distance between the edge of the cell and its content, see "Spacing" on page 655), and the background color or image of the table and its cells ("Background color and/or image" on page 643).

  • PAGE 637

    Note that to make a style rule apply to a specific table, row or cell, you have to add an ID or class to that table, row or cell. Adding an ID or class to a table, row or cell A style sheet contains a bunch of style rules for different elements, that are identified via a CSS selector. This can be the element's HTML tag (without the angle brackets), ID or class. When used as a CSS selector, the HTML tag for a table is table. For a row, it is tr and for a cell, td.

  • PAGE 638

    Tip In a Detail Table, data are in the body of the table (selector: tbody) and subtotals are in the footer (selector: tfoot). Selecting a specific row, odd or even rows, or every nth row The pseudo-class :nth-child() lets you select a specific row, all odd or even rows, or every nth row. Between the round brackets in :nth-child() you can fill in a number, odd or even, or a formula: an+b. In the formula, a represents a cycle size (every...

  • PAGE 639

    The Designer Scripts API provides several functions to style elements, for example css(), hasClass() and addClass() (see "Designer Script API" on page 1021). Styling based on a value in a detail table Styling rows or cells in a detail table based on a value in the detail table goes a bit different. First set an ID on the detail table as a whole and create a script that uses thatID tbody as the script's selector. If for example the ID is table_1, the selector will be: #table_1 tbody.

  • PAGE 640

    it isn't described in this topic, but in general formatting topics; see "Styling and formatting" on page 614. This topic discusses specific image formatting issues. Note that image characteristics like brightness and contrast can not be changed within the Designer. Local formatting vs. style sheets Just as other elements, images can be styled in two ways: l l With local formatting. This means styling the image directly, using the Formatting dialog. Via Cascading Style Sheets (CSS).

  • PAGE 641

    l l l l Click the image and drag the handles to resize it. Press the Shift key while dragging, to scale the image proportionally. Select the image (see "Selecting an element" on page 526) and type the desired width and height in the respective fields on the Attributes pane. Select the image and select Format > Image, on the menu. On the Image tab, change the width and height of the image. Set the size of the image in a style sheet (see "Styling templates with CSS files" on page 616).

  • PAGE 642

    Alternatively, open the Formatting dialog (see "Applying local formatting to an image" on page 640): select the image; on the menu, select Format > Image and on the Image tab, under Text Wrap, set the Float property. The float property could also be changed via a style sheet.

  • PAGE 643

    Background color and/or image In any type of template, boxes, tables and table cells can have a background color and/or a background image. To select a background image or color: 1. Right-click the box and click Box on the shortcut menu. 2. Alternatively, select the box (see "Selecting an element" on page 526; note that a Box is a

    element) and on the Format menu click Box. 3. Click the Background tab.

  • PAGE 644

    and that their location should be accessible from the machine on which the template's output is produced. External images are updated (retrieved) at the time the output is generated. 4. Select an image from the list. 5. If the image is contained in a PDF file that consists of more than one page, select the desired page. 6. Click OK. 7. Set the size of the image. The options are explained here: http://www.w3schools.com/cssref/css3_pr_background-size.asp. 8. Set the position of the image in the box. 9.

  • PAGE 645

    4. Specify the width of the border (side). This is equivalent to the border-width property in CSS. 5. Specify the style of the border (side), such as solid, dashed or dotted. This is equivalent to the border-style property in CSS. 6. Specify the color of the border (side): click the downward pointing arrow next to Color to select a color from the list of predefined colors (see "Defining colors, spot colors and tints" on page 647), or click the colored rectangle to open the Color Picker dialog.

  • PAGE 646

    borders. For the rounded corners to show, you must create a CSS rule that sets the table's border-collapse property to separate instead of collapse. 1. Click the Advanced button at the bottom of the Formatting dialog. 2. Under Property, type border-collapse. 3. Under Value, type separate. 4. Add a padding to keep the table cells from sticking out of the rounded corners: under Property type padding and under Value type a measure for the padding. 5. Click OK, and click OK again to close the Formatting dialog.

  • PAGE 647

    paragraph and type the ID, for example rounded, on the Attributes pane). Then add the ID to the selector of the CSS rule, for example p#rounded { border-radius: 5px; }. To make the CSS rule apply to a set of paragraphs with the same class, first give the paragraphs the same class (for example rounded). Then add that class to the selector of the CSS rule, for example p.rounded { border-radius: 5px; }. Colors Colors make an important contribution to the look and feel of your templates.

  • PAGE 648

    Tip Working with style sheets? Choose a name that informs about the purpose of the color, rather than a name that describes the color. This way you won't have to change the color's name in the style sheets when you change the color. 4. Click Color. (Tint is used for transparent colors.) 5. Select the color type: CMYK or RGB. The letters CMYK stand for Cyan (a greenish-blue color), Magenta (reddish-purple), Yellow and Key (black). In color printing, these are the usual primary colors.

  • PAGE 649

    3. From the Type drop-down, select Tint. 4. In the Edit color dialog, type a name for the color (or let the Designer create a name based on the values that you select). The color’s name can be used in style sheets. This name should not contain spaces or special characters. 5. Select one of the existing colors in the template as t the Source of the color. The tint or opacity will be applied to this color. 6. Check Use opacity if you want to set the Tint slider to use Opacity instead. 7.

  • PAGE 650

    elements: h1 { background-color: cmyk(33%, 17%, 0%, 20%); } Coloring text Instead of using a style sheet (see above), you can color text locally: 1. Select text or an HTML element that contains text (see "Selecting an element" on page 526). 2. On the menu, select Format > Color, or click the black triangle on the Text color toolbar button. 3. Select one of the colors in the list, or click Other to set all aspects of the text style, including text color and/or background color.

  • PAGE 651

    Color management Color profiles can keep colors consistent across different outputs. To manage color profiles, select Edit > Color settings; for an explanation of the options in the Color settings dialog, see "Color Settings" on page 744. Fonts In templates for personalized customer communications you can use the fonts that are provided with the Designer, as well as imported fonts.

  • PAGE 652

    Note The reason for specifying more than one font in a style sheet for web pages and emails is that the font might not be available on the device on which they are viewed. Order the font names by preference. The last one should be the generic font family (either serif or sans-serif). Importing a font To import a font into a template: l Drag the appropriate font files into the Fonts folder on the Resources pane.

  • PAGE 653

    When creating an Email template, it's better to import several types of the same font, in order for any client to see the appropriate fonts. In the case of a Print context you do not need to provide alternative fonts, because the output is not displayed using a font from the device on which the output is read. Note Font software may have specific restrictions for copying and redistribution. Please consult the license agreement for each font vendor before using it in a template.

  • PAGE 654

    rules whenever using remote fonts in a Web or Email section (see "Applying a font" on page 651). Locale The locale is a setting that can affect date, time and currency output, and other formatting that depends on location and language. This setting is specific to each template, so changing it for one template will not affect other templates.

  • PAGE 655

    Model that contains the locale. This field must be a string and contain the exact locale to be used, such as "en" or "fr-CA". It cannot be an alias such as "english" or "french". The locale supports language codes (en, fr, etc), as well as language codes followed by a 2-letter country code (de-DE, zh-CN, fr-CA, fr-FR, etc). The language codes are defined by ISO-639-1. The 2-letter country code as defined by ISO 3166. 3. Click OK to apply the setting. The setting will be saved with the template.

  • PAGE 656

    button to manually add CSS properties (at the left) and values (at the right). For more information about CSS, see "Styling and formatting" on page 614. It is also possible to change an element's formatting via a style sheet; see "Styling templates with CSS files" on page 616. 3. Set the value for the padding in measure or percentage. You can do this for each side separately, which is equivalent to the padding-top, padding-bottom, padding-left or padding-right property in CSS.

  • PAGE 657

    the text of a web page, letter or email. Scripts in PlanetPress Connect Designer are the basis of Variable Data Printing. The easiest, quickest and most direct way to add customer data to content is via drag and drop; see "Variable Data" on page 669. The drag-and-drop method results in a Text Script. Another way to create a Text Script is to use the Text Script Wizard. Often it is better to use the Text Script Wizard than the drag-and-drop method.

  • PAGE 658

    Snippets Snippets are pieces of content that can be re-used within the same template, in all contexts and sections. Snippets can contain any contents that a section can have, such as text, images, variable data, dynamic tables, etc. They are often very useful to personalize content, especially in combination with variable data and scripts. See "Snippets" on page 611 and "Loading a snippet via a script" on page 706.

  • PAGE 659

    l a Data Mapping Configuration, see "Loading a Data Mapping Configuration" on the facing page. A Data Model and sample data are part of a Data Mapping Configuration. l a data file, see "Adding data from a data file" on page 661 l a database, see "Adding data from a database" on page 664.

  • PAGE 660

    l l Format, transform, conditionally include/exclude and enhance data from the source file. Use Workflow to automate the extraction of data from this kind of data file. Tip If you have no data at hand, download a demo from http://demo.objectiflune.com and open a dummy data file to test with. Loading a Data Mapping Configuration If you have used the DataMapper first, you probably already have an open Data Mapping Configuration.

  • PAGE 661

    Data" on page 669). When it contains a JSON string, this value can be read with a script (see "loadjson()" on page 1070). Note When generating output with just a Data Mapping Configuration, the template is merged with the complete sample data file that is part of the Data Mapping Configuration. The output is not limited to the number of records shown in the Data Model pane (which is one of the settings in the DataMapper). Adding data from a data file 1.

  • PAGE 662

    CSV file options o Encoding: The Designer can not infer from a CSV file what encoding it is in. The default is right in the large majority of cases, but when it isn't, it can be very difficult to figure out the correct encoding. Ask your source what the encoding of the file is. o Field separator: Choose the character that separates the fields in the file. o Comment delimiter: If there are comment lines in the file, type the character that starts a comment line.

  • PAGE 663

    PDF/VT file options After selecting a file, use the drop-down to select what level in the PDF/VT file defines a record in your data. The names of the levels are taken from the PDF/VT file itself. (See "About PDV/VT files" below.) All metadata fields that belong to the chosen level and levels higher up in the tree structure will be listed. The lower the chosen level is in the tree structure, the more records you will get and the more metadata fields will appear in the list.

  • PAGE 664

    Adding data from a database 1. Click File, select Add Data and then click From database data source. Browse to the location of the file and select it. The Designer can open databases from the following types of data sources: l MySQL l Microsoft Access Database (.mdb, .accddb) l SQL Server l ODBC DataSource l JDBC l Oracle. 2. Review the options presented. The options available depend on the type of database data source; see below. MySQL 1.

  • PAGE 665

    Microsoft Access 1. Enter the appropriate information to connect to the database: l File name: Browse to your Microsoft Access database file (.mdb) l Password: Enter a password if one is required. 2. Click Next and enter the information for the source table. l l l Connection string: Displays the full path to the database. Table: Use the drop-down to select the appropriate table or stored query to retrieve the appropriate data set.

  • PAGE 666

    ODBC DataSource 1. Select the ODBC system data source. Note: Only 32-bit data sources are currently shown in this dialog, even if your system is 64-bits. 2. Click Next and enter the information for the source table. l l l Connection string: Displays the full path to the database. Table: Use the drop-down to select the appropriate table or stored query to retrieve the appropriate data set. Encoding: Use the drop-down to select the encoding with which to read the data in the table. 3.

  • PAGE 667

    2. Click Next and enter the information for the source table. l l l Connection string: Displays the full path to the database. Table: Use the drop-down to select the appropriate table or stored query to retrieve the appropriate data set. Encoding: Use the drop-down to select the encoding with which to read the data in the table. 3. Click Finish to open the database. Oracle 1. Enter the appropriate information to connect to the database: l Server: Enter the server address for the Oracle database.

  • PAGE 668

    Add a counter using the Generate Counter Wizard Generating a counter is useful for numbered tickets or any other template requiring sequential numbers but no variable data. The Generate Counter Wizard creates a record set with a Counter field and in that field, the current counter value for each record. The Counter starts and stops at set values and is incremented by a set value as well. 1. To open the Generate Counter Wizard, select File > Add data > Generate counters. 2.

  • PAGE 669

    Variable Data Variable data are data from a database or data file that are used to personalize documents for each customer. Variable data fields can be inserted in the text directly. For example, if a person's last name can be found in your data, the field that holds the last name can be used in the text of a web page, letter or email. Scripts in PlanetPress Connect Designer are the basis of Variable Data Printing.

  • PAGE 670

    o A placeholder for the value of the data field shows up in the text. It looks as follows: @FIELDNAME@. o A text script appears in the Scripts pane at the bottom left. A text script replaces placeholders in the content with the value of a data field in the current record. Switch to the Preview tab at the bottom of the workspace to see the script in operation.

  • PAGE 671

    used as the background image of a section (see "Using a PDF file as background image" on page 393). Tip Drag the data field directly to the Scripts pane to create a script without adding a placeholder to the template. Note Looking for text in a text is a less optimized operation and may impact output speeds in longer documents. To speed up the output process, put the placeholder(s) in a Box or Span (see "Boxes" on page 570), give that Box or Span an ID and use that ID as the script's selector.

  • PAGE 672

    2. Change the name of the script to make clear what it does. Note Scripts can only have the same name when they are not in the same folder. 3. The selector states the text to be found in the template. The results can be replaced by the script. Tip Hover over the name of a script in the Scripts pane to highlight parts of the template that are affected by the script. l Text, for example: @lastname@, or {sender}.

  • PAGE 673

    that have the class 'green'. See "Styling and formatting" on page 614 for an explanation about CSS (Cascading Style Sheets). n An HTML element with a specific ID. In the Script Wizard, click Selector and type the ID, including the preceding #, for example: #intro. Note Each ID should be unique. An ID can be used once in each section. n l Etcetera. See http://www.w3schools.com/cssref/css_selectors.asp for more selectors and combinations of selectors. A selector and text.

  • PAGE 674

    bold. This is the default setting. l l As text. This inserts the results as-is, meaning HTML tags and elements are displayed as text in the output. In this scenario, "
    " shows up in the text and does not insert a line break. As the value of an attribute of an HTML element. The selector of the script should be an HTML element. Which attributes are available depends on the selected HTML element.

  • PAGE 675

    Tip l l An example of how to create an address block using the Text Script Wizard is described in a how-to; see How to create an Address Block. To use only part of a data field, or to split the data, you will have to write a script. For an example, see this How-to: How to split a string into elements.

  • PAGE 676

    2. Click a data field that contains text, or add such a data field to the script with the Add field button on the right. 3. Under Format you can choose one of the following options: l l l l l l l l l l l Custom Pattern opens a dialog in which you can enter a custom pattern the date (and, optionally, the time). The dialog shows an example of a date formatted according to the given pattern. Do not put the pattern in quotes. For possible patterns see "Date and time patterns" on page 1065.

  • PAGE 677

    1. Open the Text Script Wizard: double-click to open an existing script in the Scripts pane or create a new Text Script using the Text Script Wizard; see "Using the Text Script Wizard" on page 671. 2. Click a data field that contains text, or add such a data field to the script with the Add field button on the right. 3. Under Format choose the correct setting: l Uppercase transforms all characters to uppercase. l Lowercase displays transforms all characters to lowercase.

  • PAGE 678

    l l l l Currency displays a number as an amount of money, with a thousands separator and rounded to two decimal places, based on the current locale; see "Locale" on page 654. Currency no symbol does the same as Currency, but omits the currency symbol. Leading zero adds a leading zero to a floating value between 0 and 1. This format is only available for fields that contain a float value.

  • PAGE 679

    conditional content script can hide or show those pieces. An ID (for example: #conditional-script) is best if you want to show or hide one element only. Use a class selector (for example: .conditional) if the script should show or hide more than one element. See "Using the Text Script Wizard" on page 671 for further explanation on selectors. If you have started the Conditional Script Wizard by right-clicking an element, you don't have to set a selector.

  • PAGE 680

    10. To see the result, toggle to the Preview tab at the bottom of the workspace (or select View > Preview View on the menu). Showing or hiding several elements with one conditional script To apply one conditional content script to several elements, you have to use a CSS class or HTML element as the selector of the script. When using a CSS class, apply that class to the elements in question: 1.

  • PAGE 681

    Conditional Print sections You can include or exclude entire Print sections from the output, depending on a field’s value. This can be done using the Conditional Print Section Script Wizard, described below. Alternatively you could write a Control Script (see "Control Scripts" on page 711). Including or excluding Print sections using the Conditional Print Section Script wizard 1. Right-click the section and click Make Conditional.

  • PAGE 682

    Note More complex conditions can be written in the Script Editor: click Expand and edit the code of the script. See "Control Scripts" on page 711. 8. Click Apply or OK. 9. To see the result, toggle to the Preview tab at the bottom of the workspace (or select View > Preview View on the menu). Take a look at the Resources pane: on each Print section that is affected by a Conditional Print Section script a small decorator appears if it is skipped with the current data record.

  • PAGE 683

    The Dynamic Image Script Wizard composes a file name (including the path) based on the value of a data field, a prefix and a suffix: l The prefix shows the path of the image. l The suffix states the file extension of the image. l The file name is the value of the data field(s) in the Field column. The prefix and suffix are derived from the current image. 3. If necessary, enter another Prefix and/or Suffix. 4. Click the first field in the column Field, and then click the downward pointing arrow.

  • PAGE 684

    dynamic. In a Print context it will automatically overflow into as many pages as necessary to output all rows and it can display a transport line. Detail Tables are only available when the loaded record set or Data Mapping Configuration contains transactional data in one or more detail tables (see "Loading data" on page 658). Creating a Detail Table To create a Detail Table: 1. Open the Insert Detail Table dialog.

  • PAGE 685

    l l l Field name: Type the name to display in the footer when displaying that page's subtotal. Show in footer: Check to display the subtotal in the footer of the table at the bottom of each page and at the end of the table. Show in header (transportline): Check to display the subtotal of the previous page at the top of the table. 5. Click Next and select the styling attributes. Use the drop-down to select the desired table style. Choose No Style if you want to style the table yourself. 6.

  • PAGE 686

    make a header row appear at the start of the table and on following pages, make sure that it is not marked as Transport line. l A footer row can appear before each page break (Before page break), if the table gets split over multiple pages, or only at the end of the table (At end of table), or before each page break and at the end (Always). You can fill additional rows as usual. You could for example drag a data field to the new row (see "Variable Data" on page 669) or type in the cells.

  • PAGE 687

    The height of the Detail Table is adjusted automatically to the amount of data added to it in Preview mode or when generating output. It is however possible to change the height of the rows: click in the row and type the desired height in the respective field on the Attributes pane. All line item rows will have the same height. Hiding an empty Detail Table The number of rows in a Detail Table is variable, as it depends on a detail table in the data.

  • PAGE 688

    select Row > Show; see "Adding a row at the bottom or the top of a Detail Table" on page 685. l l data-breakable: this attribute is added to every copied row (in preview mode or when creating output), in each of them with a unique ID as its value. This is required by the pagination routines of Connect to split the table across pages. data-column-resize, if present, indicates that the columns may be resized (datacolumn-resize="").

  • PAGE 689

    Tip In Workflow, you can make use of the system variable %U to create unique strings for pURLs that point to personalized landing pages (in emails, for example, or in a QR code). Creating a personalized URL Creating a personalized URL implies writing a script. See "Writing your own scripts" below. It also requires some planning, because the pURL needs to contain data that is necessary to create the web page.

  • PAGE 690

    Script types There are generally two types of scripts in the Designer: Control Scripts and template scripts. Control Scripts don't touch the content of the sections themselves, but they change the way a template is outputted, for example by selecting or omitting sections from the output. For more information about Control Scripts and their use, see "Control Scripts" on page 711. Template scripts can change the contents of sections in a template. This type of script must have a selector.

  • PAGE 691

    Creating a new script Writing a template script starts with this procedure: 1. On the Scripts pane at the bottom left, click New. A new script appears in the list. Doubleclick on it to open it. 2. Change the name of the script, so that it reflects what the script does. Note Scripts can only have the same name when they are not in the same folder. 3. Choose which kind of selector you want to use. Running a script starts with searching the template for pieces of content that match the script's selector.

  • PAGE 692

    l A selector and text. This is text inside an HTML element (or several HTML elements) with a specific HTML tag, CSS class or ID. In the Script Wizard, click Selector and Text. Tip When output speed matters, choose selector or selector and text. Searching text is a rather lengthy operation, compared to searching for HTML elements and/or CSS selectors. See also: "Testing scripts" on page 697. There is a shorter route to create a script for an element with a specific ID: 1.

  • PAGE 693

    variable, are JavaScript keywords. There are countless tutorials available on the Internet to familiarize yourself with the JavaScript syntax. For a simple script all that you need to know can be found on the following web pages: http://www.w3schools.com/js/js_syntax.asp and http://www.w3schools.com/js/js_if_ else.asp. A few examples can be found in a How-to: Combining record based conditions. Tip In the editor window, press Ctrl + Space to see the available features and their descriptions.

  • PAGE 694

    var amount = record.fields.AMOUNT; if (amount >= 0) {results.css('color', 'green');} else if (amount < 0) { results.css('color', 'red'); } When this script executes, it stores the value of the AMOUNT field from the current record in a variable and evaluates it. If the value is zero or higher, the color of text in the results the table cells in this case - will be set to green; if the value is below zero, the text color will be set to red.

  • PAGE 695

    l Click a script or a folder in the Scripts pane at the bottom. Drag it up or down and drop it. Note Control scripts are always executed first, regardless of where they are in the Scripts pane. They can not be excluded from execution for a specific context or section, using the execution scope of a folder; see "Execution scope" on the facing page. What you can do is disable the script or the containing folder; see "Enable/disable scripts" on the facing page.

  • PAGE 696

    Note Control scripts are always executed first, regardless of where they are in the Scripts pane. They can not be excluded from execution for a specific context or section, using the execution scope of a folder; see "Execution scope" below. What you can do is disable the script or the containing folder; see "Enable/disable scripts" below. Execution scope A particular script may be used in one context or section, but not in other contexts or sections.

  • PAGE 697

    scripts normally run, whether or not their placeholder or selector is present in your template. It is highly recommended to disable any script that is not relevant to specific sections or contexts. When you disable a folder, all scripts in the folder will be disabled. To enable or disable a script or a folder: l On the Scripts pane, right-click the script or the folder and click Disable (if the script or folder was enabled) or Enable (if the script or folder was disabled).

  • PAGE 698

    You can even do this while creating a new script, either with a Script Wizard or in the expanded script editor. Click Apply at the bottom of the script editor to see the effect of the script on the Preview tab of the Designer. Note that scripts that use values of data fields can only be effective when a data file or Data Mapping Configuration is open. See "Loading data" on page 658. Testing for errors One way to see if a script is functional is to take a look at the Scripts pane.

  • PAGE 699

    1. On the menu, select Context > Preflight. 2. Select All, or enter a selection of records. You can specify individual records separated by semi-colons (;) or ranges using dashes. For example: 2;4;6-10 would print pages 2, 4, 6, 7, 8, 9 and 10. 3. Click OK. Preflight executes the template without actually producing output. When a data mapping configuration is used, any pre- and postprocessors are run as well. The Preflight window displays any issues once it’s done.

  • PAGE 700

    l l Hover the mouse over a value in the column Elapsed to see the time elapsed (in milliseconds) since the start of the session. In the Scripts Profiler, the scripts are by default sorted based on the values in the Elapsed column, from high to low. Hover the mouse over a value the column Delta to see the difference between the time elapsed (in milliseconds) in the previous session and in the current session. The script execution stages are: Query: the time it takes to find the selector in the template.

  • PAGE 701

    1. On the menu, select Window > Preferences. 2. Click Scripting. 3. Set a number of iterations (maximum one billion) and click OK. Sorting In the Scripts Profiler, the scripts are by default sorted based on the values in the Elapsed column, from high to low. Click any of the columns to sort the scripts according to the values in that column.

  • PAGE 702

    Use an ID as selector Scripts (except Control Scripts) start with a query. The selector in the second column in the Scripts pane is what a script looks for in the template. If you've used the drag-and-drop method (without pressing the Alt or Ctrl key) to insert a data field in a template, the selector is a small text: the name of the data field surrounded by @ signs, @firstname@ for example. Looking for text in a text is a less optimized operation and may impact output speeds in longer documents.

  • PAGE 703

    Example The following example loads a snippet into a variable and uses the find() and text() commands of the Designer scripting API. var labelElm = loadhtml('snippets/label.html'); for(var i = 0; i < record.tables.products.length; i++) { var label = labelElm.clone(); label.find('@ProductLabel@').text(record.tables.products [i].ProductDescription); results.after(label); } What's wrong with this code is that it inserts the personalized information within the loop.

  • PAGE 704

    For this, you could use toString(): var labelSnippet = loadhtml('snippets/label.html').toString(); Or you could copy the HTML of the QueryResults to a variable: var block = results.html(); Example var labelSnippet = loadhtml('snippets/label.html').toString(); var labelStr = ""; for( var i = 0; i < record.tables.detail.length; i++) { var label = labelSnippet; label = label.replace('#', i); label = label.replace('@product@', record.tables.detail[i].fields ['product']); label = label.replace('@notes@', record.

  • PAGE 705

    Replace several placeholders in one script Suppose there are 20 different placeholders in a postcard (for the address, account and customer details, a promo code, the due date, discounts, a link to a personalized landing page etc.). Typically this would require 20 queries. Even after optimizing these scripts by using an ID as selector for those scripts, there are still 20 scripts, 20 queries to run. If there was only one query, one single script to do all the work, the output could be generated much faster.

  • PAGE 706

    Other resources There are also many resources online to help learn about JavaScript performance and coding mistakes. See for example: l JavaScript performance l The 10 most common JavaScript mistakes l Tips for writing efficient JavaScript. Note that most resources on the web are about JavaScript in the browser, but the greatest majority of the tips do, indeed, apply to scripts in general, wherever they are used.

  • PAGE 707

    In script, use the following code: results.loadhtml(‘snippets/nameofthesnippet.html’, ‘selector’) See "loadhtml()" on page 1067 for more information about this function. Loading a snippet, depending on the value of a data field To load a snippet depending on the value of a data field, you have to add a condition to the script. Example The following script evaluates if the value of the LANGUAGE field in the record is ‘En’. If so, the snippet is added to the content. if (record.fields.

  • PAGE 708

    Tip An easy way to group content in a snippet is putting each part in a container and giving that container an ID, for example:

    This is text for English customers.

    Use the function .children() to load the contents of the container, and not the container itself. For example: results.loadhtml(‘Snippets/myfooter.html’, ‘#EN’).children() This script loads the paragraph of the example (

    ), but not the container itself (

    ).

  • PAGE 709

    If that option is not available, you will have to build the link yourself. Find the server's API and look through it to get the exact endpoint and parameters that you need. With many servers it is required to use an API key in the link; this key generally comes for free after you sign up to their website. The key will be part of the link that is used to make a request to the server. Note Pay attention to the service's Terms of Service.

  • PAGE 710

    Retrieving content Depending on the type of content that the remote server returns - HTML or JSON - you can use loadhtml(location) or loadjson(location) (see also: "loadhtml()" on page 1067 and "loadjson()" on page 1070) to retrieve the content. The link that you selected in Step 1 should be passed to the function as a string. For example: loadjson('https://blog.mozilla.

  • PAGE 711

    html += ''; results.after(html); See WordPress REST API developer endpoint reference. Tip More examples of how to use an API to load external content are given in these How-to's: l Using the Google Maps API l Using the OpenWeatherMap API Control Scripts When output is generated from a template, Control Scripts run before all other scripts, when a record is merged with a context. They determine how different sections of the context are handled.

  • PAGE 712

    with the Print context as attachment - all scripts run once before each context; Control Scripts first. l Control Scripts don't have a selector, like the other scripts do. A selector selects parts of the content of a section and stores them in the results object, so that they can be modified in the script. As Control Scripts don't have a selector, the results object can't be used there. Control Scripts don't touch the content - meaning, the text flow - of the sections.

  • PAGE 713

    Control Scripts differ from template scripts in two ways: l l Control Scripts run before all other scripts. When a template consists of several contexts, and these contexts are combined in the output - for example, when an Email is generated with the Print context as attachment - all scripts run once for each context, but Control Scripts always go first. Control Scripts don't touch the content - meaning, the text flow - of the sections. They don't have a selector, like the other scripts do.

  • PAGE 714

    Task l See topic Select one print section as PDF attachment if the output is to be emailed, and another print section if the output is to be printed. Field/function of section object at the examples in the following topic: "section" on page 1084. Add sections dynamically "Dynamically adding sections (cloning)" on page 721. clone() Add a header to an email "section" on page 1084, example: "Adding custom ESP handling instructions" on page 1128.

  • PAGE 715

    Note that even if a section is not enabled (so it will not be outputted), its restartPageNumber flag is still taken into account for composing the page number sequences. By default, each section has restartPageNumber = false when the first control script runs. Tip If you are looking to create a table of contents, add a template script that uses the pageRef() function. For an example, see "Creating a table of contents" on page 1048.

  • PAGE 716

    Disabled section When a section is disabled, it will not be outputted, but its restartPageNumber flag will still be taken into account for composing the page number sequences. So, if the restartPageNumber flags are set as follows: 1. Section A (1 page) restartPageNumber = true 2. Section B (2 pages) restartPageNumber = false 3. Section C (3 pages) restartPageNumber = true, enabled = false 4. Section D (4 pages) restartPageNumber = false In code: if (merge.context.type == ContextType.PRINT) { merge.context.

  • PAGE 717

    Defining parts Defining parts is done by setting the part field on a section, for example: merge.template.contexts.PRINT.sections['Section 2'].part = "PDF_Attachment2";. (Also see "section" on page 1084 and "Control Script API" on page 1077.) l l If a part name is given, then that delimits the start of a new part (even if the part name is the same as the previous one). Following sections that don't define a part name, will be added to the previous part.

  • PAGE 718

    Note For Web sections, a part always consists of only the given section. Web pages cannot be appended to form a single part. It is however possible to attach multiple Web pages to one email; see the following example. Controlling multiple Email attachments The following script attaches the following sections to an email: l Print section 3 + 4 as attachment with continued page numbers l Print section 6 as separate attachment l Web sections A and B as separate attachments if (channel == Channel.

  • PAGE 719

    Control Script: Setting a Print section's background In the Print context, a PDF file can be used as a Print section's background. To learn how to do this without a Control Script, see "Using a PDF file as background image" on page 393. With a Control Script, a Print section's background can be set dynamically. You could for example specify a particular PDF file as a section's background depending on the value of a field in the current record. This topic shows how.

  • PAGE 720

    Setting a page range in script When a PDF that serves as a dynamic section background has multiple pages, you can specify a range of pages to be used, in a control script. Put the number of the first page in the range in the section's background.start field and the last page in background.end. This requires you to set the background.allPages option to false, first. This option is true by default and takes precedence, so when it is true, the entire PDF will be used, even if a page range has been set.

  • PAGE 721

    Dynamically adding sections (cloning) This topic explains how to clone a section in a Control Script. Print sections can be cloned, so that a document can have a dynamic number of sections, based on data. This is particularly useful when the record set defines one or more PDFs (e.g. insurance policies) per recipient. Via a Control Script, for each PDF a section can be cloned and each clone can be given one of the PDFs as background (see "Control Script: Setting a Print section's background" on page 719).

  • PAGE 722

    Targeting elements in a cloned section Clones that have a unique name can be further personalized with the use of CSS style sheets (see "Styling and formatting" on page 614) and personalization scripts (see "Variable Data" on page 669 and "Writing your own scripts" on page 689). The selector to use is: [section="name of the clone"].

  • PAGE 723

    printSections["Section 1"].addAfter(clone); } Cloning a section based on data and assigning a background PDF This script clones a section based on data fields. It disables the source section first and then calls the addPolicy function. addPolicy clones the section, renames it and sets a PDF from the resources as its background. It explicitly enables the clone and then adds it to the Print context. var printSections = merge.template.contexts.PRINT.sections; merge.template.contexts.PRINT.sections["Policy"].

  • PAGE 724

    Setting passwords in script To set a password on a Print section in a Control Script, the script should first retrieve the Print section/s using merge.template.contexts.PRINT.sections or merge.context.sections (also see the example below). Next, the script can split the attachments, if needed (see "Parts: splitting and renaming email attachments" on page 716), and it can set a password on each section. For example: l merge.template.contexts.PRINT.sections['Section 2'].password = 'secret'; l merge.

  • PAGE 725

    Example This scripts splits the Print output into two PDF attachments and sets a password for the second attachment. var printSections; if (channel == Channel.EMAIL) { // only when generating Email output if (merge.context.type == ContextType.PRINT) { printSections = merge.template.contexts.PRINT.sections; printSections['Section 1'].part = 'PDFAttach1'; printSections['Section 2'].part = 'PDFAttach2' printSections['Section 2'].

  • PAGE 726

    Scripts are NOT executed again for every page. Post-pagination scripts currently don’t exist in Connect. Selectors in Connect Selectors are patterns used to select one or more HTML elements. They were originally developed to be able to define the layout of web pages without touching their content, through Cascading Style Sheets (CSS).

  • PAGE 727

    Connect classes and attributes Connect itself sometimes adds a specific class or attribute to elements in a template. Capture OnTheGo widgets, for example, have a role attribute that allows the COTG library to dictate their behaviour. Connect classes and attributes can be used in selectors, as will be explained and demonstrated below. Connect-specific classes usually are invisible in the Designer.

  • PAGE 728

    Sheet position selectors In Print output, pages have a sheet position that depends on the options set in the Sheet Configuration dialog (e.g. the Duplex and Allow Content On options). Connect gives each page - or rather, the "MediaBox" div element on that page - a class depending on their sheet position: l .frontside l .backside (does not apply to simplex documents) l .contentpage l .nocontentpage The MediaBox contains the Master Page objects and section backgrounds.

  • PAGE 729

    Print section background selector When you inspect a Print section in a browser, you will see that it has a

    element as the first child of the element. Inside this
    there are one or more MediaBoxes: elements with the class page_mediabox. Each MediaBox contains the Media, section background and Master Page that apply to one page (see "Media" on page 408, "Master Pages" on page 404 and "Using a PDF file as background image" on page 393).

  • PAGE 730

    View selectors In the Designer, sections can be viewed on different tabs: Source, Design, Preview and - if it is a Web section - Live. In each view mode (except Source) a specific CSS class is added to the element. The view-specific classes are: l .DESIGN l .PREVIEW l .OUTPUT .OUTPUT is used when viewing the current section on the Live tab or in an external browser, and when generating output.

  • PAGE 731

    Note The pattern image was created on www.patternify.com and is added as a data URI (see Data URIs). Showing hidden Foundation elements In Capture OnTheGo templates based on the Foundation framework the .DESIGN selector can be used to show elements that would otherwise be hidden in the Design view. For example, to expand accordion elements and show validation errors in Design view, you could add the following style rules to your template: .DESIGN .accordion .accordion-navigation > .

  • PAGE 732

    Dialogs Dialogs can allow you to perform a command or make settings. They can also ask you a question or provide you with information or progress feedback. Here is a list of all dialogs: Bar Chart Properties dialog The Bar Chart dialog appears when a Bar Chart object is right-clicked and the Chart... option is clicked. It determines how the Bar Chart is displayed in output and in Preview mode (see "Business graphics" on page 574).

  • PAGE 733

    l l Color: Type in the color in which to display text. The color value must be a valid hexademical color (HTML Hex Color) or a predefined CSS color (CSS color names). (Equivalent to the color property; see: color.) 3D Group: Creates a 3D effect if both settings in this group are higher than 0. l l Depth: The depth of the 3D part of the plot area. (Equivalent to the depth3D property; see: depth3D.) Angle: The angle of the 3D part of the plot area. (Equivalent to the angle property; see: angle.

  • PAGE 734

    l Axis group: l l l l Color: Enter a color for the value axis. The color value must be a valid hexademical color (HTML Hex Color) or a predefined CSS color (CSS color names). (Equivalent to the axisColor property; see: axisColor.) Opacity: Enter the opacity in percentage for the axis. 100 is fully opaque, 0 is transparent. Set opacity to 0 to hide the axis. (Equivalent to the axisAlpha property of the ValueAxis; see: axisAlpha.) Thickness: Enter the thickness of the axis.

  • PAGE 735

    l l l Opacity: Enter the opacity percentage of the grid. Default is 15%. 100 is fully opaque, 0 is transparent. (Equivalent to the gridAlpha property; see: gridAlpha.) Thickness: Enter a thickness for the grid lines. Default is 1. (Equivalent to the gridThickness property; see: gridThickness.) Position: Specifies if a grid line is placed on the centre of a cell or on the beginning of a cell. (Equivalent to the gridPosition property; see: gridPosition.

  • PAGE 736

    l Auto Wrap: Specifies if axis labels (when horizontal) should be wrapped if they don't fit in the allocated space. (Equivalent to the autoWrap property; see: autoWrap.) Graphs tab Most settings on the Graphs tab correspond to properties of the AmGraph class in the amCharts library; see: AmGraph. l Labels: l l l l l l Text: Text of the data labels. You can use tags like [[value]], [[description]], [[percents]], or[[category]]. (Equivalent to the labelText property; see: labelText.

  • PAGE 737

    l Legend Group: Defines how the legends are shown. l l l l l l l Equal label widths: Check so that all labels are of equal width in the Legends box. The Legend's width will accommodate the largest value. (Equivalent to the equalWidths property; see: equalWidths.) Position: Use the drop-down to select where the legend is shown: at the Right, Left, Top or Bottom. (Equivalent to the position property; see: position.

  • PAGE 738

    l l l Border Width: Use the drop-down to define the thickness of the border added to the Markers. The default value (0) means the line will be a "hairline" (1 px). In case the Marker type is line, this style will be used for the line thickness. (Equivalent to the markerBorderThickness property; see: markerBorderThickness.) Border Color: Color of the Legend's border. The value must be a valid hexademical color (HTML Hex Color) or a predefined CSS color (CSS color names).

  • PAGE 739

    Box tab l General group: l l l l l l l Height: Set the height of the box in measure or percentage. When no unit is entered, the default unit will be added to the value (see "Preferences" on page 768). Equivalent to the CSS height property. Angle: Set the rotation angle of the box in clockwise degrees. Equivalent to the CSS transform:rotate property. Corner radius: Set the radius of rounded border corners in measure or percentage. Equivalent to the CSS border-radius property.

  • PAGE 740

    l l Right: Set the horizontal offset between this box and its parent's left position. Equivalent to the CSS right property. Z-index: Set the z-index of the box. The z-index defines in which order elements appear. Equivalent to the CSS z-index property. Background tab For information about backgrounds see "Background color and/or image" on page 643. l General group: l l Color: Specify the color of the box background. The color value must be a valid HTML Color Name, or a valid HTML Hex Color.

  • PAGE 741

    l Margin group: Defines margins (spacing outside the element) in measure or percentage: l l All sides: Check to set all margins to use the Top value. Equivalent to the CSS margin property. Top, Left, Bottom, Right: Set the margin for each side. Equivalent to the CSS margin-left, margin-top, margin-right and margin-bottom properties. Border tab For information about borders see "Border" on page 644. l l Same for all sides: Defines the border properties for all sides using the Top properties.

  • PAGE 742

    l l Fit to width only: When this option is checked, no line breaks will be added to the text. Child (optional): When specified, the Copy Fit feature will only be applied to the given child element (an element inside the Box or Div). Specify the element by giving its ID, for example: #product, or class, for example: .product - note the dot. Color Picker The Color Picker dialog appears when creating a color in the formatting dialogs of certain elements, for example border colors in boxes and paragraphs.

  • PAGE 743

    Colors Properties The Colors Properties defines and sets named colors used in the template; see "Colors" on page 647. Named colors can be used throughout the templates, in all contexts. They are visible in color selector dialogs and useable with their names in style sheets; see "Styling and formatting" on page 614. l l l l Color Type Selector: Click and use the drop-down to display which color types to show in the list: All, RGB, CMYK or Spot colors.

  • PAGE 744

    l l l Red/Green/Blue (RGB): Each slider sets the values of 0-255 for the color. Set the value using the sliders or type in the value directly in the input boxes. Color Preview: Box displaying the preview of the color (converted to RGB when relevant). Tint: l l l Source: Select an existing Color in the template. The tint or opacity will be applied to this color. Tint/Opacity: The slider sets the percentage of tint or opacity.

  • PAGE 745

    l Options Group: l Rendering intent: Use the drop-down to specify how colors are converted that are out of range of a profile. For example, you may use tricks like reducing the saturation of the entire print so that a color that is out of range still appears a bit more vibrant than ones that are in range. Rendering intents use different methods to trick the eye into believing that the print can reproduce irreproducible colors.

  • PAGE 746

    included as well (see File Properties). The report has a standard layout. l Custom: To create a custom PDF report, you need two files: l l Template: A template design with the desired layout and variable data. This .OL-TEMPLATE file has to be made in the Designer. DataMapper: A Data Mapping Configuration that provides the variable data. This .OL-DATAMAPPER file has to be made in the DataMapper module, using the standard XML template report as data sample.

  • PAGE 747

    l Options l l l l l Case sensitive: Use a case sensitive search, which differentiates TEXT from text or TexT. Wrap search: Loop back from the end of the template or selection to its beginning, when the Search is at the end of the template or the selection. Whole word: Searches for the source string as a whole word. Incremental: With this option selected, each letter you type in the Find field causes the editor focus to move to the first complete occurrence of the text you are typing.

  • PAGE 748

    The following buttons appear to the right of the list of fonts: l New: Click to open the Edit Font dialog to add a new font. l Edit: Click to open the Edit Font dialog to edit the currently selected font. l Remove: Click to delete the currently selected font entry. l Duplicate: Click to create a copy of the currently selected font entry. Edit Font The Edit Font dialog appears when clicking New or Edit from the Fonts Dialog. l l l Name: Enter the name that should be used to refer to the font.

  • PAGE 749

    All settings in this dialog are in fact CSS properties. Cascading Style Sheets (CSS) were originally designed for use with web pages: HTML files. Since Designer templates are HTML files, they are styled with CSS. To learn how to use CSS in the Designer, see "Styling and formatting" on page 614 and "Styling templates with CSS files" on page 616. For information about specific properties and their options, see W3Schools CSS Reference.

  • PAGE 750

    l l Clear: Use the drop-down or type the value to clear pre-existing alignments. Equivalent to the CSS clear property. Positioning: l l l l l l Position: Use the drop-down or type in the value for the type of positioning for the image. Equivalent to the CSS position property (see "Using the CSS position property" on page 633). Top: Set the vertical offset between this image and its parent's top position. Equivalent to the CSS top property.

  • PAGE 751

    Border Tab l l Same for all sides: Defines the border properties for all sides using the Top properties. Equivalent to the CSS border property. Top, Left, Bottom, Right: Each group defines the following properties: l l l Width: Specify the thickness of the border. Equivalent to the CSS borderwidthproperty. Style: Specify the style of the border such as solid, dashed or dotted. Equivalent to the CSS border-style property. Color: Specify the color of the border.

  • PAGE 752

    3. Files are included in the order shown. To change this order, click one of the included files and use the Up or Down button. Note The styles in each following style sheet add up to the styles found in previously read style sheets. When style sheets have a conflicting rule for the same element, class or ID, the last style sheet ‘wins’ and overrides the rule found in the previous style sheet. Line Chart Properties dialog The Line Chart dialog appears when a Line Chart is right-clicked and the Chart...

  • PAGE 753

    l l Color: Type in the color in which to display text. The color value must be a valid hexademical color (HTML Hex Color) or a predefined CSS color (CSS color names). (Equivalent to the color property; see: color.) 3D Group: Creates a 3D effect if both settings in this group are higher than 0. l l Depth: The depth of the 3D part of the plot area. (Equivalent to the depth3D property; see: depth3D.) Angle: The angle of the 3D part of the plot area. (Equivalent to the angle property; see: angle.

  • PAGE 754

    l Axis group: l l l l Color: Enter a color for the value axis. The color value must be a valid hexademical color (HTML Hex Color) or a predefined CSS color (CSS color names). (Equivalent to the axisColor property; see: axisColor.) Opacity: Enter the opacity in percentage for the axis. 100 is fully opaque, 0 is transparent. Set opacity to 0 to hide the axis. (Equivalent to the axisAlpha property of the ValueAxis; see: axisAlpha.) Thickness: Enter the thickness of the axis.

  • PAGE 755

    l l l Opacity: Enter the opacity percentage of the grid. Default is 15%. 100 is fully opaque, 0 is transparent. (Equivalent to the gridAlpha property; see: gridAlpha.) Thickness: Enter a thickness for the grid lines. Default is 1. (Equivalent to the gridThickness property; see: gridThickness.) Position: Specifies if a grid line is placed on the centre of a cell or on the beginning of a cell. (Equivalent to the gridPosition property; see: gridPosition.

  • PAGE 756

    l Auto Wrap: Specifies if axis labels (when horizontal) should be wrapped if they don't fit in the allocated space. (Equivalent to the autoWrap property; see: autoWrap.) Graphs Settings on the Graphs tab correspond to properties of the AmGraph class in the amCharts library; see: AmGraph. l Line: l Thickness: Sets the thickness of the lines in a Line chart. (Equivalent to the lineThickness property; see: lineThickness.) Tip Set "fillAlphas" = 1 on the Source tab to color the space below the lines.

  • PAGE 757

    l l l Vertical Space: Enter a numerical value (in pixels) to define the vertical space between legend items, and also between the legend border and the first and last legend item. (Equivalent to the verticalGap property; see: verticalGap.) Max Columns: Enter a numerical value to define the maximum number of columns in the legend. If the Legend's position is set to "right" or "left", this is automatically set to 1. (Equivalent to the maxColumns property; see: maxColumns.

  • PAGE 758

    see: markerBorderAlpha. When specified on the Source tab, the value should be between 0 and 1, e.g. 0.8.) Source tab The JSON on the Source tab reflects the choices made in the other tabs and, more importantly, provides the possibility to add in any amCharts configuration option that is unavailable via the other tab menus. For more information see: "Adding and editing properties manually" on page 580. Locale Settings The Locale dialog box sets the locale used inside the template.

  • PAGE 759

    l l Name: The name of the master page, displayed in all drop-downs where the Master Page is shown as well as in the "Resources pane" on page 841. Margins group: l l Header: The space at the top of the Master Page where no content will print, when this Master Page is used in a Section. Footer: The space at the bottom of the Master Page where no content will print, when this Master Page is used in a Section. Media Properties Media can only be used in a Print context.

  • PAGE 760

    background for the page. l Position: Use the drop-down to select how the PDF is displayed on the page: l Fit to Media: Select to stretch the PDF to fit the media size. l Centered: Select to center the PDF on the page, vertically and horizontally. l Absolute: Select to place the PDF at a specific location on the page. Use the Top and Left options below to specify the positioning of the PDF. l Top: The distance between the top side of the page and the top side of the PDF.

  • PAGE 761

    All settings in this dialog are in fact CSS properties. Cascading Style Sheets (CSS) were originally designed for use with web pages: HTML files. Since Designer templates are HTML files, they are styled with CSS. To learn how to use CSS in the Designer, see "Styling and formatting" on page 614 and "Styling templates with CSS files" on page 616. For information about specific properties and their options, see W3Schools CSS Reference.

  • PAGE 762

    l Orphans: Specifies how to handle orphans within the paragraph (lines appearing alone at the end of a page if the paragraph does not fit on the current one). Equivalent to the orphans property. Note For more information on page breaks, widows and orphans, see the W3 Paged Media reference. Spacing tab l Padding group: Defines padding (spacing inside the element) in measure or percentage: l l l All sides: Check to set all padding to use the Top value. Equivalent to the CSS padding property.

  • PAGE 763

    PDF Attachments dialog The PDF Attachments dialog defines options for the Email context that are used when generating email output with PDF attachments (see "Generating Email output" on page 1123). To open this dialog, right-click the Email context on the Resources pane and select PDF attachments. Alternatively, select Context > PDF Attachments on the main menu. This option is only available when an Email section is being edited in the Workspace.

  • PAGE 764

    l l Color: Type in the color in which to display text. The color value must be a valid hexademical color (HTML Hex Color) or a predefined CSS color (CSS color names). (Equivalent to the color property; see: color.) Slice Colors Group Note Settings made in this group override the settings made in the Chart wizard (see "Selecting data in a Business Graphic script" on page 577). l l l Base Color: Enter a valid HTML hexadecimal color value (HTML Hex Color).

  • PAGE 765

    l Pie Group: Defines how the pie chart is displayed in the template. l l l l Radius: Enter the radius of the Pie Chart as a percentage of the shortest length of the containing

    object (e.g. 30%) or in pixels. (Equivalent to the radius property; see: radius.) Hole Radius: Enter the radius of the center of the Pie Chart to remove, in pixels or as a percentage. The hole radius removes the center of the chart, creating a doughnut hole pie chart.

  • PAGE 766

    l Tick Group: Defines how ticks (line between the Pie chart and its labels) is shown. l l l Color: Enter a valid HTML hexadecimal color value (HTML Hex Color) or a predefined CSS color (CSS color names) for the color of the tick. (Equivalent to the labelTickColor property; see: labelTickColor.) Opacity: Enter a percentage of opacity for the tick to be displayed. The default is 20 (20% opacity). 100 is fully opaque, 0 is transparent. (Equivalent to the labelTickAlpha property; see: labelTickAlpha.

  • PAGE 767

    l l l l Horizontal Space: Horizontal space between legend items, in pixels. (Equivalent to the spacing property; see: spacing.) Vertical Space: Enter a numerical value (in pixels) to define the vertical space between legend items, and also between the legend border and the first and last legend item. (Equivalent to the verticalGap property; see: verticalGap.) Max Columns: Enter a numerical value to define the maximum number of columns in the legend.

  • PAGE 768

    l Border Opacity: Enter a numerical value between 0 and 100 to define the opacity (in percentage) of the border. (Equivalent to the markerBorderAlpha property; see: markerBorderAlpha. When specified on the Source tab, the value should be between 0 and 1, e.g. 0.8.) Source tab The JSON on the Source tab reflects the choices made in the other tabs and, more importantly, provides the possibility to add in any amCharts configuration option that is unavailable via the other tab menus.

  • PAGE 769

    l Apply: This option Applies the settings made within the current Preferences page, but does not close the Preferences dialog. -----------------------------------------------------------------------------------------COTG Servers preferences By allowing one or more Capture OnTheGo servers to be set up, this option anticipates the release of a Capture OnTheGo On Premise Server product. l Name: Enter a unique name. l URL: Enter a valid URL (including the protocol, e.g. http://).

  • PAGE 770

    All the files created and the database references to them are stored for a set amount of time in order to allow Connect to reuse them. However, we do not want to store these indefinitely, because the database would run out of space. The solution is to use the "Clean-up Service" to remove the temporary data and files once they are no longer needed. This clean-up service is usually managed by the Server Engine.

  • PAGE 771

    Note If the Product managing the service is set to Designer, then the Designer must be running at the time that the cron job is scheduled, for the Clean-up to run. l Product managing the service: Select which of the applications will run the service. Note The Server Engine is set as the default as it is generally considered the best option.

  • PAGE 772

    with a lower number of threads. l l Number of entities in each deletion batch: The number of entities to be deleted at a time. This is done to break the clean-up into smaller chunks. This improves PlanetPress Connect clean-up responsiveness, whilst the clean-up is occurring. The number selected here applies to all the following settings. i.e. a selection of 1,000 would delete 1,000 data records within a Data Set, 1,000 content items within a Content Set, and so on.

  • PAGE 773

    l l l Minimum time to retain other entities: The minimum time any orphaned data (such as Finishing tables, Media tables, DataModels and Properties tables) are retained within the database before being set for deletion. Database Partition Settings: l Use Database Partitioning: Select to use Database Partitioning.

  • PAGE 774

    Note This is not a migration tool. It is a simple connection tool, that enables shifting to a different back-end database. Any existing data will not be transferred/ migrated between the databases, and any existing Filestores will be cleansed by the Clean-up Service after the swap. Note When shifting to a different back-end database, the changes won't be applied until PlanetPress Connect is restarted. Including the Connect services.

  • PAGE 775

    l Hostname: Enter the IP Address or alias of the server where database resides. l Port: Enter Port number. The defaults are those which the vendors use by default. l Schema: The individual database schema, within the vendor database. Note If a previously non-existent schema were chosen here, then a new schema of that name will be created within the database when the back-end database swap is applied. The tables within that schema, though, will not be created until Connect is restarted.

  • PAGE 776

    l Custom database parameters table: These are extra parameters which are appended to the database connection URL. The default values are those which have been determined to be useful in connecting to specific vendor databases. l Property: These are free field text fields. Note These fields and their associated values get appended to the JDBC connection and therefore must follow all rules regarding acceptable URL addresses for such. l l l l Value: The value applied to the associated Property.

  • PAGE 777

    Datamapper preferences Datamapper XML Preferences l Display New Line Character as ¶ : Check to show line returns as ¶ in the Data Viewer, when XML files are shown. If the option is unchecked, you will not see spaces and line returns after element names in the Data Viewer. Datamapper Default Format Settings Datamapper stores user preferences for the Date, Number and Currency formats. By default, the user preferences are set to the system preferences.

  • PAGE 778

    l l Object Resizing for

    elements: This defines in which contexts to enable the resizing of
    elements (including Positioned and Inline boxes). Resizing
    elements may cause layouts to produce undesirable results especially when using Foundation templates. l Enable for Print Context: Check to enable
    resizing in the Print contexts. l Enable for Web Context: Check to enable
    resizing in the Web contexts.

  • PAGE 779

    l l l Bleed box: This color delineates the printable area on a page; see "Page settings: size, margins and bleed" on page 398. Master pages: These edges are only visible on Master pages; see "Master Pages" on page 404. l l l Margins: This color delineates the content area on a page; see "Pages" on page 397. Header and Footer Margin: This color highlights the header and footer margin set for the Master page; see "Adding a header and footer" on page 406.

  • PAGE 780

    l l Email Address: Enter the email that is set by default in the "From Email" field in the Send Email and Send Test Email dialogs ("Send (Test) Email" on page 801). Litmus account Group: l Email Test address: If you have a Litmus account, enter the test address to use when sending a test email (see "Send (Test) Email" on page 801). For more information on Litmus, please see http://litmus.com/.

  • PAGE 781

    l Apply: This option Applies the settings made within the current Preferences page, but does not close the Preferences dialog. -----------------------------------------------------------------------------------------Emmet Preferences Emmet is a framework that enables the lightning-fast creation of HTML code though the use of a simple and effective shortcut language resembling CSS Selectors (see "Emmet" on page 417).

  • PAGE 782

    l Extensions Path: Choose a folder where to put json and js files to extend Emmet. This includes custom snippets, preferences and syntax profiles. For more information see Customization. Emmet Abbreviation Preferences This Preferences tab lets you add and manage custom abbreviations. All standard abbreviations can be found in Emmet's documentation: Abbreviations. If there is no need to transform the text while expanding it, create an Emmet snippet instead (see below). l New: Add a new abbreviation.

  • PAGE 783

    while they all have identical options, they control different output types: CSS, HAML, HTML, XML, XSL and the "Default" one controlling the rest of the types. These options are equivalent to Emmet's syntaxProfiles.json feature. Emmet Snippets Preferences Emmet Snippet are similar to abbreviations in that they are expanded when the Tab key is pressed, but they are just blocks of plain text. Anything in a snippet will be outputted “as is”, without any transformation. l New: Click to create a new snippet.

  • PAGE 784

    and keep the original snippets. Also, you can override variable values with inline abbreviation attributes: html:5[lang=ru]. l Name: The name of the variable. This should be a single alphanumeric string with no spaces or special characters. For example, the myVar name is referred to as ${myVar}. l Value: The value of the variable when the snippet is expanded. l New: Click to create a new variable and define its name and value. l Edit: Click to modify the currently selected Variable.

  • PAGE 785

    -----------------------------------------------------------------------------------------Logging Setting Preferences PlanetPress Connect logs the activities it undertaking consistently as it runs. These log files are essential when diagnosing issues with OL Support. New Connect logs but are created daily, so they need to be deleted periodically.

  • PAGE 786

    Warning We heavily recommend leaving the Logging patterns to the default value. We recommend the Logging patterns only ever be changed in conjunction with advice from OL Support. l Log message preview display: This is displays the format and content of the logging, based upon the Logging pattern setting. The Log Settings Preferences also provides you with buttons to : l l Restore Defaults. This option restores the preferences to Defaults.

  • PAGE 787

    General Print Preferences The General Print Preferences are used to set communication settings with the PlanetPress Connect Server module that does the actual generation of print output. The Server module can be located on the same computer (hostname: localhost) or on a different machine. Multiple Designer modules can use a single Server module to generate Print output, as long as the appropriate hostname, username and password are provided. In essence, this can be used to create a single Print Server.

  • PAGE 788

    l l l Test Print Server URL. This button is only available for the General Print Preferences. It tests the Print Server URL settings made within that Preferences page. Restore Defaults. This option restores the preferences to Defaults. This applies to the current Preferences page only, but not other Preferences. Apply: This option Applies the settings made within the current Preferences page, but does not close the Preferences dialog.

  • PAGE 789

    Backup files have the same name as the original file with two underscores and a progressive number (without leading zeros) at the end: originalname__1.OL-template, originalname__ 2.OL-template, etc. The Save Preferences also provides you with buttons to : l l Restore Defaults. This option restores the preferences to Defaults. This applies to the current Preferences page only, but not other Preferences.

  • PAGE 790

    The Scheduling Preferences also provides you with buttons to : l l Restore Defaults. This option restores the preferences to Defaults. This applies to the current Preferences page only, but not other Preferences. Apply: This option Applies the settings made within the current Preferences page, but does not close the Preferences dialog.

  • PAGE 791

    l Insert Form Field Defaults: l Style: Defines how labels are added to input form elements: l l l l l Attach label to input: The label is placed before the input, and refers to it: Use label as placeholder: The label is removed and the text is put as a placeholder, such as: No label: The label value is ignored.

  • PAGE 792

    l Apply: This option Applies the settings made within the current Preferences page, but does not close the Preferences dialog. -----------------------------------------------------------------------------------------Profile Scripts dialog The Script Profiler is accessible through the Context > Profile Scripts menu option. It runs the scripts in the template, using the current record, in order to verify the speed at which scripts in the "Scripts pane" on page 846 execute.

  • PAGE 793

    Script wizards Wizard types Script wizards are simplified interfaces for common scripts in templates: l l l l l Text Script: This is the default script that is created when a data field is dragged from the Data Model onto the page. See "Variable Data" on page 669. Dynamic Image Script: Provided that its selector refers to an image, this script dynamically changes the image for each record. See "Dynamic Images" on page 682. Email Scripts.

  • PAGE 794

    l l l l Field: A drop-down to select which field contents to use in the script. The field should contain a valid value. For an email script, for example, the field would have to contain an email address. Note that you can't select a field that belongs to a detail table. Format: A special formatting modifier applied to the Field; see "Formatting variable data" on page 675. Suffix: Static text to use after the set field. For Dynamic Image Scripts, the default suffix is .

  • PAGE 795

    l l Expand: Click to convert the script generator to a regular script. Note that this action is not reversible once the regular script has been saved. Apply: Saves changes made to the script and applies the changes in the template without closing the dialog. Expanded Script window When expanded, the Script window replaces all parts of the wizard below the Selector by a box in which the script can be typed. See "Writing your own scripts" on page 689.

  • PAGE 796

    l l l l l l l l Category: Use the drop-down list to select the data field (in the selected detail table) of which the values will appear under the bars or the line; in other words, on the x axis. Values: Select data fields with a numerical value. l l Detail table: Use the drop-down to select one of the detail tables that are part of the Data Model. Column: Removing the topmost check deselects all data fields. Labels: Click the label to enter a new label for a field.

  • PAGE 797

    l Name: The name of the script, making it easier to identify it. l Selector: The Selector or Text to apply the result of the script to. l l l Selector: Uses CSS selectors to find the element to which the script applies. Text: Uses text as a trigger for the script. The script applies to all instances of the text found in the template. Selector and Text: Uses text as a trigger for the script but only applies to text within the specified Selector.

  • PAGE 798

    Includes tab This tab lists the style sheets that can be applied to the email section when producing the output. Style sheets are loaded in the order shown, and styles in later style sheets overwrite earlier ones when the same selector is used. (See "Includes dialog" on page 751 and "Styling templates with CSS files" on page 616.) Attachments tab The Attachments tab lets you select files and delete attachments. For more information, see: "Email attachments" on page 434.

  • PAGE 799

    page 404). For an explanation of all settings on this tab, see "Sheet Configuration dialog" on page 804. Background tab This tab defines the background of the current Print section; see "Using a PDF file as background image" on page 393. Numbering tab The Numbering tab defines how page numbers are configured in the current Print section; see "Configuring page numbers" on page 400.

  • PAGE 800

    l Name: Displays the name of each section within the context. l Move Up: Click to move the currently selected section up one position. l Move Down: Click to move the currently selected section down one position. Send COTG Test The Send COTG Test dialog is used to send a document to the Capture OnTheGo app without the need to go through the Output to Capture OnTheGo task in PlanetPress Workflow (see Workflow Help: Output to Capture OnTheGo).

  • PAGE 801

    l l l l Recipient(s): The user name(s) that should receive the document. One or more emails and/or user groups, separated by a comma. Category: The category under which the document appears. If the category does not exist, it will be created on the server. Send as Blank Form: Check this option to send the template as a reusable form. The form will not be deleted from the app's Library when it is submitted. To manually delete it from the Library, swipe it to the left.

  • PAGE 802

    format as above. Note that every email here will receive all the emails for the recordrange below. l l Records group: l l Select All, or click Selection and enter the range of records that should be sent. Removing the range disables the selection and sends emails to all records in the record set.

  • PAGE 803

    l Start TLS: Enabled if authentication is checked. Sends emails through Transport Layer Security (TLS), which is sometimes referred to as SSL. l User: Enter the username used to connect to the SMTP server. l Password: Enter the password for the above user name. Send to Workflow/Files dialog The Send to Workflow dialog sends templates, data mapping configurations and print presets to the PlanetPress Workflow server, or saves it as a package file.

  • PAGE 804

    Click Resources, Disk or Url, depending on where the image is located. l l l Resources lists the images that are present in the Images folder on the Resources pane. Disk lists image files that reside in a folder on a hard drive that is accessible from your computer. Click the Browse button to select a folder (or an image in a folder). As an alternative it is possible to enter the path manually. You can give a local path (e.g. C:\Images\Test.jpg) or use the "file" protocol.

  • PAGE 805

    General options The first option defines Duplex printing, which also enables or disables the settings for the Back side of each sheet. If Duplex is enabled, you can also: l l l Check Omit empty back side for Last or Single sheet to reset a page to Simplex if it has an empty back side. Thus changing a Duplex job into a Mixplex job may reduce volume printing costs as omitted back sides aren't included in the number of printed pages. Check Tumble to duplex pages as in a calendar.

  • PAGE 806

    l l Master Page Front: Defines the Master Page used for the front of the selected sheet's position. (Disabled if Back only is selected under Allow content on). Master Page Back: Defines the Master Page used for the back of the selected sheet's position. (Disabled if Front only is selected under Allow content on, or if Duplex is unchecked.) Style sheets dialog The Stylesheet editor dialog is used to edit CSS style sheet resources.

  • PAGE 807

    l Save: Click to save all changes to the stylesheet and close the dialog. l Cancel: Click to close the dialog without saving any changes. New/Edit Rule dialog The New/Edit Rule dialog shows the properties for a specific CSS selector. Click the Apply button to see how a setting affects the elements that are subject to that selector. (You may have to move and resize the Stylesheet dialog before opening the Edit Rule dialog, in order to be able to see the template that you are working on.

  • PAGE 808

    l l l Word Spacing: Set the space between each word in a text in measure or percentage. This is equivalent to the CSS word-spacing property. Whitespace: Specify how to handle white spaces inside of an element. See CSS White-Space for details. This is equivalent to the CSS white-space property. Style group: Check any option to apply the selected style to text within the element. This list shows the CSS property and value for each of the options. l Bold: Sets the font-weight to 700.

  • PAGE 809

    l l l l Inside: Specifies whether to accept page breaks within the element. Equivalent to the page-break-inside property. After: Specifies whether a page break should occur after the element. Equivalent to the page-break-after property. Widows: Specifies how to handle widows within a paragraph (lines appearing alone on the next page if the paragraph does not fit on the current one). Equivalent to the widows property. Widows and orphans are ignored if the page-breakinside property is set to avoid.

  • PAGE 810

    l l Style: Specify the style of the border such as solid, dashed or dotted. Equivalent to the border-style property. Color: Specify the color of the border. The color value must be a valid HTML Color Name, or a valid HTML Hex Color. Equivalent to the border-color property. Advanced Stylesheet Rule The Advanced editor is used to manually input rules.

  • PAGE 811

    Table Tab l General group: l l l l l l l Height: Set the height of the table in measure or percentage. Equivalent to the CSS height property. Angle: Set the rotation angle of the table in clockwise degrees. Equivalent to the CSS transform:rotate property. Corner radius: Set the radius of rounded border corners in measure or percentage. Equivalent to the CSS border-radius property. Display: Use the drop-down or type in the value for how to display the table. Equivalent to the CSS display property.

  • PAGE 812

    l l Z-index: Set the z-index of the table. The z-index defines in which order elements appear. Equivalent to the CSS z-index property. Breaks group: l l l l l Before: Specifies how to handle page breaks before the table. Equivalent to the CSS page-break-before property. Inside: Specifies whether to accept page breaks within the table. Equivalent to the CSS page-break-inside property. After: Specifies how to handle page breaks after the table. Equivalent to the CSS page-break-after property.

  • PAGE 813

    Border Tab For information about borders see "Border" on page 644. l l Same for all sides: Defines the border properties for all sides using the Top properties. Equivalent to the CSS border property. Top, Left, Bottom, Right: Each group defines the following properties: l l l Width: Specify the thickness of the border. Equivalent to the CSS borderwidthproperty. Style: Specify the style of the border such as solid, dashed or dotted. Equivalent to the CSS border-style property.

  • PAGE 814

    All settings in this dialog are in fact CSS properties. Cascading Style Sheets (CSS) were originally designed for use with web pages: HTML files. Since Designer templates are HTML files, they are styled with CSS. To learn how to use CSS in the Designer, see "Styling and formatting" on page 614 and "Styling templates with CSS files" on page 616. For information about specific properties and their options, see W3Schools CSS Reference.

  • PAGE 815

    l Style group: Check any option to apply the selected style to text within the element: l Bold: Sets the font-weight to 700. l Italic: Sets the font-style to italic. l Underline: Sets the text-decoration to underline. l Strikethrough: Sets the text-decoration to line-through. l Subscript: Sets the vertical-align to super. l Superscript: Sets the vertical-align to sub. l Capitalize: Sets the text-transform to capitalize. l Uppercase: Sets thetext-transformto uppercase.

  • PAGE 816

    l Color: Specify the color of the border. The color value must be a valid HTML Color Name, or a valid HTML Hex Color. Equivalent to the CSS border-color property. Background Tab For information about backgrounds see "Background color and/or image" on page 643. l General group: l l Color: Specify the color of the table cell background. The color value must be a valid HTML Color Name, or a valid HTML Hex Color. Equivalent to the CSS background-color property.

  • PAGE 817

    Key combination Function Alt Put the focus on the menu. (Alt + the underlined letter in a menu name displays the corresponding menu.) The menu can then be browsed using the Enter key, arrow up and arrow down buttons.

  • PAGE 818

    Key combination Function or: Shift + Insert Ctrl + X or: Shift + Delete Cut Ctrl + W Close file Ctrl + Y or: Ctrl + Shift + Z Redo Ctrl + Z Undo Ctrl + Alt + ; Lock guides Ctrl + Shif + R Clear preview cache Ctrl + Shift + S Save all Ctrl + Shift + W Close all Ctrl + Shift + ; Snap to guides Ctrl + ; Show guides Ctrl + ' Show/hide virtual stationery Ctrl + \ Highlight master page items Ctrl + F5 Revert Ctrl + F10 Save as Ctrl + F11 Send COTG test Ctrl + F12 Send to Workflow

  • PAGE 819

    Workspace The following key combinations activate a function in the Workspace.

  • PAGE 820

    Key combination Function Ctrl + B Bold (works on a text selection) Ctrl + E Open Paragraph formatting dialog Ctrl + I Italic (works on a text selection) Ctrl + H Show Edges Ctrl + K Delete browser element Ctrl + M Open Box formatting dialog Ctrl + T Open Text formatting dialog Ctrl + U Underline ( (works on a text selection) Ctrl + + or: Ctrl + Shift + + or: Ctrl + = or: Ctrl + Shift + = Zoom in Ctrl + or: Ctrl + Shift + - Zoom out Ctrl + 0 Zoom to page width Ctrl + 1 Zoom to page c

  • PAGE 821

    Text editors: Source tab, JavaScript, CSS, Script Editor The following key combinations have a special function in the Source tab of the Workspace (see also: "Source tab" on page 850), and when editing a JavaScript or CSS file in the Workspace, and in the Script Editor (expanded view). Key combination Function Ctrl + space Content assist (auto-complete) Ctrl + A Select all Ctrl + D Duplicate line Ctrl + F Find Ctrl + I Indent (Tab) Ctrl + J l l Script Editor: Add a line break.

  • PAGE 822

    Scripts pane and Resources pane The following keys or key combinations have a special function when a file is selected in the Resources pane and when a script is selected in the Scripts pane. Key combination Function F2 Rename Alt + Enter Open Properties dialog Delete Delete Data Model pane You can use the following keys to browse records in the Data Model pane: l Page Up: next record l Page Down: previous record l Home: first record l End: last record.

  • PAGE 823

    l l l l l l l l l Open Recent: Lists the most recently opened Templates and configurations. Clicking on a template will open it in the Designer module, clicking on a Data Mapping Configuration will open it in the DataMapper module. Close: Closes the currently active Data mapping configuration or Template. If the file needs to be saved, the appropriate Save dialog will open. Close All: Closes any open Data Mapping Configuration or template.

  • PAGE 824

    l l l l l l l Job Creation Presets: Opens the"Job Creation Presets" on page 932 dialog. Output Creation Presets: Opens the "Output Creation Settings" on page 943 dialog. Proof Print: Opens the "Print Options" on page 944 dialog as a Proof Print dialog which limits the number of records output. The options themselves are identical to the regular Print Output dialog. Send Email: Opens the Send Email dialog; see "Send (Test) Email" on page 801 and "Generating Email output" on page 1123.

  • PAGE 825

    Insert Menu l l Image: Inserts an image using a resource that is local to the template, a resource on disk or a URL. See "Images" on page 599. Text: l l Wrap in span: Wraps selected text in a element. The ID or class of the span can be used as a selector for scripts and styles. Special Characters: Displays a categorized list of special HTML characters that can be inserted at the current pointer location. When a character is clicked, its HTML Entity is inserted.

  • PAGE 826

    l l Geometric Shapes: Use the list to insert a special geometric shape, such as circles, triangles and squares. Date: Opens the "Date" on page 588 dialog to add a date to the template based on the current system's date and time. l Wrap in box: Puts the element in which the cursor is located in an inline box (a

    ).

  • PAGE 827

    l Div...: Opens a dialog to add a

    element; see "Boxes" on page 570 l Span...: Opens a dialog to add a element; see "Boxes" on page 570 l Article...: Opens a dialog to add an
    element l Section...: Opens a dialog to add a
    element (the HTML element, not a section in a context). l Header...: Opens a dialog to add a
    element. l Footer...: Opens a dialog to add a
    element. l Nav...: Opens a dialog to add a
  • PAGE 828

    l l l l Checkbox Field...: Opens a dialog to add a Checkbox; see "Checkbox" on page 596. Radio Button...: Opens a dialog to add a Radio Button; see "Radio Button" on page 596. Select Field...: Opens a dialog to add a Select (drop-down); see "Select" on page 597. l Button...: Opens a dialog to add a Button; see "Button" on page 597. l Help text: Opens a dialog to insert a paragraph (

    ) for help text. COTG Form Elements (see "COTG Elements" on page 582). l l l l l l Signature...

  • PAGE 829

    l l l l l l l Repository ID: Opens a dialog to add a Repository ID element, see "Repository ID" on page 587. Document ID: Opens a dialog to add a Document ID element, see "Document ID" on page 586. Fields Table: Opens a dialog to add a Fields Table element, see "Fields Table" on page 586.

  • PAGE 830

    l l l l Align: When an element is selected, determines how its contents is aligned inside the element. Options are Align Left, Align Right, Align Center and Justify. Paragraph...: Opens the "Paragraph Formatting dialog" on page 760 to modify the paragraph where the cursor is located. See "Styling text and paragraphs" on page 625. Paragraph Format: Displays a list of generic element types that can be used for a text element.

  • PAGE 831

    l l l Table...: Opens the "Table Formatting dialog" on page 810 to modify the table in which the cursor is located. If the cursor is within a table embedded within another, the innermost table's formatting is the one modified. Table Cell...: Opens "Table Cell Formatting dialog" on page 813 to modify the cell where the cursor is located. Hyperlink l l l Insert...: Creates a hyperlink on the currently selected text or element and opens its properties; see "Hyperlink and mailto link" on page 598. Edit...

  • PAGE 832

    l l Profile Scripts: Opens the "Profile Scripts dialog" on page 792 to test script performance (see "Testing scripts" on page 697). Preflight: Opens the Preflight dialog. Preflight checks the template for common errors (see "Testing scripts" on page 697). Section Menu l Add: Adds a new section to the currently selected context. l Delete: Deletes the currently selected section. l Arrange: Opens the "Arrange Sections" on page 799 dialog. l Go to: Lists the sections in the currently selected context.

  • PAGE 833

    l l Rulers: Shows or hides the rulers in the Workspace. Rulers only appear for Print contexts. Guides: l l l l l l Show Guides: Shows or hides the margin lines and guides in a Print section (see "Print" on page 378, "Page settings: size, margins and bleed" on page 398 and "Guides" on page 632). The colors of margin lines and guides are adjustable; see "Editing preferences" on page 777. Lock Guides: Locks the guides, so that they cannot accidentally be moved while working on the Print context.

  • PAGE 834

    mapping configurations under File > Open Recent and in the Welcome screen. l Preferences: Click to open the Preferences dialog. Help Menu l l l Software Activation: Displays the Software Activation dialog. See "Activating a License" on page 53. Help Topics: Opens the help system in the default web browser. Contact Support: Opens the Objectif Lune Contact Page in the default system web browser. l About PlanetPress Connect Designer: Displays the software's About dialog.

  • PAGE 835

    l l l l l l l l l l l Whitespace element : Check to make the element a whitespace element, meaning it will only appear on the page if there is enough space for it. This is useful for templates with variable height elements or conditional elements, to fill empty spaces with transpromotional material. Note that only top-level elements (a paragraph not inside a table or a div) will function at whitespace elements. Source (image): The location of the image file.

  • PAGE 836

    l Type (form input element): Use the drop-down to select an input type. The drop-down lists all input types, including HTML5 input types (see http://www.w3schools.com/html/html_form_input_types.asp). Geometry These attributes are available for certain elements that have position or size attributes such as images and boxes. l l l l l Top: The horizontal distance from the top-left of the object to the left position of its parent. This is used only for relative and absolute positioned elements.

  • PAGE 837

    Data is displayed as a tree view, with the root level being the record table, levels below it being detail tables, and any level below being called "nested tables". Data Model toolbar buttons l l l l l : Import Data Model: Click to browse to a Data Model File and import it. Importing a Data Model File displays the file's data model structure into the Data Model Pane, with optional sample data for each field. : Export Data Model: Click to browse to a location to save the Data Model File and save it.

  • PAGE 838

    l l Collapse Fields: Collapse the fields in the selected level. Expand Fields: Clicking the icon that represents collapsed fields (for example: enables this menu item. It is used to expand the fields on one level. l Collapse All Fields: Collapse all fields on the record level and in all detail tables. l Expand All Fields: Expand all fields on the record level and in all detail tables.

  • PAGE 839

    Preflight Results and Messages Messages pane The Messages pane is shared between the DataMapper and Designer modules and displays any warnings and errors from the data mapping configuration or template. To open it in the Designer module, click the Messages button at the bottom right of the window (see "Designer User Interface" on page 731). Buttons l Export Log disk. : Click to open a Save As dialog where the log file (.

  • PAGE 840

    l l Event Types group: l OK: Uncheck to hide OK-level entries. l Information: Uncheck to hide information-level entries. l Warning: Uncheck to hide any warnings. l Error: Uncheck to hide any critical errors. Limit visible events to: Enter the maximum number of events to show in the Messages Pane. Default is 50. Moving and merging panes The PlanetPress Connect interface for both the Designer and DataMapper module is highly configurable.

  • PAGE 841

    l Click the Restore button next to the panel's display icon. The restored panel will return to its original docked location. To temporarily display a minimized panel: l Click the panel's display icon. When another panel, menu or toolbar is clicked, the panel will be minimized again. To maximize a panel: l Click the Maximize button at the top-right corner of the panel. A maximized panel takes the full available size for the panels. All other panels are minimized.

  • PAGE 842

    Tip Images, fonts, stylesheets and snippets can be dragged or copied and pasted into the Resources pane to add them to your template. Media Media resources define paper handling configurations for Print output (see "Generating Print output" on page 1104 and "Print Options" on page 944) including page size and paper type. See "Media" on page 408 for more information. Contextual menu l l l l New Media: Click to create a new Media and open its properties ("Media Properties" on page 759).

  • PAGE 843

    Contexts Contexts hold the actual content of the template that is used to generate output. See "Contexts" on page 373 for more information. Contextual menu (Context folder or individual contexts) l New Print Context: Click to create a new Print Context with a single section. l New Web Page Context: Click to create a new Web Page Context with a single section. l l New HTML Email Context: Click to create a new HTML Email context with a single section. Properties...

  • PAGE 844

    Images Images are graphical elements that can be added to the page for display, either statically or dynamically. See "Images" on page 599 for more information. Contextual menu l l l New Folder: Click to create a new folder to organize resources more easily. Rename: Click to open the resource's Rename. This is the same as pressing the F2 key while the resource is selected. Delete: Click to delete the resource. This is the same as pressing the Delete key while the resource is selected.

  • PAGE 845

    l Delete: Click to delete the resource. This is the same as pressing the Delete key while the resource is selected. Stylesheets Stylesheets control how contents appears on the page. It defines spacing, color, size and other properties of elements on the page. See "Styling templates with CSS files" on page 616 for more information. In case the CSS file has references to specific images, you can drag/drop or copy/paste those images into the Stylesheets folder as well.

  • PAGE 846

    l Delete: Click to delete the resource. This is the same as pressing the Delete key while the resource is selected. Scripts pane The Scripts pane contains all of the scripts that are used to replace data in a template, or to modify its look; see "Personalizing Content" on page 656. This pane allows to add, edit and manage scripts (see "Managing scripts" on page 694). Scripts can be exported and imported via the buttons or through drag & drop between the Scripts pane and any location on the computer.

  • PAGE 847

    l New: Displays a drop-down that shows the following options: l l l l l l l l Script: Adds a new empty basic script. Text Script: The default script that is created when adding variable data to a template. See "Variable Data" on page 669. Dynamic Image script: Provided that its selector refers to an image, this script dynamically changes the image for each record. See "Dynamic Images" on page 682. Email scripts: Email scripts define the sender, recipients, subject, dynamic attachments etc.

  • PAGE 848

    Contextual menu options l l l l Duplicate: Click to create an exact copy of the script. Delete: Click to delete the selected script. This does not delete any element or text in the template itself. Rename: Click to open a dialog to rename the script. This is the same as changing the Name field in the Edit Script window, which can be opened by double-clicking the script. Enable/Disable: Click to trigger the script to be enabled or disabled.

  • PAGE 849

    The Workspace contains three or, when a Web section is open, four tabs. To switch between the tabs, click on the tab at the bottom, or select View > Design View, Preview View or Source View on the menu. For an overview of keyboard shortcuts, see "Keyboard shortcuts" on page 816. Design tab The Design tab shows the template including all styles, text and images as well as the placeholders used for variable data. In this tab, the template's scripts are not executed and only placeholders are shown.

  • PAGE 850

    l l Refresh: Reloads the view, including static external images and remote stylesheets, and re-runs the scripts (the latter in Preview Mode only). Responsive Design View: Use the drop-down to select a specific screen width, to test the design for different devices. Not available in Print contexts. When a template is open, the workspace also shows a ruler and guides (see "Guides" on page 632).

  • PAGE 851

    These are all format options: l turns the formatting off. l or turns the formatting back on. l forces the following HTML elements to be collapsed. l forces the following HTML elements to be expanded. Example This example shows how to turn pretty printing off for one specific HTML element: a Div element.

    In a "pretty printed" paragraph
    text is indented automatically on the Source tab.

  • PAGE 852

    l Save: Saves the current template. If the template has never been saved, the Save As... dialog is displayed. Print: Opens the Print Output dialog. l l Proof Print: Opens the "Print Options" on page 944 dialog as a "Proof Print" which limits the number of records output. The options themselves are identical to the regular Print Output dialog. Output Send Email: Opens the Send Email dialog; see "Send (Test) Email" on page 801.

  • PAGE 853

    l Insert Select Field: Inserts a element. query("input").closest("tr"); This code gets the closest 'parent' row for each element that matches the selector of the script (collected in the results object): results.closest("tr"); The rows could be colored red within the same statement: results.closest("tr").

  • PAGE 1043

    css(styleName, valu​e) Function to set a CSS property. propertyName String; the name of the CSS property. value String; value for the CSS property or a map of property-value pairs to set. Examples This script looks up an element with the ID #calloutbox and sets its text color to red. query("#callout p").css('color' , 'red'); The following script does the same, but it only sets the text color to red if in the current record the value of the field 'accounttype' is 'PRO'. if(record.fields.

  • PAGE 1044

    Examples This script colors the text of the results (the set of HTML elements that match the selector of the script) red and makes it bold. ​results.css({'color' : 'red', 'font-weight' : 'bold'}); empty() Remove the contents (child elements and inner HTML) from one element or a set of elements in the template. Use remove() to remove the elements themselves. Example This script empties all Span elements found in the template. results.

  • PAGE 1045

    A function used as a test for each element in the set. Filter() passes the iteration index and the current element to the callback function. In the scope of the callback function, this refers to the current element. Example The selector of the following script is li (list item), so the results object contains all list items in the template. The scripts filters the third and sixth line items from the results, taking advantage of the index that is passed to the filter function, and colors them red.

  • PAGE 1046

    textToFind A String that contains the search text. Example The following piece of code loads a snippet, then looks for placeholders using find(), and replaces them with a text. var mysnippet = loadhtml('snippets/snippet.html'); mysnippet.find('@var1@').text('OL Connect 1'); mysnippet.find('@var2@').html('OL Connect 2').css('textdecoration','underline'); results.

  • PAGE 1047

    Example This script hides or shows the elements matched by the selector of the script (which are stored in the results object), depending on the value of the data field Country in the current record. if (record.fields["Country"] == "CANADA") { results.show(); } else { results.hide(); } html() html() : String Returns the inner HTML of the first element in this result set. html(value) Replaces the inner HTML of each element in this result set by the supplied value. value A String that may contain HTML tags.

  • PAGE 1048

    pageRef() Returns a marker that will be replaced with the element's page number after pagination. This only works for elements in the section that is currently being merged. Example Creating a table of contents The following script creates a table of contents for all level 1 headings (

    elements) with the class title in one section. var toc = '
      '; query('h1.title').each(function() {toc += '
    • ' + this.text() + ' ' + this.

    • PAGE 1049

      Note that these styles use the list's ID, that was defined in the first line of code. For information about style sheets, see "Styling templates with CSS files" on page 616. parent() Returns the parents of the elements in a set. (In HTML, a parent is an element that contains another element.) To get an ancestor that matches a particular selector, use closest() (see "Examples" on page 1042).

    • PAGE 1050

      Selector Matched element Matched element after script execution #box ​

      Peter Parker

      Personal information

      Peter Parker

      ​ This script inserts a heading as the first element in an element that has the class name. results.prepend("Name: "); Selector Matched element Matched element after script execution .

    • PAGE 1051

      Selector Matched element Matched element after script execution div

      Peter Parker

      Personal information

      Peter Parker

      ​​ This script uses the function query() to find a box. Then it inserts a heading as the first element in that box. query("#box").

    • PAGE 1052

      var box = query("#box"); box.prepend("

      Peter Parker

      "); box.css("color","red"); remove() Removes each element in a set from the DOM. This function returns a new result set containing each removed element. These can be changed and inserted in the document. This could be beneficial in terms of performance, as manipulating elements inside the DOM is relatively time consuming. Examples This script removes all Span elements found in the template. results.

    • PAGE 1053

      var cells = row.children(); cells[0].html("some text").css("background-color", "yellow"); cells[1].html("some text").css("font-weight", "bold"); cells[2].html("some text"); // Create a number of copies var rows = row.clone(); for (var i = 0; i < 30; i++) { rows = rows.add(row.clone()); } // Attach all copies to the DOM as children of tbody results.append(rows); removeAttr() Removes the specified HTML attribute from an element or from each element in a set of elements.

    • PAGE 1054

      Examples This script removes the class name "foo" from all elements in the results that have this class. results.addClass("foo"); Selector Matched element Matched element after script execution p ​

      Hello world

      Hello world

      ​ replaceWith() Replaces each element in a set of HTML elements. replaceWith(content) Replaces each element in a set of HTML elements. Returns the result set. content A query result. This can be an HTML string or a result set.

    • PAGE 1055

      show() Shows the elements in a set. To hide elements (again), use the function "hide()" on page 1046. These functions are used by the Conditional Script Wizard, as you can see when you open a Conditional Script and click the Expand button; see "Showing content conditionally" on page 678. Example This script hides or shows the elements matched by the selector of the script (which are stored in the results object), depending on the value of the data field Country in the current record. if (record.

    • PAGE 1056

      Example This script loads a snippet, then looks for placeholders using find(), and replaces them using text(value). var mysnippet = loadhtml('snippets/snippet.html'); mysnippet.find('@var1@').text('OL Connect 1'); mysnippet.find('@var2@').html('OL Connect 2').css('textdecoration','underline'); results.replaceWith(mysnippet); Each A generic iterator function, to iterate over the elements in the result set.

    • PAGE 1057

      Selector Matched element Matched element after script execution p

      3

      1

      7

      ​​ This script gets the row index (of the current element in the set) and puts it in a paragraph. results.each(function(index){ this.

    • PAGE 1058

      Selector Matched element Matched element after script execution p

      primero

      último

      dirección de correo electrónico

      ​​ For...in Can be used to iterate over fields in a data set or rows in detail table. Also see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...in. for(variable in object) { ...

    • PAGE 1059

      Selector Matched element Matched element after script execution #test ​

      Fields

      Fields

      Peter

      Parker

      pparker@localhost.com

      ​​ This script iterates over rows in a detail table and adds the contents of the 'country' field to a paragraph. for(var i in record.tables['countries']) { results.after("

      " + record.tables['countries'][i].

    • PAGE 1060

      Note The TextFormatter object is now deprecated and will eventually be removed. Functions Function l l currency() currencyNoSymbol () l grouped() l integer() l l l Description The currency(), grouped(), integer() and number() functions allow you to format a number, possibly with a custom pattern. See "Number functions" on page 1071.

    • PAGE 1061

      Function l properCase() Description first character of each word to uppercase and all other characters to lowercase. Date, date/time and time functions l date() l dateLong() l dateMedium() l dateShort() l dateTime() l dateTimeLong() l dateTimeMedium() l dateTimeShort() l time() l timeLong() l timeMedium() l timeShort() Note The locale also influences the output of the different Date functions; see "Locale" on page 654.

    • PAGE 1062

      value A Date object. A Date can contain a date and time. pattern String. The custom pattern may consist of pattern letters, separating symbols and quoted text, for example: "MMMM dd, yyyy"; see "Date and time patterns" on page 1065. Note that the repetition of pattern letters determines the exact presentation. dateLong(value) Formats a date as long string representation, for example April 1, 2016. value A Date object. A Date can contain a date and time.

    • PAGE 1063

      String. The custom pattern may consist of pattern letters, separating symbols and quoted text, for example: "yyyy.MM.dd G 'at' HH:mm:ss z"; see "Date and time patterns" on page 1065. Note that the repetition of pattern letters determines the exact presentation. dateTimeLong(value) Formats a date and time as long string representation, for example April 1, 2016 12:00:00 EDT AM. value A Date object. A Date can contain a date and time.

    • PAGE 1064

      timeLong(value) Formats a time as long string representation, for example 12:00:00 EDT AM. value A Date object. A Date can contain a date and time. timeMedium(value) Formats a time as medium string representation, for example 12:00:00 AM. value A Date object. A Date can contain a date and time. timeShort(value) Formats a time as short string representation, for example 12:00 AM. value A Date object. A Date can contain a date and time.

    • PAGE 1065

      The following sample script demonstrates this solution. It splits a string into parts and then creates a new Date object with the parts in the correct order. To construct a Date, the parts of the date must be put in the following order: year, month, day, and optionally hours, minutes, seconds, milliseconds (see http://www.w3schools.com/js/js_dates.asp and https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date.) When the time is omitted, it defaults to 12:00:00 AM.

    • PAGE 1066

      The repetition of pattern letters determines the exact presentation. For example, if the number of pattern letters for a month is less than 3 (M or MM), the month is displayed as a number. If the number of pattern letters is 3 (MMM), it will be displayed as text; if available, a short or abbreviated form of the month's name will be used. If the number of pattern letters is 4 or more (MMMM), the month's full name is displayed.

    • PAGE 1067

      S Millisecond Number 978 z Time zone General time zone Pacific Standard Time; PST; GMT-08:00 Z Time zone RFC 822 time -0800 zone X Time zone ISO 8601 time -08; -0800; -08:00 zone Note These date and time pattern letters and patterns conform to standard Java notation. For more information, see http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html. loadhtml() Loads HTML content from the specified HTML file.

    • PAGE 1068

      the host is "localhost", it can be omitted, resulting in file:///, for example: file:///c:/somefolder/somecontent.html. When using the http/https protocol, remember that only absolute paths are supported inside remote snippets (see "Remote snippets" on page 612). Examples This script loads a local HTML snippet (from the Resources panel) directly into the matched elements results.loadhtml("snippets/snippet.html"); The following script loads a local HTML snippet (Resources panel) into a variable.

    • PAGE 1069

      loadhtml(location, selector) Retrieves specific content from the specified HTML file. location String containing a path that can be absolute or relative to the section/context. Use snippets/ to retrieve the content from an HTML file residing in the Snippets folder on the Resources panel. In order to retrieve files from outside the template, the file protocol is supported as well as the http/https protocols.

    • PAGE 1070

      var post = loadhtml('snippets/post.rhtml'); var h1 = query('h1', post).text(); results.text(h1); Another example is given in the following how-to: Using a selector to load part of a snippet. loadjson() Creates a JSON object based on the text retrieved from the supplied location. The function lets you retrieve content from a JSON enabled server using a standard HTTP request.

    • PAGE 1071

      var wpPost = loadjson('http://192.168.101.58/2013/06/leave-thethird-dimension-behind-and-focus-on-real-printinginnovation/?json=1'); ​if(wpPost.post){ results.html("

      " + wpPost.post.title + "

      " + wpPost.post.content);​ } This script retrieves multiple posts from a WordPress site. var numPosts = 3; var wpPost = ''; var wpRecentPosts = loadjson('http://192.168.101.58/?json=get_ recent_posts&count=' + numPosts); if(wpRecentPosts.

    • PAGE 1072

      A number. This can be a value from a field that contains a SmallInteger, BigInteger, Float, SmallCurrency or LargeCurrency. currency(value, pattern) Formats a number as an amount of money using a custom pattern. Which currency symbol and which thousands separator are used depends on the Locale; see "Locale" on page 654. For available patterns, see "Number patterns" below. value A number. This can be a value from a field that contains a SmallInteger, BigInteger, Float, SmallCurrency or LargeCurrency.

    • PAGE 1073

      page 671 and "Formatting variable data" on page 675. Note that for this to work, in the DataMapper the field that contains the value must be set to Integer, Float, or Currency. In the Script Editor, the pattern can be passed to a function of the formatter; see "formatter" on page 1059. The custom pattern may consist of pattern characters (see below), a prefix and a suffix. Note that strings need to be converted to a number before they can be formatted this way.

    • PAGE 1074

      ¤ (\u00A4) Prefix or suffix Number Currency sign, replaced by currency symbol. If doubled, replaced by international currency symbol. If present in a pattern, the monetary decimal separator is used instead of the decimal separator. ' Prefix or suffix Text Used to quote special characters in a prefix or suffix, for example, "'#'#" formats 123 to "#123". To create a single quote itself, use two in a row: "# o''clock". Source: http://docs.oracle.com/javase/7/docs/api/java/text/DecimalFormat.html.

    • PAGE 1075

      Matched element; Matched element after script execution ​

      foo

      foo

      ​ Look for an element in a snippet The following script loads a snippet. Then it looks up an element in a snippet and sets its text. Finally, it replaces the elements matched by the script's selector by the snippet. var snippet = loadhtml('snippets/mysnippet.html'); query("#foo", snippet).text("bar"); results.

    • PAGE 1076

      query(html) Creates a new HTML element on the fly from the provided string of raw HTML, and returns the new element. html A String containing a HTML element. Tags that can contain other elements should be paired with a closing tag. Example The following script adds a paragraph to the results (elements that match the selector of the script). results.append("

      This is a new paragraph.

    • PAGE 1077

      The returned object is of the type ImageInfo. It has the following fields: Field Type Description height float The height of the current page (in points). page Number Current page number (counting from 1) within the resource. pages Number The total number of pages in the resource. permissions Permissions PDF only. Allows to verify if a PDF is password-protected or has restrictions for printing.

    • PAGE 1078

      Object Usage "section" on page 1084 Much of the Control Script magic is performed by setting one of the fields of the section object. Via the section object you can omit, select and clone sections; add a background to a Print section; add a header to an email; etc. A section can be retrieved via the context that it belongs to, using merge.template.contexts.ContextType.sections["section name"]. For example: merge.template.contexts.PRINT.sections["Section EN"].

    • PAGE 1079

      used in Control Scripts, however. This is because Control Scripts differ from template scripts in two ways: l l Control Scripts don't have a selector, like template scripts do. A selector selects parts of the content of a section and stores them in the results object, so that they can be modified in the script. As Control Scripts don't have a selector, the results object can't be used there. Control Scripts don't touch the content meaning, the text flow - of the sections.

    • PAGE 1080

      Property Description Properties Returns an object containing additional information (file name, process name and task ID) from PlanetPress Workflow. Accessing automation properties To access JobInfo 1 to 9 (defined in Workflow): automation.jobInfos.JobInfo1; To access ProcessName, OriginalFilename or TaskIndex (defined in Workflow): automation.properties.OriginalFilename; Example Assume that a Workflow process can be triggered when an XML file appears in a certain folder.

    • PAGE 1081

      Field Type Description sections Array Array of sections (see "section" on page 1084) inside a particular context defined in the template. Note: When using merge.context.sections keep in mind that for example 'Section X' might only exist in your Print context, so using merge.context.sections['Section X'] without enclosing it in the if statement if (merge.context.type == ContextType.PRINT) {} will yield an error when the script runs for other contexts.

    • PAGE 1082

      Fields Field Type Description stationery Stationery The Stationery's object's front and back fields are used to set the front and the back of a Media; see "front, back" below. front, back The front and back fields of the Stationery object are used to set the front and the back of a Media (see "media" on the previous page). Both front and back have the following fields. Field Type Description enabled boolean When enabled, the stationery will be included in the output (Print sections only).

    • PAGE 1083

      Field Type Description left Measurement The horizontal offset from the left of the page, used to position the stationery (only when absolute positioning is selected). This value can be negative. merge In Control Scripts, the root level instance of the object merge is the entry point from where you can query and change the way contexts are merged. It gives access to the template with all its contexts and sections. For sample scripts, follow the links to the respective objects.

    • PAGE 1084

      Field Type Description To retrieve any section in a Control Script, use: merge.template.contexts.ContextType.Section ['Section name']; (for example: merge.template.contexts.PRINT.sections ["Section EN"]). "template" on page 1094 Template This object contains the template and all of its contexts. It can be used to find out which contexts are available in the template, using merge.template.contexts (see "context" on page 1080) and to manipulate the sections in those contexts (see "section" below).

    • PAGE 1085

      Field Type Description Setting a Print section's background" on page 719 and "BackgroundResource" on page 1097. enabled boolean Enables or disables this section for output (see "Examples" on page 1087). Note that even if a section is disabled, the part and restartPageNumber fields are still effective to define the parts division and page numbering over multiple sections when applicable.

    • PAGE 1086

      Field Type Description To rename email attachments, use the field part. ownerPassword String Print sections only. Used to set the owner password for a PDF attachment.* Setting only the owner password creates a secured PDF that can be freely viewed, but cannot be manipulated unless the owner password is provided. (Note that the recipient needs Adobe Acrobat to do this, because the Acrobat Reader does not allow users to enter the owner password.

    • PAGE 1087

      (attachments) may have a different (or no) set of passwords. Passwords set in the Control Script override the password set through the Email PDF password script (see "Email PDF password" on page 433). This allows you to change or remove the password from a specific part. Removal is done by setting the password field to null or "" (empty string). Functions Note For cloned sections, functions are not available. Function Description "Examples" on page 1093 Clone this section.

    • PAGE 1088

      Selecting different sections for Print output and Email PDF attachment This script selects a different Print section for output, depending on the output channel (Email or Print). var printSections = merge.template.contexts.PRINT.sections; if(merge.channel === Channel.EMAIL){ printSections['Section 1'].enabled = false; printSections['Section 2'].enabled = true; } if(merge.channel === Channel.PRINT){ printSections['Section 1'].enabled = true; printSections['Section 2'].

    • PAGE 1089

      merge.context.sections['Section 6'].enabled = true; merge.context.sections['Section 6'].part = "PDFAttach2"; } else if (merge.context.type == ContextType.WEB) { merge.context.sections['default Section'].enabled = false; // disable whatever is the default section merge.context.sections['Section A'].enabled = true; merge.context.sections['Section A'].part = "WebPartA"; merge.context.sections['Section B'].enabled = true; merge.context.sections['Section B'].

    • PAGE 1090

      Scaling to Media size var activeSection = merge.template.contexts.PRINT.sections['Section 1']; activeSection.background.source = BackgroundResource.RESOURCE_PDF; activeSection.background.position = MediaPosition.FIT_TO_MEDIA; activeSection.background.url = "images/somepage.pdf"; See also: "BackgroundResource" on page 1097, "MediaPosition" on page 1100 and "Control Script: Setting a Print section's background" on page 719.

    • PAGE 1091

      function addPolicy(policy){ var resourceUrl = 'images/policy-' + policy + '.pdf'; var clone = printSections["Policy"].clone(); clone.name = "policy_" + policy; clone.background.url = resourceUrl; clone.enabled = true; printSections["Policy"].addAfter(clone); } background The background object holds the PDF background of a Print section (see "section" on page 1084 and "Control Script: Setting a Print section's background" on page 719).

    • PAGE 1092

      Field Type Description Note Setting the background to NONE does not reset any other option, such as the position and scale of the background. start Number The start page of the PDF to use as a background for the section. top Measurement The top offset of the PDF background (only when absolute positioning is selected). url String The location of the PDF to use as a background for the section. For a file named background.

    • PAGE 1093

      You could replace the last three lines of the previous script by the following line to scale the Print section background to Media size: activeSection.background.position = MediaPosition.FIT_TO_MEDIA; Tip For more examples, see "Control Script: Setting a Print section's background" on page 719. clone() This function returns a new set containing a copy of each element in a set; see "Dynamically adding sections (cloning)" on page 721.

    • PAGE 1094

      ["ItemNumber"]); this.find('@ItemOrdered@').text( record.tables['detail'][i].fields ["ItemOrdered"]); this.find('@ItemTotal@').text( record.tables['detail'][i].fields ["ItemTotal"]); this.find('@ItemDesc@').text( record.tables['detail'][i].fields ["ItemDesc"]); this.find('@nr@').text(i); }); The following script clones and populates a boilerplate row. Once completed you will need to hide the boilerplate row. for(var i = 0; i < record.tables['detail'].length; i++) { var row = results.

    • PAGE 1095

      Which contexts are available in the template can be queried using merge.template.contexts. To get access to a specific context, you have to specify the ContextType (see "ContextType" on page 1099). Field Type Description contexts Array Array of contexts (see "context" on page 1080) available in the template. The contexts contain the sections (see "section" on page 1084). "media" on page 1081 Array Media available to this template (see "Media" on page 408).

    • PAGE 1096

      properties The properties object inside the template object (see "template" on page 1094) contains all default properties of the template file as well as any custom properties. To view and complement the file properties, select File > Properties on the menu. See File Properties. Following are the default properties.

    • PAGE 1097

      BackgroundResource BackgroundResource is an enumeration for the types of background resources for a Print section (see "background" on page 1091 and "section" on page 1084). A Print section can be retrieved in script using merge.template.contexts.ContextType.sections["section name"], for example merge.template.contexts.PRINT.sections["Section EN"]. Field Description DATAMAPPER_ PDF A PDF file retrieved via the active Data Mapping Configuration.

    • PAGE 1098

      Note To learn how to set a PDF file as a background image on a Print section without a Control Script, see "Using a PDF file as background image" on page 393. Channel Channel is an enumeration for the output channels. The active output channel is registered in merge.channel. The channel doesn't change when the output consists of different contexts. When generating email, for example, the channel is EMAIL, even when merging the Print context to attach it to the email.

    • PAGE 1099

      printSections['Section 2'].enabled = false; } ContextType ContextType is an enumeration for the context types. The type of the context that is going to be merged next can be retrieved via merge.context.type. The context type needs to be specified when retrieving a section with merge.template.contexts.ContextType.sections["section name"], for example merge.template.contexts.PRINT.sections["Section EN"]. Value Description HTML_EMAIL The context is the Email context.

    • PAGE 1100

      MediaPosition In a Control Script, the position is an enumeration for the position of background resources for a Print section. It is retrieved and set via background.position. Field Description ABSOLUTE Places the PDF at a specific location on the page. Set the background's top (background.top) and left (background.left) measured from the top and left side of the section. CENTERED Centers the PDF on the page, vertically and horizontally. FIT_TO_ MEDIA Stretches the PDF to fit the page size.

    • PAGE 1101

      Generating output When merged with a record set, the templates made in the Designer can generate four types of output: Print , Fax, Email and Web. Print output Connect supports a number of different types of print outputs. These include: l PCL l PDF l PostScript (including the PPML, VIPP and VPS variants) Print templates (also called Print sections), are part of the Print context.

    • PAGE 1102

      Email output The Email context outputs HTML email with embedded formatting to an email client through the use of an email server. The HTML generated by this context is meant to be compatible with as many clients and as many devices as possible. Although the Email context can contain multiple Email templates, only one of them can be merged with each record. Which one is used, depends on a setting; see "Email output settings in the Email context and sections" on page 1124.

    • PAGE 1103

      Although the Web context can contain multiple Web pages, only one of them can be merged with each record. Which one is used, depends on a setting; see "Web output settings in the Web context and sections" on page 1134. Optimizing a template Scripts In the process of output generation, the execution of scripts may take up more time than necessary.

    • PAGE 1104

      Step 2. Add the file that contains the collection of images to the template's Resources (see "Adding images" on page 601). Step 3. Display part of the collection file as an image in the template. l l Static images that are part of an image file can be displayed via Cascading Style Sheets (CSS). This technique is much used in web design. In this technique, the file that contains a collection of images is called an image sprite.

    • PAGE 1105

      Note Proof Print generates output directly from the Designer, without using the Print Service. A Proof Print run won't impact upon production printing l File > Print... allows the following printing options: l l l Using the Default output settings. For more details, see "Print Using Standard Print Output Settings" on page 1107 Using the same settings that were last used to produce printed output.

    • PAGE 1106

      handy when creating special print runs, that need to be run periodically. These presets make it possible to do such things as filtering and sorting records, grouping documents and splitting the print jobs into smaller print jobs, as well as the more standard selection of printing options, such as binding, OMR markings and the like. See "Job Creation Presets" on page 932 and "Output Creation Settings" on page 943 for more details.

    • PAGE 1107

      3. Create a process in PlanetPress Workflow containing at least the following steps: l l Any Input task that will capture a job file that is compatible with the data mapping configuration that is used. Either: l l l An All In One task. This task incorporates the Execute Data Mapping, Create Print Content, Create Job and Create Print Output tasks. It is fast and efficient but you can't use a Job Creation Preset with it.

    • PAGE 1108

      l l Job Creation: Use the drop-down to select existing Job Creation Presets. Use the Gear button to edit the currently selected Preset or to reload the list of Presets from the system. Preset Summary: Displays a summary of the settings for the currently selected Presets. Note The Default output type of PDF Output is actually a built in system Preset, whilst the Last Used settings can likewise be considered an un-named and un-saved Preset.

    • PAGE 1109

      Note Any settings made within the Advanced Print Wizard do not permanently update any Preset(s) being used. l Print button: Click to produce print output according to the current settings. l Cancel button: Cancels the Print Wizard, without creating any printout. Print Using Advanced Printer Wizard The Advanced Printer Wizard allows you to select from any and all output settings.

    • PAGE 1110

      How to add print output models from within the Print Wizard Here is how to add print output options from within the Print Wizard dialog itself. 1. Select File > Print... from the menu. The Print dialog will be launched. 2. Click on the Advanced button. The Print Wizard will be launched. 3. Click the settings button at the end of the Model selection list box. Select from one of the options: 1. Select Import Definition to add a customized Printer Definition.

    • PAGE 1111

      How to add print output models from within the Designer Here is how to add print output models from within the main Designer interface itself. 1. Select Window > Preferences... from the menu. Preference dialog is launched. 2. Select Print > Available Printers from the options. 3. In the Available Printers area, select the print output options to be added to the Print Wizard, then click OK.

    • PAGE 1112

      Note When using a variable in a condition, do not wrap it in ${ }. This notation is only necessary in the context of a text (like file names or additional page content). File name variables File name variables are available in a few places in the "Print Options" on page 944: l In the Job Output Mask and Job Output Folder fields when using the Directory option. l In the Job Name field when using the Windows Printer option. Tip You can name the output file or folder through the WorkFlow.

    • PAGE 1113

      extension is determined by the selected output format. The 0000 in ${template.nr,0000} is a format pattern that takes care of formatting the number with at least four digits and leading zero's. See "Formatting date and number values " on page 1119, below. Example If the template file is C:\Data\My-Invoices-EN.OL-template which gets printed to PDF, then ${template} expands to My-Invoices-EN_ 0001.pdf. ${template.

    • PAGE 1114

      PostScript output, ${template.ext} would return ps. Note that ${template.ext} does not include a leading dot. File ${file} ${​file} is a shorthand for ${file.base}_ ${file.nr,0000}.${file.ext}. It expands to an internally generated file name with a four digit sequence number at the end. The file extension is determined by the selected output format. The 0000 in ${file.nr,0000} is a format pattern that takes care of formatting the number with at least four digits including leading zero's.

    • PAGE 1115

      errors with big jobs, usage of this variable in an Output Preset or in the Print Wizard is discouraged; it should be regarded as deprecated. Job ${job} ${job} is a shorthand for ${job.base}_${job.nr,0000}.${job.ext}. It expands to a name based on the name of the applied Job Creation preset (or 'Untitled' if no Job Creation preset was used). A four digit sequence number is added at the end of the base name. The file extension is determined by the selected output format. The 0000 in ${job.

    • PAGE 1116

      If the output is grouped and separated, Content variables on the separation level and above are also available as File name variables. For example, if the output is grouped on the job segment and document set level, and is to be separated on the Document Set level, the set and segment variables can also be used in the Job Output Mask field. Warning Use count variables with caution. They entail higher memory usage in Weaver (the engine that creates Print output). When, for example, segment.count.

    • PAGE 1117

      ${page.sequence.set} Page number within the document set. ${page.sequence.segment} Page number within the job segment. ${page.sequence.job} Page number within the job. ${page.width} The page's width (in points). Sheet ${sheet.count.pages} Total number of pages on the sheet. ${sheet.duplex} True when printing on the sheet is duplex. ${sheet.height} The sheet's height (in points). ${sheet.pageDevice} Array specifying the sheet's Type (e.g. Plain), Weight (e.g. 83), Color (e.g.

    • PAGE 1118

      ${document.metadata ['propertyname']} The propertyname must have been defined as a Tag Name on the Document Tags tab of the "Metadata options" on page 942 page in the Advanced Print Wizard or Job Creation preset. Note: this variable is only available if Separation based on Document has been selected on the "Separation options" on page 959 page in the Advanced Print Wizard or Output Creation preset. ${document.count.pages} Total number of pages in the document. ${document.count.

    • PAGE 1119

      ${set.count.sheets} Total number of sheets in the document set. ${set.count.documents} Total number of documents in the document set. ${set.nr} or ${set.sequence.segment} Document set number within the job segment. ${set.sequence.job} Document set number within the job. Segment ${segment.metadata. propertyname} or ${segment.metadata ['propertyname']} Value of a meta data property of the job segment.

    • PAGE 1120

      ​Form ​Description ​Example ​Result ​${expression} ​Do not format. ${system.time} ​July 4, 2009 12:30:55 PM ​${expression,pattern} ​Apply pattern with system locale ​ {system.time, $ yyyyMMdd-HH:mm:ss} ​2009070412:30:55 ​${ expression,pattern,locale } ​Apply pattern with the specified country locale ${system.time, "dd MMMM yyyy", fr} ​19 décembre 2017 ​${expression,,locale} ​Apply a default format with the specified country locale ${system.

    • PAGE 1121

      l A PlanetPress Image license which includes PlanetPress Fax. l A Job Preset adding the appropriate metadata fields l An Output preset generating a PDF/VT file. l A PlanetPress Workflow process outputting to the PlanetPress Fax task. Job Preset Configuration The following metadata fields must be added to the Metadata Options page: l l FaxNumber: The phone number where the fax will be sent. Often part of the data.

    • PAGE 1122

      Required Components The following components are required in order to output to Image: l A PlanetPress Imaging license. l A Job Preset adding the appropriate metadata fields l An Output preset generating a PDF/VT file. l A PlanetPress Workflow process outputting to the PlanetPress Image task.

    • PAGE 1123

      l In the Print Options, a PDF type should be selected, such as Generic PDF. l In the PDF Options, the PDF Type should be set to PDF/VT PlanetPress Workflow Process The following Workflow will produce Image output: l The four regular Connect tasks to generate print output: l Execute Data Mapping l Create Print Content l Create Job using the above Job Preset l l Create Output using the above Output Preset. The task's Output Management must be set to be Through Workflow.

    • PAGE 1124

      To learn how to attach other files, see "Email attachments" on page 434. Before generating Email output l l l Decide on the use of an Email Service Provider; see "Using an ESP with PlanetPress Connect" on page 1126. Make sure that a data set is loaded, that any necessary files, such as images and attachments, are in place, and that the correct settings are selected (see below). You may want to rasterize certain elements, such as business graphics. Rasterizing converts the element to a JPG or PNG image.

    • PAGE 1125

      To dynamically select a section for output, use a Control Script; see "Control Scripts" on page 711. l PDF attachments can be compressed to make the files smaller; see "Compressing PDF attachments" on page 424. Generating Email output from Connect Designer To generate Email output from the Designer: 1. Open a template with an Email context. 2. Load a data file or database compatible with this template, or open a Data Mapping Configuration. See "Loading data" on page 658.

    • PAGE 1126

      Preferences: select Window > Preferences, click the arrow next to Email, click General and type the test address next to Email Test address. For a description of how to test your email for different email clients, see this how-to: Test your emails with Litmus. For more information on Litmus, please see http://litmus.com/ Tip For a detailed description of how to use Mandrill with Connect to send and track emails, see the following how-to: Using Mandrill. Generating Email output from Workflow 1.

    • PAGE 1127

      l l l l ESPs ensure a high deliverability, as most ESPs are whitelisted or approved by ISPs (Internet Service Providers) as legitimate email delivery service. So they help you to avoid having mail detected as spam. ESPs provide comprehensive tracking options to measure open rates and they log which links were clicked and by who. Typically this information is available via an online dashboard. Most ESPs provide Bounce Management options.

    • PAGE 1128

      Sending an email with an ESP To send an email or test email with the use of an ESP, start generating the email as usual (see "Generating Email output" on page 1123). In the Send (Test) Email dialog, pay attention to the following settings: l l In the Outgoing mail settings area, select the preset for your ESP in the Presets dropdown. In the Password box, type the password provided by the ESP. Note The ESP might also have a test function you can use. Check the options of your ESP.

    • PAGE 1129

      Documentation: https://sendgrid.com/docs/API_Reference/SMTP_API/using_the_smtp_ api.html Sample Control Script to assign a category: var headerObj = { "category": ["invoices"] }; merge.context.sections["Content"].headers = { "X-SMTPAPI": JSON.stringify(headerObj) }; Note Sendgrid strips out their mail headers. The results need to be verified via their Dashboards (e.g. the Stats section lets you verify the stats for specific categories).

    • PAGE 1130

      Sample Control Script to assign a tag: merge.context.sections["Content"].headers = { "X-Mailgun-Tag": "invoices" }; Note The Mailgun tag allows you to view the stats per tag. Mailgun has a quick refresh and stats are available almost instantly. ​Ma​​ilJet Dashboard: https://app.mailjet.com/dashboard Documentation: https://app.mailjet.

    • PAGE 1131

      merge.context.sections["Content"].headers = { "X-Mailjet-Campaign": "invoices" }; Note Mailjet strips out their own mailheaders like X-Mailjet-Campaign. The results can only be verified via the respective campaign stats page in the Mailjet dashboard. There is no need to pre-create the campaign: adding it to the email header via a Control Script auto-generates the campaign. To view the campaign, login to Mailjet and choose: Campaigns > All.

    • PAGE 1132

      Web output can be generated from the Designer when a data set is available. The data can be retrieved from a database or data file, or from a Data Mapping Configuration. If you have an open Data Mapping Configuration and open another data file, the current Data Mapping Configuration will try to retrieve data from the file or database using its own Data Model and extraction logic.

    • PAGE 1133

      generated and added to the email as an HTML file. To attach multiple Web sections as separate attachments, you need to create a Control Script that specifies parts; see "Control Scripts" on page 711 and "Control Script API" on page 1077. 3. Load a data file or database compatible with this template. See "Loading data" on page 658. 4. On the File menu, click Send Email or Send Test Email. In the dialog that appears, check the option to attach the Web context to the email.

    • PAGE 1134

      Note Athough Workflow can serve both static and dynamic resources to a web browser, it is not meant to be used as a fully featured web server as it is not built for responsiveness nor guaranteed uptime. It is recommended to use a common web server (for example, IIS or Apache) to serve your contents and to let Workflow process things only it can do. For more information on how to serve HTML and PDF generated by Connect through IIS, watch the Connect with Evie - IIS series.

    • PAGE 1135

      l PlanetPress Connect 1.6 Release Notes l PlanetPress Connect 1.5 Release Notes l PlanetPress Connect 1.4 Release Notes Overview This document provides an overview of the new features and enhancements in PlanetPress Connect 2018.1 and PlanetPress Workflow 2018.1, as well as some important installation information. Installing PlanetPress Connect 2018.1 and PlanetPress Workflow 2018.

    • PAGE 1136

      Upgrading from PlanetPress Connect 1.7 It is highly recommended that you update the Objectif Lune Update Client before upgrading PlanetPress Connect from version 1.7 to version 2018.1. If you do not update the Update Client, an unexpected error might occur whilst updating Connect. This error does not prevent the successful upgrade of Connect to 2018.1, even though it appears as if it might have.

    • PAGE 1137

      Connect 2018.1.3 Enhancements/Fixes Hyperlinks broken in PDF output Hyperlinks in PDF output were broken in 2018.1. This issue has been fixed, and hyperlinks now work as expected in 2018.1.3. (SHARED-64353) Connect 2018.1.

    • PAGE 1138

      Special characters displayed incorrectly in Designer Snippet editor Fixed an issue with the encoding of non-Latin-1 characters in HTML snippet editors. (SHARED-64530) Connect 2018.1.1 Enhancements/Fixes Section cloning issues Two separate Section cloning issues were fixed. (SHARED-64087) The issues were: l l Cloned content was being based upon the section for which addBefore or addAfter was invoked, rather than the section the clone was originally based on. The rendered page count could be incorrect.

    • PAGE 1139

      In Workflow 2018.1.1 the GetKeySets() function has been changed to support both the more correct asterisk '*' parameter as well as the deprecated blank entry. (SHARED-64162) Issue with Type 3 fonts in PDF Output Type 3 fonts not embedded in PDF Output are replaced with font substitutions. These could become unmanageable in some circumstances. This issue has now been fixed. (SHARED64214) Connect 2018.1 General Enhancements Dynamic Print Control for PostScript printers Connect 2018.

    • PAGE 1140

      This allows: l l The use of printer features that are not yet supported through the Connect user interface, such as: l switching between color and greyscale printing l selecting output bins Direct control of supported PostScript functionality, such as: l Duplex/Simplex l Print Media selection l Finishing options (e.g.

    • PAGE 1141

      NOTE: Case sensitivity/insensitivity has not been added as an option in this first cut of the Dynamic Print Control rules editor. This will be added in a subsequent version.

    • PAGE 1142

      Improved Business Graphics Business Graphics have been greatly enhanced and now display a preview of the data and graph as part of the Pie, Line and Bar chart wizards. The updated wizards simplify data selection and allows you to set and preview graph options dynamically, prior to inserting the graph object.

    • PAGE 1143

      Refer to the amChart documentation for more information on the numerous configuration options available. NOTE: As a consequence of changes in both the user interface and the underlying technology, Business Graphics made with a version prior to PlanetPress Connect 2018.1 may not display correctly when opened in version 2018.1. See the Business Graphics: Backwards Compatibility section on this page for full details.

    • PAGE 1144

      Windows Server 2016 now officially supported As of PlanetPress Connect 2018.1, Connect is now officially supported under Windows Server 2016. NOTE: The Objectif Lune Inc. Update Client application might be blocked by enhanced security settings in Windows Server 2016. To fix this, add http://updates.ca.objectiflune.com to the list of trusted web sites on that machine, or lower the internet access rules. Improved Previews The Preview now smooths text, images and line art when rasterizing a page.

    • PAGE 1145

      New Preferences options: l l Scheduling preferences for Merge and Weaver engines now include a preference for specifying the memory (RAM) to be used per engine. (SHARED-44547) Merge and Weaver engine scheduling preferences now include an option for scheduling an engine restart if the total amount of memory (RAM) used by the engine exceeds the specified entry. This is in addition to the time limit setting.

    • PAGE 1146

      l Log file settings can now be adjusted within the Designer and Server Configuration preference windows. The settings are global to all Connect applications. Settings include log file rollover options (time or size based), and the format of the log messages generated. (SHARED-60043) Installer Improvements: l l l Prerequisites now installed silently when installing Connect using silent installer.

    • PAGE 1147

      l l When using the REST API to execute a +PReS Enhance configuration that logged to a custom log file, the log file could not be deleted at the end of the execution. Repeating the execution of the +PReS Enhance configuration also caused unreadable NUL characters to appear in the log file and log messages were appended to it. This has now been fixed and the custom log file now closes at the completion of the Enhance configuration execution. (SHARED-59656) Logging infrastructure has been updated.

    • PAGE 1148

      Connect 2018.1 Designer Enhancements/Fixes Updated internal browser component The browser component (Mozilla Gecko) used in the WYSIWYG editor of the Designer has been updated. This allows you to use new CSS properties like flexbox. Connect 2018.1 now uses Mozilla Gecko 38 as its HTML rendering engine. (SHARED-42286) NOTE: The update to the Mozilla Gecko engine could lead to increased output file sizes for some PCL jobs.

    • PAGE 1149

      values to dynamically specify a file from disk or a remote location. l Static file attachments can be added to email sections via the Attachments tab in the Email Section Properties dialog. (SHARED-28343) You can also select whether the Print Context should be added as a PDF attachment or not, using the "Attach Print context as PDF" check-box. Rotate and Scale Background Images Section Background images can now be rotated or scaled, either via the Section Properties dialog or via a control script.

    • PAGE 1150

      Align multiple objects You can now select and align several absolute positioned objects at once with the new Align Objects context menu. (SHARED-60263) Preflight improvements Double-clicking a script warning or error in the Preflight report will now open the offending script within a script editor. (SHARED-60273) Improved language support Disable certain CTRL + ALT + shortcuts in source editors, including source tab, HTML snippet editors and CSS editors.

    • PAGE 1151

      Scripting improvements: l l Option added to allow setting Case Sensitivity on or off for any conditional string comparison scripts. (SHARED-56535) Improved support in Text Script Wizards for the custom formatting of Date, Currency, and Numeric fields. (SHARED-60261) The above example shows a custom pattern for a currency value, containing a subpattern for negative values. How the result would appear is shown in the Example field.

    • PAGE 1152

      l l l l Improved Email Context script selection. All the Email Context scripts are now bundled together in their own sub-menu. (SHARED-56602) Improvements made to the default data field selection logic when adding new Text Scripts. (SHARED-57286) Double clicking a script in the Script Panel with the script editor open will now prompt you to save your changes. (SHARED-47908) Any open Script Editor will now close when another template is opened.

    • PAGE 1153

      General Designer improvements: l l l Style rule changes can now be saved and applied instantly from within the Edit Rule dialog, via a new Apply button. (SHARED-58595) A new Send to Workflow icon has been added to Designer. It can be found as a new option in the icon toolbar and has also been added to the existing File menu option. (SHARED-59322) You can now copy/paste or drag/drop images files from the file system or Images folder to the Stylesheets folder.

    • PAGE 1154

      l l l l l l l l l The New Email and New Print template wizards now open using the last used Template settings. Selections such as page size, page margins and the like will be retained. (SHARED-33982) Improved element insertion rules, to make context menus and dialogs more accurate. For example the option to add Absolute elements in emails has been removed, as the email format does not support this functionality. (SHARED-60947/61117) Improved support for remote images (http-based URLs).

    • PAGE 1155

      Connect 2018.1 DataMapping Enhancements/Fixes Standalone DataMapper Engine The DataMapper Engine has been stripped into a separate stand-alone server, to make it more efficient and configurable now as well as more adaptable in the future. The new DataMapper Engine options can be set via the Connect Server Configuration tool. (SHARED-59696) Improved date field support for Excel datafiles Formatting for date fields in Excel data files has been improved.

    • PAGE 1156

      Ignore CR/LF in Text records New option added to allow ignore end-of-line CR/LF characters in Text datafiles. This prevents empty trailing records being added to the dataset. (SHARED-62139) Create unique GUID in scripts New DataMapper Script function createGUID() added to the Boundaries and Steps scripts. This function returns a unique GUID. (SHARED-61246) New "No Data" warning A visual warning has been added to the DataMapper when an open table contains no data.

    • PAGE 1157

      l l It is now possible to add a CSV input file containing only a single column. (SHARED59814) Improved DataMapping performance for XML files containing large numbers of end-of-line CR/LF characters.

    • PAGE 1158

      Connect 2018.1 Output Enhancements/Fixes Redesigned Additional Content page in the Print Wizard The Additional Content page in the Print Wizard has been re-designed to present all the Additional Content entries in a single table, simplifying Additional Content management. (SHARED-56444) Improved Tray Mapping in Printer Wizard Media attributes can now be imported directly into the output config tray mapping from either the currently open template or from a saved template file.

    • PAGE 1159

      New Conditional option During Output Creation, it is now possible to determine the template section to which a sheet belongs to using the new sheet.sectionName property. This property has been made available as a conditional option in the Printer Wizard. (SHARED-61275) NOTE: The introduction of this property introduces a slight risk of compatibility issues, but only for cases where an existing custom printer definition or Enhance configuration already has a user-defined property with the exact same name.

    • PAGE 1160

      Print Output Improvements: l l l l Transparency support for PDF output. (SHARED-61492) Soft mask improvement in PDF. The soft mask is now set by the CTM ("Current Transformation Matrix") when the soft mask is created. (SHARED-58893) Improvements made to generic PCL output for some printers. (SHARED-60019) Booklet Impositioning for mix-plex jobs has been improved, reducing the likelihood of empty pages.

    • PAGE 1161

      Workflow 2018.1 Enhancements/Fixes Improved Performance The performance of the Execute Data Mapping and Retrieve Items tasks have been improved when setting the options to "Output Records to Metadata". (SHARED-56678) NOTE: The performance update to Retrieve Item is currently only implemented for Data Records. The other entity types will be added in a subsequent release. Retrieve Items by their IDs Option added to the Retrieve Items task to support retrieving items via their associated entity IDs.

    • PAGE 1162

      New option in Create Web Content task An option to "Do not alter HTML" was added to the Create Web Content task. When selected the task shall not add the BASE element to the HTML as it usually does, nor shall it modify the local anchors with JavaScript code. (SHARED-62521) New option in FTP Input task An option to "Search in subfolders" has been added to the FTP Input task.

    • PAGE 1163

      New Workflow Preferences: l l You can now set the default Workflow scripting language. This defaults to VB Script for backwards comparability. (SHARED-60000) Improved PHP like Array options are now available for the HTTP Service plug-in. (SHARED-50770) Number of email attachments now available The number of email attachments is now available to the Email Input task.

    • PAGE 1164

      GUID variable introduced A new %U system variable has been introduced to support full GUID values. This new variable is an addition to the pre-existing %u ( a unique 15-char string). The new %U system variable is available in the same locations that the %u system variable is, including in the context menus.

    • PAGE 1165

      l Options for setting the logging refresh speed have been added. (SHARED-60029) Workflow Data Repository Manager improvements: l Improved Data Repository Key Set editor. (SHARED-59137/60165) l Improved speed when writing to a Data Repository. (SHARED-51564) l l l Instead of throwing an error the lookup() function now returns NODATA when an invalid group and/or key is passed.

    • PAGE 1166

      l Fixed issue whereby Workflow would stop processing PostScript and PDF jobs on some Windows 10 Fall Creators Update machines. (SHARED-62516) Known Issues As of PlanetPress Connect 2018.1 the Known Issues have moved from the Release Notes to the Connect online Help. They can be found here. Overview This document provides an overview of the new features and enhancements in PlanetPress Connect 2018.1 and PlanetPress Workflow 2018.1, as well as some important installation information.

    • PAGE 1167

      The license allows regular printing via the Print Wizard but runs Email and Web output in demo mode. For more information, please contact your local OL Customer Care or Sales team. Templates Used in Workflow For improved performance we recommend re-saving Workflow templates set up in the previous versions to run with PlanetPress Connect2018.1\Workflow 2018.1.

    • PAGE 1168

      Upgrading from PlanetPress Connect 1.7 It is highly recommended that you update the Objectif Lune Update Client before upgrading PlanetPress Connect from version 1.7 to version 2018.1. If you do not update the Update Client, an unexpected error might occur whilst updating Connect. This error does not prevent the successful upgrade of Connect to 2018.1, even though it appears as if it might have.

    • PAGE 1169

      Connect 2018.1.2 Enhancements/Fixes Issues running Connect jobs through Enhance l l l When running multiple parallel output channels via Enhance configurations it was possible that some output channels could attempt to write the exact same content at the exact same time, thus using the same resources. This could lead to conflicts and resulted in errors and inconsistencies between outputs. This issue has now been fixed.

    • PAGE 1170

      Connect 2018.1.1 Enhancements/Fixes Section cloning issues Two separate Section cloning issues were fixed. (SHARED-64087) The issues were: l l Cloned content was being based upon the section for which addBefore or addAfter was invoked, rather than the section the clone was originally based on. The rendered page count could be incorrect.

    • PAGE 1171

      Issue with Type 3 fonts in PDF Output Type 3 fonts not embedded in PDF Output are replaced with font substitutions. These could become unmanageable in some circumstances. This issue has now been fixed. (SHARED64214) Connect 2018.1 General Enhancements Dynamic Print Control for PostScript printers Connect 2018.1 introduces a new way to drive PostScript printers.

    • PAGE 1172

      This allows: l l The use of printer features that are not yet supported through the Connect user interface, such as: l switching between color and greyscale printing l selecting output bins Direct control of supported PostScript functionality, such as: l Duplex/Simplex l Print Media selection l Finishing options (e.g.

    • PAGE 1173

      NOTE: Case sensitivity/insensitivity has not been added as an option in this first cut of the Dynamic Print Control rules editor. This will be added in a subsequent version.

    • PAGE 1174

      Improved Business Graphics Business Graphics have been greatly enhanced and now display a preview of the data and graph as part of the Pie, Line and Bar chart wizards. The updated wizards simplify data selection and allows you to set and preview graph options dynamically, prior to inserting the graph object.

    • PAGE 1175

      Refer to the amChart documentation for more information on the numerous configuration options available. NOTE: As a consequence of changes in both the user interface and the underlying technology, Business Graphics made with a version prior to PlanetPress Connect 2018.1 may not display correctly when opened in version 2018.1. See the Business Graphics: Backwards Compatibility section on this page for full details.

    • PAGE 1176

      Windows Server 2016 now officially supported As of PlanetPress Connect 2018.1, Connect is now officially supported under Windows Server 2016. NOTE: The Objectif Lune Inc. Update Client application might be blocked by enhanced security settings in Windows Server 2016. To fix this, add http://updates.ca.objectiflune.com to the list of trusted web sites on that machine, or lower the internet access rules. Improved Previews The Preview now smooths text, images and line art when rasterizing a page.

    • PAGE 1177

      New Preferences options: l l Scheduling preferences for Merge and Weaver engines now include a preference for specifying the memory (RAM) to be used per engine. (SHARED-44547) Merge and Weaver engine scheduling preferences now include an option for scheduling an engine restart if the total amount of memory (RAM) used by the engine exceeds the specified entry. This is in addition to the time limit setting.

    • PAGE 1178

      l Log file settings can now be adjusted within the Designer and Server Configuration preference windows. The settings are global to all Connect applications. Settings include log file rollover options (time or size based), and the format of the log messages generated. (SHARED-60043) Installer Improvements: l l l Prerequisites now installed silently when installing Connect using silent installer.

    • PAGE 1179

      l l When using the REST API to execute a +PReS Enhance configuration that logged to a custom log file, the log file could not be deleted at the end of the execution. Repeating the execution of the +PReS Enhance configuration also caused unreadable NUL characters to appear in the log file and log messages were appended to it. This has now been fixed and the custom log file now closes at the completion of the Enhance configuration execution. (SHARED-59656) Logging infrastructure has been updated.

    • PAGE 1180

      Connect 2018.1 Designer Enhancements/Fixes Updated internal browser component The browser component (Mozilla Gecko) used in the WYSIWYG editor of the Designer has been updated. This allows you to use new CSS properties like flexbox. Connect 2018.1 now uses Mozilla Gecko 38 as its HTML rendering engine. (SHARED-42286) NOTE: The update to the Mozilla Gecko engine could lead to increased output file sizes for some PCL jobs.

    • PAGE 1181

      values to dynamically specify a file from disk or a remote location. l Static file attachments can be added to email sections via the Attachments tab in the Email Section Properties dialog. (SHARED-28343) You can also select whether the Print Context should be added as a PDF attachment or not, using the "Attach Print context as PDF" check-box. Rotate and Scale Background Images Section Background images can now be rotated or scaled, either via the Section Properties dialog or via a control script.

    • PAGE 1182

      Align multiple objects You can now select and align several absolute positioned objects at once with the new Align Objects context menu. (SHARED-60263) Preflight improvements Double-clicking a script warning or error in the Preflight report will now open the offending script within a script editor. (SHARED-60273) Improved language support Disable certain CTRL + ALT + shortcuts in source editors, including source tab, HTML snippet editors and CSS editors.

    • PAGE 1183

      Scripting improvements: l l Option added to allow setting Case Sensitivity on or off for any conditional string comparison scripts. (SHARED-56535) Improved support in Text Script Wizards for the custom formatting of Date, Currency, and Numeric fields. (SHARED-60261) The above example shows a custom pattern for a currency value, containing a subpattern for negative values. How the result would appear is shown in the Example field.

    • PAGE 1184

      l l l l Improved Email Context script selection. All the Email Context scripts are now bundled together in their own sub-menu. (SHARED-56602) Improvements made to the default data field selection logic when adding new Text Scripts. (SHARED-57286) Double clicking a script in the Script Panel with the script editor open will now prompt you to save your changes. (SHARED-47908) Any open Script Editor will now close when another template is opened.

    • PAGE 1185

      General Designer improvements: l l l Style rule changes can now be saved and applied instantly from within the Edit Rule dialog, via a new Apply button. (SHARED-58595) A new Send to Workflow icon has been added to Designer. It can be found as a new option in the icon toolbar and has also been added to the existing File menu option. (SHARED-59322) You can now copy/paste or drag/drop images files from the file system or Images folder to the Stylesheets folder.

    • PAGE 1186

      l l l l l l l l l The New Email and New Print template wizards now open using the last used Template settings. Selections such as page size, page margins and the like will be retained. (SHARED-33982) Improved element insertion rules, to make context menus and dialogs more accurate. For example the option to add Absolute elements in emails has been removed, as the email format does not support this functionality. (SHARED-60947/61117) Improved support for remote images (http-based URLs).

    • PAGE 1187

      Connect 2018.1 DataMapping Enhancements/Fixes Standalone DataMapper Engine The DataMapper Engine has been stripped into a separate stand-alone server, to make it more efficient and configurable now as well as more adaptable in the future. The new DataMapper Engine options can be set via the Connect Server Configuration tool. (SHARED-59696) Improved date field support for Excel datafiles Formatting for date fields in Excel data files has been improved.

    • PAGE 1188

      Ignore CR/LF in Text records New option added to allow ignore end-of-line CR/LF characters in Text datafiles. This prevents empty trailing records being added to the dataset. (SHARED-62139) Create unique GUID in scripts New DataMapper Script function createGUID() added to the Boundaries and Steps scripts. This function returns a unique GUID. (SHARED-61246) New "No Data" warning A visual warning has been added to the DataMapper when an open table contains no data.

    • PAGE 1189

      l l It is now possible to add a CSV input file containing only a single column. (SHARED59814) Improved DataMapping performance for XML files containing large numbers of end-of-line CR/LF characters.

    • PAGE 1190

      Connect 2018.1 Output Enhancements/Fixes Redesigned Additional Content page in the Print Wizard The Additional Content page in the Print Wizard has been re-designed to present all the Additional Content entries in a single table, simplifying Additional Content management. (SHARED-56444) Improved Tray Mapping in Printer Wizard Media attributes can now be imported directly into the output config tray mapping from either the currently open template or from a saved template file.

    • PAGE 1191

      New Conditional option During Output Creation, it is now possible to determine the template section to which a sheet belongs to using the new sheet.sectionName property. This property has been made available as a conditional option in the Printer Wizard. (SHARED-61275) NOTE: The introduction of this property introduces a slight risk of compatibility issues, but only for cases where an existing custom printer definition or Enhance configuration already has a user-defined property with the exact same name.

    • PAGE 1192

      Print Output Improvements: l l l l Transparency support for PDF output. (SHARED-61492) Soft mask improvement in PDF. The soft mask is now set by the CTM ("Current Transformation Matrix") when the soft mask is created. (SHARED-58893) Improvements made to generic PCL output for some printers. (SHARED-60019) Booklet Impositioning for mix-plex jobs has been improved, reducing the likelihood of empty pages.

    • PAGE 1193

      Workflow 2018.1 Enhancements/Fixes Improved Performance The performance of the Execute Data Mapping and Retrieve Items tasks have been improved when setting the options to "Output Records to Metadata". (SHARED-56678) NOTE: The performance update to Retrieve Item is currently only implemented for Data Records. The other entity types will be added in a subsequent release. Retrieve Items by their IDs Option added to the Retrieve Items task to support retrieving items via their associated entity IDs.

    • PAGE 1194

      New option in Create Web Content task An option to "Do not alter HTML" was added to the Create Web Content task. When selected the task shall not add the BASE element to the HTML as it usually does, nor shall it modify the local anchors with JavaScript code. (SHARED-62521) New option in FTP Input task An option to "Search in subfolders" has been added to the FTP Input task.

    • PAGE 1195

      New Workflow Preferences: l l You can now set the default Workflow scripting language. This defaults to VB Script for backwards comparability. (SHARED-60000) Improved PHP like Array options are now available for the HTTP Service plug-in. (SHARED-50770) Number of email attachments now available The number of email attachments is now available to the Email Input task.

    • PAGE 1196

      GUID variable introduced A new %U system variable has been introduced to support full GUID values. This new variable is an addition to the pre-existing %u ( a unique 15-char string). The new %U system variable is available in the same locations that the %u system variable is, including in the context menus.

    • PAGE 1197

      l Options for setting the logging refresh speed have been added. (SHARED-60029) Workflow Data Repository Manager improvements: l Improved Data Repository Key Set editor. (SHARED-59137/60165) l Improved speed when writing to a Data Repository. (SHARED-51564) l l l Instead of throwing an error the lookup() function now returns NODATA when an invalid group and/or key is passed.

    • PAGE 1198

      l Fixed issue whereby Workflow would stop processing PostScript and PDF jobs on some Windows 10 Fall Creators Update machines. (SHARED-62516) Known Issues As of PlanetPress Connect 2018.1 the Known Issues have moved from the Release Notes to the Connect online Help. They can be found here. Overview This document provides an overview of the new features and enhancements in PlanetPress Connect 2018.1 and PlanetPress Workflow 2018.1, as well as some important installation information.

    • PAGE 1199

      The license allows regular printing via the Print Wizard but runs Email and Web output in demo mode. For more information, please contact your local OL Customer Care or Sales team. Templates Used in Workflow For improved performance we recommend re-saving Workflow templates set up in the previous versions to run with PlanetPress Connect2018.1\Workflow 2018.1.

    • PAGE 1200

      Upgrading from PlanetPress Connect 1.7 It is highly recommended that you update the Objectif Lune Update Client before upgrading PlanetPress Connect from version 1.7 to version 2018.1. If you do not update the Update Client, an unexpected error might occur whilst updating Connect. This error does not prevent the successful upgrade of Connect to 2018.1, even though it appears as if it might have.

    • PAGE 1201

      Connect 2018.1.1 Enhancements/Fixes Section cloning issues Two separate Section cloning issues were fixed. (SHARED-64087) The issues were: l l Cloned content was being based upon the section for which addBefore or addAfter was invoked, rather than the section the clone was originally based on. The rendered page count could be incorrect.

    • PAGE 1202

      Issue with Type 3 fonts in PDF Output Type 3 fonts not embedded in PDF Output are replaced with font substitutions. These could become unmanageable in some circumstances. This issue has now been fixed.

    • PAGE 1203

      Connect 2018.1 General Enhancements Dynamic Print Control for PostScript printers Connect 2018.1 introduces a new way to drive PostScript printers.

    • PAGE 1204

      l l The use of printer features that are not yet supported through the Connect user interface, such as: l switching between color and greyscale printing l selecting output bins Direct control of supported PostScript functionality, such as: l Duplex/Simplex l Print Media selection l Finishing options (e.g. Stapling, Binding and Folding) NOTE: Case sensitivity/insensitivity has not been added as an option in this first cut of the Dynamic Print Control rules editor.

    • PAGE 1205

      Improved Business Graphics Business Graphics have been greatly enhanced and now display a preview of the data and graph as part of the Pie, Line and Bar chart wizards. The updated wizards simplify data selection and allows you to set and preview graph options dynamically, prior to inserting the graph object.

    • PAGE 1206

      Refer to the amChart documentation for more information on the numerous configuration options available. NOTE: As a consequence of changes in both the user interface and the underlying technology, Business Graphics made with a version prior to PlanetPress Connect 2018.1 may not display correctly when opened in version 2018.1. See the Business Graphics: Backwards Compatibility section on this page for full details.

    • PAGE 1207

      Windows Server 2016 now officially supported As of PlanetPress Connect 2018.1, Connect is now officially supported under Windows Server 2016. NOTE: The Objectif Lune Inc. Update Client application might be blocked by enhanced security settings in Windows Server 2016. To fix this, add http://updates.ca.objectiflune.com to the list of trusted web sites on that machine, or lower the internet access rules. Improved Previews The Preview now smooths text, images and line art when rasterizing a page.

    • PAGE 1208

      New Preferences options: l l Scheduling preferences for Merge and Weaver engines now include a preference for specifying the memory (RAM) to be used per engine. (SHARED-44547) Merge and Weaver engine scheduling preferences now include an option for scheduling an engine restart if the total amount of memory (RAM) used by the engine exceeds the specified entry. This is in addition to the time limit setting.

    • PAGE 1209

      l Log file settings can now be adjusted within the Designer and Server Configuration preference windows. The settings are global to all Connect applications. Settings include log file rollover options (time or size based), and the format of the log messages generated. (SHARED-60043) Installer Improvements: l l l Prerequisites now installed silently when installing Connect using silent installer.

    • PAGE 1210

      l l When using the REST API to execute a +PReS Enhance configuration that logged to a custom log file, the log file could not be deleted at the end of the execution. Repeating the execution of the +PReS Enhance configuration also caused unreadable NUL characters to appear in the log file and log messages were appended to it. This has now been fixed and the custom log file now closes at the completion of the Enhance configuration execution. (SHARED-59656) Logging infrastructure has been updated.

    • PAGE 1211

      Connect 2018.1 Designer Enhancements/Fixes Updated internal browser component The browser component (Mozilla Gecko) used in the WYSIWYG editor of the Designer has been updated. This allows you to use new CSS properties like flexbox. Connect 2018.1 now uses Mozilla Gecko 38 as its HTML rendering engine. (SHARED-42286) NOTE: The update to the Mozilla Gecko engine could lead to increased output file sizes for some PCL jobs.

    • PAGE 1212

      values to dynamically specify a file from disk or a remote location. l Static file attachments can be added to email sections via the Attachments tab in the Email Section Properties dialog. (SHARED-28343) You can also select whether the Print Context should be added as a PDF attachment or not, using the "Attach Print context as PDF" check-box. Rotate and Scale Background Images Section Background images can now be rotated or scaled, either via the Section Properties dialog or via a control script.

    • PAGE 1213

      Align multiple objects You can now select and align several absolute positioned objects at once with the new Align Objects context menu. (SHARED-60263) Preflight improvements Double-clicking a script warning or error in the Preflight report will now open the offending script within a script editor. (SHARED-60273) Improved language support Disable certain CTRL + ALT + shortcuts in source editors, including source tab, HTML snippet editors and CSS editors.

    • PAGE 1214

      Scripting improvements: l l Option added to allow setting Case Sensitivity on or off for any conditional string comparison scripts. (SHARED-56535) Improved support in Text Script Wizards for the custom formatting of Date, Currency, and Numeric fields. (SHARED-60261) The above example shows a custom pattern for a currency value, containing a subpattern for negative values. How the result would appear is shown in the Example field.

    • PAGE 1215

      l l l l Improved Email Context script selection. All the Email Context scripts are now bundled together in their own sub-menu. (SHARED-56602) Improvements made to the default data field selection logic when adding new Text Scripts. (SHARED-57286) Double clicking a script in the Script Panel with the script editor open will now prompt you to save your changes. (SHARED-47908) Any open Script Editor will now close when another template is opened.

    • PAGE 1216

      General Designer improvements: l l l Style rule changes can now be saved and applied instantly from within the Edit Rule dialog, via a new Apply button. (SHARED-58595) A new Send to Workflow icon has been added to Designer. It can be found as a new option in the icon toolbar and has also been added to the existing File menu option. (SHARED-59322) You can now copy/paste or drag/drop images files from the file system or Images folder to the Stylesheets folder.

    • PAGE 1217

      l l l l l l l l l The New Email and New Print template wizards now open using the last used Template settings. Selections such as page size, page margins and the like will be retained. (SHARED-33982) Improved element insertion rules, to make context menus and dialogs more accurate. For example the option to add Absolute elements in emails has been removed, as the email format does not support this functionality. (SHARED-60947/61117) Improved support for remote images (http-based URLs).

    • PAGE 1218

      Connect 2018.1 DataMapping Enhancements/Fixes Standalone DataMapper Engine The DataMapper Engine has been stripped into a separate stand-alone server, to make it more efficient and configurable now as well as more adaptable in the future. The new DataMapper Engine options can be set via the Connect Server Configuration tool. (SHARED-59696) Improved date field support for Excel datafiles Formatting for date fields in Excel data files has been improved.

    • PAGE 1219

      Ignore CR/LF in Text records New option added to allow ignore end-of-line CR/LF characters in Text datafiles. This prevents empty trailing records being added to the dataset. (SHARED-62139) Create unique GUID in scripts New DataMapper Script function createGUID() added to the Boundaries and Steps scripts. This function returns a unique GUID. (SHARED-61246) New "No Data" warning A visual warning has been added to the DataMapper when an open table contains no data.

    • PAGE 1220

      l l It is now possible to add a CSV input file containing only a single column. (SHARED59814) Improved DataMapping performance for XML files containing large numbers of end-of-line CR/LF characters.

    • PAGE 1221

      Connect 2018.1 Output Enhancements/Fixes Redesigned Additional Content page in the Print Wizard The Additional Content page in the Print Wizard has been re-designed to present all the Additional Content entries in a single table, simplifying Additional Content management. (SHARED-56444) Improved Tray Mapping in Printer Wizard Media attributes can now be imported directly into the output config tray mapping from either the currently open template or from a saved template file.

    • PAGE 1222

      New Conditional option During Output Creation, it is now possible to determine the template section to which a sheet belongs to using the new sheet.sectionName property. This property has been made available as a conditional option in the Printer Wizard. (SHARED-61275) NOTE: The introduction of this property introduces a slight risk of compatibility issues, but only for cases where an existing custom printer definition or Enhance configuration already has a user-defined property with the exact same name.

    • PAGE 1223

      Print Output Improvements: l l l l Transparency support for PDF output. (SHARED-61492) Soft mask improvement in PDF. The soft mask is now set by the CTM ("Current Transformation Matrix") when the soft mask is created. (SHARED-58893) Improvements made to generic PCL output for some printers. (SHARED-60019) Booklet Impositioning for mix-plex jobs has been improved, reducing the likelihood of empty pages.

    • PAGE 1224

      Workflow 2018.1 Enhancements/Fixes Improved Performance The performance of the Execute Data Mapping and Retrieve Items tasks have been improved when setting the options to "Output Records to Metadata". (SHARED-56678) NOTE: The performance update to Retrieve Item is currently only implemented for Data Records. The other entity types will be added in a subsequent release. Retrieve Items by their IDs Option added to the Retrieve Items task to support retrieving items via their associated entity IDs.

    • PAGE 1225

      New option in Create Web Content task An option to "Do not alter HTML" was added to the Create Web Content task. When selected the task shall not add the BASE element to the HTML as it usually does, nor shall it modify the local anchors with JavaScript code. (SHARED-62521) New option in FTP Input task An option to "Search in subfolders" has been added to the FTP Input task.

    • PAGE 1226

      New Workflow Preferences: l l You can now set the default Workflow scripting language. This defaults to VB Script for backwards comparability. (SHARED-60000) Improved PHP like Array options are now available for the HTTP Service plug-in. (SHARED-50770) Number of email attachments now available The number of email attachments is now available to the Email Input task.

    • PAGE 1227

      GUID variable introduced A new %U system variable has been introduced to support full GUID values. This new variable is an addition to the pre-existing %u ( a unique 15-char string). The new %U system variable is available in the same locations that the %u system variable is, including in the context menus.

    • PAGE 1228

      l Options for setting the logging refresh speed have been added. (SHARED-60029) Workflow Data Repository Manager improvements: l Improved Data Repository Key Set editor. (SHARED-59137/60165) l Improved speed when writing to a Data Repository. (SHARED-51564) l l l Instead of throwing an error the lookup() function now returns NODATA when an invalid group and/or key is passed.

    • PAGE 1229

      l Fixed issue whereby Workflow would stop processing PostScript and PDF jobs on some Windows 10 Fall Creators Update machines. (SHARED-62516) Known Issues As of PlanetPress Connect 2018.1 the Known Issues have moved from the Release Notes to the Connect online Help. They can be found here. Overview This document provides an overview of the new features and enhancements in PlanetPress Connect 2018.1 and PlanetPress Workflow 2018.1, as well as some important installation information.

    • PAGE 1230

      The license allows regular printing via the Print Wizard but runs Email and Web output in demo mode. For more information, please contact your local OL Customer Care or Sales team. Templates Used in Workflow For improved performance we recommend re-saving Workflow templates set up in the previous versions to run with PlanetPress Connect2018.1\Workflow 2018.1.

    • PAGE 1231

      Upgrading from PlanetPress Connect 1.7 It is highly recommended that you update the Objectif Lune Update Client before upgrading PlanetPress Connect from version 1.7 to version 2018.1. If you do not update the Update Client, an unexpected error might occur whilst updating Connect. This error does not prevent the successful upgrade of Connect to 2018.1, even though it appears as if it might have.

    • PAGE 1232

      Connect 2018.1 General Enhancements Dynamic Print Control for PostScript printers. Connect 2018.1 introduces a new way to drive PostScript printers.

    • PAGE 1233

      l l The use of printer features that are not yet supported through the Connect user interface, such as: l switching between color and greyscale printing l selecting output bins Direct control of supported PostScript functionality, such as: l Duplex/Simplex l Print Media selection l Finishing options (e.g. Stapling, Binding and Folding) NOTE: Case sensitivity/insensitivity has not been added as an option in this first cut of the Dynamic Print Control rules editor.

    • PAGE 1234

      Improved Business Graphics Business Graphics have been greatly enhanced and now display a preview of the data and graph as part of the Pie, Line and Bar chart wizards. The updated wizards simplify data selection and allows you to set and preview graph options dynamically, prior to inserting the graph object.

    • PAGE 1235

      Refer to the amChart documentation for more information on the numerous configuration options available. NOTE: As a consequence of changes in both the user interface and the underlying technology, Business Graphics made with a version prior to PlanetPress Connect 2018.1 may not display correctly when opened in version 2018.1. See the Business Graphics: Backwards Compatibility section on this page for full details.

    • PAGE 1236

      Windows Server 2016 now officially supported As of PlanetPress Connect 2018.1, Connect is now officially supported under Windows Server 2016. NOTE: The Objectif Lune Inc. Update Client application might be blocked by enhanced security settings in Windows Server 2016. To fix this, add http://updates.ca.objectiflune.com to the list of trusted web sites on that machine, or lower the internet access rules. Improved Previews The Preview now smooths text, images and line art when rasterizing a page.

    • PAGE 1237

      New Preferences options: l l Scheduling preferences for Merge and Weaver engines now include a preference for specifying the memory (RAM) to be used per engine. (SHARED-44547) Merge and Weaver engine scheduling preferences now include an option for scheduling an engine restart if the total amount of memory (RAM) used by the engine exceeds the specified entry. This is in addition to the time limit setting.

    • PAGE 1238

      l Log file settings can now be adjusted within the Designer and Server Configuration preference windows. The settings are global to all Connect applications. Settings include log file rollover options (time or size based), and the format of the log messages generated. (SHARED-60043) Installer Improvements: l l l Prerequisites now installed silently when installing Connect using silent installer.

    • PAGE 1239

      l l When using the REST API to execute a +PReS Enhance configuration that logged to a custom log file, the log file could not be deleted at the end of the execution. Repeating the execution of the +PReS Enhance configuration also caused unreadable NUL characters to appear in the log file and log messages were appended to it. This has now been fixed and the custom log file now closes at the completion of the Enhance configuration execution. (SHARED-59656) Logging infrastructure has been updated.

    • PAGE 1240

      Connect 2018.1 Designer Enhancements/Fixes Updated internal browser component The browser component (Mozilla Gecko) used in the WYSIWYG editor of the Designer has been updated. This allows you to use new CSS properties like flexbox. Connect 2018.1 now uses Mozilla Gecko 38 as its HTML rendering engine. (SHARED-42286) NOTE: The update to the Mozilla Gecko engine could lead to increased output file sizes for some PCL jobs.

    • PAGE 1241

      values to dynamically specify a file from disk or a remote location. l Static file attachments can be added to email sections via the Attachments tab in the Email Section Properties dialog. (SHARED-28343) You can also select whether the Print Context should be added as a PDF attachment or not, using the "Attach Print context as PDF" check-box. Rotate and Scale Background Images Section Background images can now be rotated or scaled, either via the Section Properties dialog or via a control script.

    • PAGE 1242

      Align multiple objects You can now select and align several absolute positioned objects at once with the new Align Objects context menu. (SHARED-60263) Preflight improvements Double-clicking a script warning or error in the Preflight report will now open the offending script within a script editor. (SHARED-60273) Improved language support Disable certain CTRL + ALT + shortcuts in source editors, including source tab, HTML snippet editors and CSS editors.

    • PAGE 1243

      Scripting improvements: l l Option added to allow setting Case Sensitivity on or off for any conditional string comparison scripts. (SHARED-56535) Improved support in Text Script Wizards for the custom formatting of Date, Currency, and Numeric fields. (SHARED-60261) The above example shows a custom pattern for a currency value, containing a subpattern for negative values. How the result would appear is shown in the Example field.

    • PAGE 1244

      l l l l Improved Email Context script selection. All the Email Context scripts are now bundled together in their own sub-menu. (SHARED-56602) Improvements made to the default data field selection logic when adding new Text Scripts. (SHARED-57286) Double clicking a script in the Script Panel with the script editor open will now prompt you to save your changes. (SHARED-47908) Any open Script Editor will now close when another template is opened.

    • PAGE 1245

      General Designer improvements: l l l Style rule changes can now be saved and applied instantly from within the Edit Rule dialog, via a new Apply button. (SHARED-58595) A new Send to Workflow icon has been added to Designer. It can be found as a new option in the icon toolbar and has also been added to the existing File menu option. (SHARED-59322) You can now copy/paste or drag/drop images files from the file system or Images folder to the Stylesheets folder.

    • PAGE 1246

      l l l l l l l l l The New Email and New Print template wizards now open using the last used Template settings. Selections such as page size, page margins and the like will be retained. (SHARED-33982) Improved element insertion rules, to make context menus and dialogs more accurate. For example the option to add Absolute elements in emails has been removed, as the email format does not support this functionality. (SHARED-60947/61117) Improved support for remote images (http-based URLs).

    • PAGE 1247

      Connect 2018.1 DataMapping Enhancements/Fixes Standalone DataMapper Engine The DataMapper Engine has been stripped into a separate stand-alone server, to make it more efficient and configurable now as well as more adaptable in the future. The new DataMapper Engine options can be set via the Connect Server Configuration tool. (SHARED-59696) Improved date field support for Excel datafiles Formatting for date fields in Excel data files has been improved.

    • PAGE 1248

      Ignore CR/LF in Text records New option added to allow ignore end-of-line CR/LF characters in Text datafiles. This prevents empty trailing records being added to the dataset. (SHARED-62139) Create unique GUID in scripts New DataMapper Script function createGUID() added to the Boundaries and Steps scripts. This function returns a unique GUID. (SHARED-61246) New "No Data" warning A visual warning has been added to the DataMapper when an open table contains no data.

    • PAGE 1249

      l l It is now possible to add a CSV input file containing only a single column. (SHARED59814) Improved DataMapping performance for XML files containing large numbers of end-of-line CR/LF characters.

    • PAGE 1250

      Connect 2018.1 Output Enhancements/Fixes Redesigned Additional Content page in the Print Wizard The Additional Content page in the Print Wizard has been re-designed to present all the Additional Content entries in a single table, simplifying Additional Content management. (SHARED-56444) Improved Tray Mapping in Printer Wizard Media attributes can now be imported directly into the output config tray mapping from either the currently open template or from a saved template file.

    • PAGE 1251

      New Conditional option During Output Creation, it is now possible to determine the template section to which a sheet belongs to using the new sheet.sectionName property. This property has been made available as a conditional option in the Printer Wizard. (SHARED-61275) NOTE: The introduction of this property introduces a slight risk of compatibility issues, but only for cases where an existing custom printer definition or Enhance configuration already has a user-defined property with the exact same name.

    • PAGE 1252

      Print Output Improvements: l l l l Transparency support for PDF output. (SHARED-61492) Soft mask improvement in PDF. The soft mask is now set by the CTM ("Current Transformation Matrix") when the soft mask is created. (SHARED-58893) Improvements made to generic PCL output for some printers. (SHARED-60019) Booklet Impositioning for mix-plex jobs has been improved, reducing the likelihood of empty pages.

    • PAGE 1253

      Workflow 2018.1 Enhancements/Fixes Improved Performance The performance of the Execute Data Mapping and Retrieve Items tasks have been improved when setting the options to "Output Records to Metadata". (SHARED-56678) NOTE: The performance update to Retrieve Item is currently only implemented for Data Records. The other entity types will be added in a subsequent release. Retrieve Items by their IDs Option added to the Retrieve Items task to support retrieving items via their associated entity IDs.

    • PAGE 1254

      New option in Create Web Content task An option to "Do not alter HTML" was added to the Create Web Content task. When selected the task shall not add the BASE element to the HTML as it usually does, nor shall it modify the local anchors with JavaScript code. (SHARED-62521) New option in FTP Input task An option to "Search in subfolders" has been added to the FTP Input task.

    • PAGE 1255

      New Workflow Preferences: l l You can now set the default Workflow scripting language. This defaults to VB Script for backwards comparability. (SHARED-60000) Improved PHP like Array options are now available for the HTTP Service plug-in. (SHARED-50770) Number of email attachments now available The number of email attachments is now available to the Email Input task.

    • PAGE 1256

      GUID variable introduced A new %U system variable has been introduced to support full GUID values. This new variable is an addition to the pre-existing %u ( a unique 15-char string). The new %U system variable is available in the same locations that the %u system variable is, including in the context menus.

    • PAGE 1257

      l Options for setting the logging refresh speed have been added. (SHARED-60029) Workflow Data Repository Manager improvements: l Improved Data Repository Key Set editor. (SHARED-59137/60165) l Improved speed when writing to a Data Repository. (SHARED-51564) l l l Instead of throwing an error the lookup() function now returns NODATA when an invalid group and/or key is passed.

    • PAGE 1258

      l Fixed issue whereby Workflow would stop processing PostScript and PDF jobs on some Windows 10 Fall Creators Update machines. (SHARED-62516) Known Issues As of PlanetPress Connect 2018.1 the Known Issues have moved from the Release Notes to the Connect online Help. They can be found here. Previous Releases Overview This document provides an overview of the new features and enhancements in PlanetPress Connect 1.8 and PlanetPress Workflow 8.8, as well as some important installation information.

    • PAGE 1259

      Upgrading from PlanetPress Connect 1.1 In order to upgrade from Connect Version 1.1 to Version 1.8 via the Update Manager, it is necessary to install a newer version of the Objectif Lune Update Client. The next time you run your current Update Client it will show that there is an update available for itself. Simply click on the download button in the dialog to install the new version of the Update Client. Note that it is no problem in running the update while the Client itself is still open.

    • PAGE 1260

      Updating stand-alone Workflow Messenger installations If Workflow Messenger was installed stand alone with no other Workflow components installed, the Update Client will be unable to find the Messenger component and thus it will not automatically update to the Workflow 8.8 version. To get around this, download and run the Workflow 8.8 installer manually. Print Only Version A Print Only license is available with version 1.

    • PAGE 1261

      Connect 1.8 General Enhancements and Fixes Native support for Microsoft Excel spreadsheet files The Connect DataMapper can now handle Microsoft Excel files natively. The CSV data type has been enhanced to automatically recognize *.XLS and *.XLSX files and use them directly without any additional steps. Both the CSV Wizard and the Add Data options now allow you to pick these file types.

    • PAGE 1262

      Dynamically set Media Background Images Support has been added for dynamically setting the path of media backgrounds at run time (aka Virtual Stationery). This is achieved via the Control Script API. The path can be set to an image in the Images folder but also to a file on disk (the http:// and https:// protocols are not currently supported). This greatly simplifies template management in situations where a design is shared between different brands.

    • PAGE 1263

      Installer improvements l Improved error capture, handling and messaging. (SHARED-40209) l Significantly improved logging of Server Service installation. (SHARED-50796) Korean Language Support PlanetPress Connect 1.8 is now available in Korean, in addition to the other languages already supported. Korean is not yet available in PlanetPress Workflow, however. (SHARED-40161) Context Sensitive Help Context Sensitive Help has been added to PlanetPress Connect.

    • PAGE 1264

      Anchored positioned boxes losing style attributes Absolute positioned (Anchored) elements would lose some style attributes under certain circumstances. These issues would only occur when the absolute positioned element had multiple style attributes that ended with the text "top" or "left". Such as is the case with "padding-top" and "top". If both those attributes were set, then only one of the attributes would be retained. (SHARED-57361) l l Customers upgrading from 1.6.1 to 1.

    • PAGE 1265

      Connect 1.8 Performance Related Enhancements and Fixes Faster Performance Tweaking in Server Configuration When tweaking performance it can be hard to figure out the right settings for the number of Merge engines, Weaver engines, dividing speed units, etc. Having to restart the Connect Server to apply the changes every time a setting was changed also made tweaking performance harder than it should have been.

    • PAGE 1266

      Connect 1.8 Designer Enhancements and Fixes Automatically Fit Text to Container (Copy Fit) The Designer can now automatically scale text content to fit the boundaries of a box (inline or absolute positioned

      ). Scaling text to fit a container is a very popular feature when creating personalized post cards and the like. The option is found in the Content tab of the Box properties dialog and can be set to scale all text or a specific element in that box by entering a CSS selector.

    • PAGE 1267

      Toggle Comments On/Off via Shortcut Keys Toggle comments off or on in HTML, CSS and JavaScript editors via a keyboard combination. Use Ctrl + / to comment out a single line and Ctrl + Shift + / to comment out multiple lines. (SHARED-56440) Refresh View button added You can now refresh the contents of both Design and Preview views via the new Refresh button or new Refresh selection in the Menu.

    • PAGE 1268

      Specify Page Range for Preflight You can now optionally perform Preflights on a range of records. (SHARED-35076) Select and adjust multiple Box elements simultaneously Multiple Box elements can now be selected at the same time. Once selected you can either move or resize the selected boxes as a group. You can move them either via the mouse, or by nudging them around a single pixel at a time with the arrow keys. When nudging, the boxes will not snap to guides.

    • PAGE 1269

      Set Template Locale Previously Connect always assigned the System Locale to new templates. A new option has been added to the preferences to allow the selection of a specific locale. This selection will then apply to all new templates thereafter. It applies to Date and Time fields plus numeric and currency data fields.

    • PAGE 1270

      General Designer improvements l l l l l l GS1 Datamatrix barcode now supported. (SHARED-55999) Section, Media, and Master resources can now be duplicated by copy-pasting. (SHARED-52261) Reopening a template will put the focus on the section that was active when the template was closed. (SHARED-53199) Keyboard shortcuts to increase (Ctrl + Shift + >) or decrease (Ctrl + Shift + <) text size now work as expected. (SHARED-11660) "Problem" view renamed more accurately as "Preflight Result".

    • PAGE 1271

      Connect 1.8 DataMapping Enhancements and Fixes Extracting Variables without using JavaScript Variables are frequently used in data mapping configurations as counters or as a way to concatenate values before extracting the final result to a data model field. Until Connect 1.8, the only way to extract those variables would be to create a Javascript-mode field and to use the appropriate API syntax (e.g. automation.jobinfo.jobinfo1, or sourceRecord.properties.MyVariable).

    • PAGE 1272

      "Extract all from here" feature added In TXT mode, we’ve often had the request to be able to extract everything after a specific location, regardless of the record length. This would be useful, for instance, when extracting the body of an email which is never fixed-length. Until PlanetPress Connect 1.8, the customary way of proceeding would be to use a Loop step that stores all lines in a variable and an Extract step after the loop to store that variable into a field.

    • PAGE 1273

      Improvements made for Transactional Style Datafiles. l l l The DataMapper and Output have both been enhanced to better cater for extremely large data records (where thousands of details might be associated with a single record). (SHARED-51691). The Designer has been updated to allow a limit to the maximum number of records to display in preview. Tooltip now displays a warning if detail table exceeds the preview limit.

    • PAGE 1274

      Connect 1.8 Output Enhancements and Fixes Dynamic Finishing Print Output Finishing has been improved considerably, and is now much more powerful and flexible. In Templates, you could already set finishing for documents and sections. Job Creation would allow you to specify a different kind of Finishing for your documents and Templates. This has been extended to allow Finishing settings on all levels of Job Creation: Document Sets, Job Segments and Jobs.

    • PAGE 1275

      The reason we call this feature dynamic finishing, is that it includes a brand new rules editor to allow you to choose when to apply a finishing setting: Page 1275

    • PAGE 1276

      PDF Pass-through Connect’s output creation (Weaver engine) tries to write content the best way possible, depending on the chosen output format and optimization settings. However, there are cases when this might not be desired, such as when the graphics have already been optimized for the device and you do not want the software to change them. It is now possible to instruct output creation to include PDF resources in the output file as-is.

    • PAGE 1277

      whether this will be an issue on your specific printer(s) or not. This issue will also be addressed in a later release. Overprint for Spot Colours Overprinting certain content on top of other content is sometimes required. (SHARED-56743) For example: l l To deal with special print applications, such as applying special (invisible) inks that are intended to go on top of coloured areas, for instance printing UV ink or applying varnish to a certain area.

    • PAGE 1278

      Print Output l l Mixplex support added An option has been introduced to omit empty back sides for the Single and Last sheet positions when Duplex is enabled, resulting in mixplex output. This helps in reducing costs in printing environments where page count or click-charging is applied. (SHARED46965\55459) Improved logging of output generation.

    • PAGE 1279

      Capture OnTheGo (COTG) Enhancements and Fixes New and improved COTG library A new jQuery plugin variant of the COTG.js library introduces events and options for COTG widgets. These concepts greatly simplify event based programming. For example: it allows your code to set a date for a date field and retrieve the geolocation automatically on the drawing of a signature. The COTG jQuery plugin is the successor of the cotg-1.x.js JavaScript library found in COTG forms based on the COTG Starter templates (v1.x).

    • PAGE 1280

      Workflow 8.8 Enhancements and Fixes Deleting documents from the COTG repository Many COTG customers create documents for which they don’t want to set an expiry date (or a lifespan). They therefore set an expiry date far into the future to make sure the document remains in the repository. However, once the document has been filled they would like to remove it from the repository as soon as possible so it doesn’t clutter the view of the repository.

    • PAGE 1281

      The Connect Server has its own File Store which it uses for transient files. This File Store is managed by the Cleanup service who takes care of removing obsolete files when those files are not marked as permanent. This greatly reduces the amount of administration required to manage the files. We figured that since there is already a File Store and REST API calls to connect to it, why not turn that into an accessible feature for customer implementations? With Connect 1.8, the Workflow 8.

    • PAGE 1282

      Generating all contents using JSON instead of data records A number of customer workflows involve generating new versions of documents based on the original one created by Connect. For instance, a Delivery Note might come back with adjusted quantities on certain line items. Or a web-based status page might need to get updated with additional data. However in many cases, the original data must still be left untouched (for reprints, for instance).

    • PAGE 1283

      Converting XML to JSON and JSON to XML XML is already one of the most popular data formats used with Connect. In many implementations, most notably web-based ones, XML is used to transfer or update information back and forth between Connect and Workflow. However, using XML means the DataMapper must be involved each time the data changes, which impacts performance, especially when all you want is to update a Status web page.

    • PAGE 1284

      Full Timestamp entries added to Data Repository Added full timestamps to the Repository to allow for more precise information on each key set. The DateC and DateM keys now both contain a full time stamp in the form of: YYYY-MMDDThh:mm:ss.sZ. Please consult the online Help for a full description of the Timestamp. (SHARED-52160) General Workflow fixes and enhancements l Additional Tooltips added to interface. (SHARED-54981) l Improved support for multiple IDs in Retrieve items task.

    • PAGE 1285

      Known Issues Issues with Microsoft Edge browser The Microsoft Edge browser fails to display web pages when the Workflow's CORS option (in the HTTP Server Input 2 section) is set to "*". This issue will be resolved in a future release.

    • PAGE 1286

      GoDaddy Certificates When installing Connect offline, dialogs allow installing the GoDaddy certificates. Most users should use the default settings and click Next. In some cases, however, this may not work correctly. For this reason those users should activate Place all certificates in the following store and then select the Trusted Root Certification Authorities as the target certificate store. MySQL Compatibility After installing Connect 1.8 a downgrade to a Connect version earlier than Connect 1.

    • PAGE 1287

      l Generic PS LEVEL2 (DSC compliant) l Generic PS LEVEL2 (DSC) External Resources in Connect There are certain limitations on how external resources can be used in Connect. For example if you want to link a file (e.g., CSS, image, JavaScript etc.) from a location on the network but you do not want to have a copy of the file saved with the template you need to do the following: 1. The resource must be located where it can be accessed by all Servers/Slaves run as users.

    • PAGE 1288

      Colour Model in Stylesheets The colour model of colours defined in a stylesheet can sometimes change after editing the stylesheet. This is a known issue and will be addressed in a subsequent release.

    • PAGE 1289

      Print Limitations when the Output Server is located on a different machine The following limitation may occur when using the Print options from a Designer located on a different machine to the Output Server: l l l The file path for the prompt and directory output modes is evaluated on both the client AND server side. When printing to a network share it must be available to BOTH the Designer and Server for the job to terminate successfully.

    • PAGE 1290

      Once you have done this, PlanetPress Connect 1.7.1 will become available for download. From Connect Version 1.2 onwards, the newer version of the Update Client was included with the Connect installation. Updating stand-alone Workflow Messenger installations If Workflow Messenger were installed stand alone, with no other Workflow components installed, the Update Client will be unable to find the Messenger component and thus it will not automatically update to the Workflow 8.7 version.

    • PAGE 1291

      Connect 1.7.1 General Enhancements and Fixes Template Reports added to Connect Generate a report in PDF format containing the most important information about your template. The report lists contexts, sections, master pages, scripts, the data model, graphic files, and any other resources used, along with their properties. This report can be added as part of your project documentation.

    • PAGE 1292

      Document Properties Document Properties can now be added to both Templates and Data Mapper Configurations. This allows you to specify properties such as the document author, the customer name and other important references. You can also add custom key/value pairs. The respective properties can be retrieved in scripting and are thus available as content in your documents. The information is also included in the Template Report feature.

    • PAGE 1293

      "Enhance with Connect" option added for PDF files in Windows Explorer A Windows Explorer context menu entry "Enhance with Connect" has been added for PDF files. When a user selects this context menu entry, PlanetPress Connect Designer opens with a prefabricated template, that uses the selected PDF file as the background. (SHARED15350/47156) Support added for Remote HTML and JSON Snippets In PlanetPress Connect 1.7.1 we introduce the concept of remote snippet resources.

    • PAGE 1294

      Handling Nested Detail Data Simplifying the handling nested detail data has been on our agenda for some time. As part of our research into this we have looked at an approach that repeats table rows for nested detail data. This doesn’t create HTML tables in HTML tables but rather clones a base row specified for each level. Consider the following image: At this stage there is no user interface to configure this type of dynamic table but in a separate Technical article.

    • PAGE 1295

      Installer improvements l l The PlanetPress Connect 1.7.0 installation did not work on machines running Windows 10 build 1703 (i.e. the "Creators Update", released March 2017). This has been fixed for PlanetPress Connect 1.7.1. (SHARED-56800) The silent installation process has been enhanced, and now supports the following: l l l l l l Setting the repository. This can be configured via the "product.repository" entry in "install.properties".

    • PAGE 1296

      Connect 1.7.1 Designer Enhancements and Fixes Edit and Save CSS, HTML, JavaScript and JSON files within the Designer Ever needed to quickly edit an external CSS, HTML, JavaScript or JSON file? The PlanetPress Connect 1.7.1 Designer now allows you to open and save these file types via the File menu. (SHARED-42094) Data Model Panel Enhancements Various enhancements have been made to the Data Model panel.

    • PAGE 1297

      Improved Customization of the Designer interface Customize your interface by selecting your own colours for object edges, margins, guidelines, etc.

    • PAGE 1298

      Guideline behaviour improved Along with visible/invisible settings, Guidelines can now be locked in place or set to snap to objects, using the new Guides option in the View menu. (SHARED-47159). Warning now displayed when opening templates created in an older version When PlanetPress Connect opens an older template file it is automatically migrated to the template structure of the current version.

    • PAGE 1299

      These Warnings can be switched on again at any time thereafter, via the "Reset All Warning Dialogs" button in the General Preferences dialog. (SHARED-16962) Option to automatically Delete a dynamic table when the table is empty An option has been added to allow you to automatically delete a dynamic table when the data table is empty. To do so, select the entire table, and then tick the "Hide when empty" checkbox in the Attributes panel.

    • PAGE 1300

      Replace elements with data-insert-location when inserting HTML elements When inserting an element from an Insert dialog, Connect now checks the data-insertplaceholder attribute. The value of the attribute is then used to set the default value for the Insert Location option within the Insert dialog. If the attribute is not found, things behave as in previous versions. This ticket also introduces the Replace option for the Insert Location drop down.

    • PAGE 1301

      Scripting improvements l Context menu added to the Edit Script dialog. (SHARED-45381) . l l l l Find and Replace functionality has been added to Script editors. (SHARED-48424) New menu option to rename Scripts or Folders has been added to the Context Menu within the Script panel. (SHARED-48607) Support added for copy and paste of folders and scripts within the Scripts panel.

    • PAGE 1302

      General Designer improvements l l l l l l l Duplicate and Delete line(s) using shortcuts in the Stylesheet, JavaScript and HTML editors. Use Ctrl+D to duplicate and Ctrl+Shift+D to delete the currently selected lines. (SHARED-46928) Entering geometry values without stating a specific unit type will now automatically assign the default unit type to the entry. (SHARED-50656) When deleting an element (such as a Barcode or a Chart) on a page, a check will now be made for associated scripts.

    • PAGE 1303

      Capture OnTheGo (COTG) improvements l l l l l Two new form inputs have been introduced to facilitate the retrieval of the document ID and the store ID. (SHARED-53987/54054) Improvements made to updating the COTG library within existing templates. The user will now be prompted as to whether they wish to switch to the new version or not.

    • PAGE 1304

      Connect 1.7.1 DataMapping Enhancements and Fixes DataMapper can now fetch or update data from remote sources New in PlanetPress Connect 1.7.1 is the ability to create an XMLHTTPRequest object (aka XHR) in DataMapper scripts in order to issue REST/AJAX calls to external servers. This feature allows the datamapping process to complement the extraction process with external data, including data that could be provided by a HTTP process in Workflow.

    • PAGE 1305

      This yields two immediate and major benefits: l l Data Extraction is much faster since you are only extracting the records you actually want The database will not be cluttered with useless records (potentially numbering in the thousands) that you were not going to use anyway. As a consequence, the automated clean-up process will have much less work to perform when the time comes to delete obsolete entries from the database. This should result in a lighter workload and better overall performance.

    • PAGE 1306

      the record will still be stored in the database, with un-extracted fields being assigned whatever default value (if any) you defined for them. So if your goal is to completely prevent unwanted records from being stored in the database, you should make sure to implement your filtering conditions early in the data mapping process.

    • PAGE 1307

      General DataMapper Enhancements and Fixes l l l l l XML Wizard: option added to extract Attributes and to set boundaries on Attribute changes. (SHARED-42251) Improved support for UNC paths to image files. (SHARED-44316) The Extradata fields are now available in the DataMapper to more easily allow setting of field default values. The display of the Extradata fields can be toggled on or off directly from the Data Model panel. (SHARED-51426) New data.findRegExp() function added.

    • PAGE 1308

      This means that, apart from straightforward cases where we are grouping with or without sorting, it is also possible to create combinations where some fields do alter the sort order and others have no effect. Please note that grouping without sorting also means that any documents that have the same value for the same grouping field (i.e., customer number in the example above), but which are not consecutive in the input data, will not end up in the same group.

    • PAGE 1309

      Additionally, some settings on the Imposition Options page affect the way that booklets are created. These settings are now editable, so settings such as the gap between pages can now also be set for booklets.

    • PAGE 1310

      Additional Postal Services Barcodes added to Output Creation Barcodes for postal services are excellent candidates for adding during the Output Creation steps, rather than during Content Creation. Reasons for this include: l l l They often cannot be added during Content Creation because they depend on document size (or weight) and on a sort order that is determined during Job Creation. They need to go in a fixed position, dependent upon the envelope window, rather than document design.

    • PAGE 1311

      The new barcodes include: l Australia Post 4 State l KIX Code (Dutch postal service - Post.NL) l Royal Mail (UK) l Royal Mail 2D (UK) l USPS IMB (US) l USPS IMPB (US) Some of these barcodes have specific requirements in order for them to be usable. The respective postal services provide specifications and sometimes also the tools for generating the content of these barcodes. The checksums needed for Australia Post 4 State and IMPB are calculated automatically.

    • PAGE 1312

      Job Output Mask improvements, to simplify working with output file names We have improved the way that output file names can be specified. A new dialog box has been added to the Print Wizard, to simplify the creation of Job Output Masks. While it is still possible to directly type a file name with placeholders in the Output File Mask box, it is now also possible to use the dialog to pick the metadata fields and other variables that can be used to create dynamic file names.

    • PAGE 1313

      For the Output Preset to know what metadata is available, you can select a Job Preset when creating or modifying an Output Preset: In the Advanced mode of the Print Wizard this new dialog works a bit different, because the metadata can be directly edited in the same wizard instead of having to refer to a Job Preset. Tray Mapping for Multiple Templates For printing to a cutsheet printer, the Output Preset allows mapping of media defined in a template to trays and media known by the printer.

    • PAGE 1314

      such a way that no conflicting tray mappings can occur within a job, as Job Presets allow filtering by media type. Print Output l Improvements made to the Print Wizard These include: l Improved usability in Inserter dialog. (SHARED-38279) l Data Filtering dialog usability improved.

    • PAGE 1315

      Workflow 8.7 Enhancements and Fixes Custom Task descriptions The Comments section of each Workflow Task can now be used as the task's description in the Workflow Configuration tool, allowing users to better document the process without having to resort to numerous Comment Tasks. (SHARED-39120) Workflow processes can sometimes become rather complex and thus they require some documentation in order to allow subsequent users to know why they were implemented in one fashion or another.

    • PAGE 1316

      reason (reprints, produce additional jobs, etc.), you will have to perform the data mapping configuration from scratch. So make sure you only tick the box for true one-off jobs. (SHARED48956/56420) Retrieve Items task now has a JSON Output option The Retrieve Items task can now output the results of its query as a JSON string instead of storing them within the metadata. This allows easy handling of the results either through Workflow Scripting or directly in the Designer.

    • PAGE 1317

      Note The "Test SMTP Settings" does not work when using TLS. This limitation will be addressed in a later release. General Workflow fixes and enhancements l l l l l l l l l l Improved datamapping speed when outputting records in metadata. (SHARED-38455) Improved performance when creating metadata after Content Creation. (SHARED47150) Processing a Secure PDF as passthrough through CreatePDF will retain the Security options.

    • PAGE 1318

      Known Issues Issues with Microsoft Edge browser The Microsoft Edge browser fails to display web pages when the Workflow's CORS option (in the HTTP Server Input 2 section) is set to "*". This issue will be resolved in a future release.

    • PAGE 1319

      MySQL Compatibility After installing Connect 1.7.1 a downgrade to a Connect version earlier than Connect 1.3 or to a MySQL version earlier than 5.6.25 is not seamlessly possible. This is because the database model used in Connect 1.3 and later (MySQL 5.6) is different to that used in earlier versions. If you need to switch to an older version of Connect / MySQL, it is first necessary to remove the Connect MySQL Database folder from "%ProgramData%\Connect\MySQL\data" before installing the older version.

    • PAGE 1320

      do not want to have a copy of the file saved with the template you need to do the following: 1. The resource must be located where it can be accessed by all Servers/Slaves run as users. Failure to do this will cause the image to appear as a Red X in the output for all documents which were merged by engines which could not access the file. The job will terminate normally and the error will be logged. 2. The file must be referenced via a UNC path e.g.

    • PAGE 1321

      Online Help Links Point to Introductory Page Context sensitivity for the online help is not yet enabled in Connect. All links and F1 calls point to the introductory page, where you can Search on keywords to bring up Help pages relating to the topic. Context sensitivity will be introduced in a subsequent release of Connect.

    • PAGE 1322

      model. Fields of other types will not be updated in the database and no error will be raised. This will be fixed in a later release. Print Limitations when the Output Server is located on a different machine The following limitation may occur when using the Print options from a Designer located on a different machine to the Output Server: l l l The file path for the prompt and directory output modes is evaluated on both the client AND server side.

    • PAGE 1323

      l Note that both PlanetPress and PlanetPress Connect Workflow come with a 30 day trial licenses by default. Updating from PlanetPress Connect 1.1 In order to upgrade from Connect Version 1.1 to Version 1.6.1 via the Update Manager it is necessary to install a new version of the Objectif Lune Update Client. The next time you run your current Update Client it will show that there is an update available for itself.

    • PAGE 1324

      Reduced Memory Version Note This is not recommended for production. It is now possible to install PlanetPress Connect on a machine with a minimum of 2 GB of RAM. The PlanetPress Connect Designer will automatically detect whether it has been installed on a machine with less than 4 GB of RAM and default to only using one internal Weaver and one internal merge engine on that system. The Server will also run using internal engines.

    • PAGE 1325

      OL Connect Send OL Connect Send is an application of two components. The first is a Windows printer driver and the second is a set of Workflow plug-ins. In its most basic form, OL Connect Send allows the transmission of print files over the Internet from any Windows Desktop application. OL Connect Send flavors OL Connect Send comes in three flavors. These are: l l l Free of charge: No license required; any user; any domain; no usage limits; no web interaction.

    • PAGE 1326

      l Supply Chain: Inbound document processing, such as capturing inbound invoices or POs for publication in an ECM. Print to EDI for outbound documents such as invoices. For further information on Connect Send, please refer to the OL Connect Send website and standalone User Guide.

    • PAGE 1327

      Connect 1.6.1 General Enhancements and Fixes Performance improvements l Changes to the handling of transparency in PDF backgrounds has not only cured some job failures, but has also led to substantial improvements to both output speeds and filesizes. (49680) l Improved processing speed for multiple large detail table documents. (47252/48537) l Improvements made to the clean-up processes, improving overall production speed. l Some memory leaks plugged, improving overall production speed.

    • PAGE 1328

      Connect 1.6.1 Designer Enhancements and Fixes General Designer improvements l Interface improvements such as inclusion of icons for different types of files (js and CSS). l Provided option to configure the script timeout period. (48639) l Minor issues with non-English language translations fixed. l l l l l l Display issues that were sometimes encountered when changing section background images have been fixed.

    • PAGE 1329

      Connect 1.6.1 DataMapping Enhancements and Fixes l Support for Regular Expressions added to database searches. (51694) l Improved Datamapping process reliability. l Improved data record reliability when handling large jobs (those in excess of 50,000 records). l Improved PDF extraction avoids character duplication. l Improved marking of data fields in extraction steps. l l l l l New option added to support multibyte (variable length) encoded data such as Big5, GBK, UTF-8 and Shift-JIS.

    • PAGE 1330

      Email Output l l l Fixed issue with the email Subject field not being encoded properly when using characters other than Latin characters. (48781) To improve privacy certain Meta tags that were embedded in the output email HTML have been removed. These include "email-reply-to", "email-from", "sender-name" and "sender-address". (49864) The Date field was not always included in the email header. This has been fixed and the Date field should now be present in all email headers.

    • PAGE 1331

      Connect Workflow 8.6 Enhancements and Fixes General improvements l l l l l l l l A multitude of changes and enhancements made to support new OL Connect Send functionality within Workflow. Support for password protection added to "Create PDF" task. (48380) Generic Data Repository field length extended beyond previous limit of 32 characters. (47734) Added new "Create PDF Preview" task for lightning fast creation of single record PDF. (49497) Minor issues with some language translations fixed.

    • PAGE 1332

      l l Fixed potential out-of-memory error with very large Workflow configuration files. (51621) Fixed crashes encountered when large numbers of data selection calls were issued in highly threaded processes. (50569) HTTP and SMTP Server improvements l Support added for cross-origin HTTP (CORS HTTP) requests, to facilitate the development and testing of web templates. (47014) l Added option to specify SMTP port number in "Create Email Content" task.

    • PAGE 1333

      Known Issues Installing OL Connect Send on a machine with Connect installed. When OL Connect Send Plug-Ins are installed (either standalone or via a Workflow installation) on the same machine as Connect, an interference between OL Connect Send's internal Database and that of Connect may occur, which will block a browser popup on that same machine. This issue can be fixed by applying a startup wait to the Connect Server Service.

    • PAGE 1334

      1. Go to the .ini files for the Designer and Server Config: l l C:\Program Files\Objectif Lune\OL Connect\Connect Designer\Designer.ini C:\Program Files\Objectif Lune\OL Connect\Connect Server Configuration\ServerConfig.ini 2. Change the language parameter to the required one under Duser.language=en | es | de | fr | it | ja | pt | tw | zh Only one of the above language tags should be selected. Once saved, Connect will appear in the selected language at next start-up.

    • PAGE 1335

      To add additional printer models click on the settings entry box. button next to the Model selection Note that the descriptions of some of the printers were updated in version 1.2 meaning that if you had version 1.n installed, you may find that the same printer style appears twice in the list, but with slightly different descriptions.

    • PAGE 1336

      Using Capture After Installing Workflow 8 If PlanetPress Connect Workflow 8 is installed alongside PlanetPress Suite Workflow 7, Capture can no longer be used within Workflow 7. The plugins are now registered uniquely to Workflow 8 and the messenger for Workflow 7 is taken offline. It is only possible to use Capture from PlanetPress Connect Workflow 8 thereafter.

    • PAGE 1337

      Merge\Weaver Engines when Printing The print operation in the Designer will automatically detect whether the Merge\Weaver engines are available and display a message for the user to retry or cancel if not. Once the Merge\Weaver engine becomes available and the user presses retry the print operation will proceed as normal.

    • PAGE 1338

      l When printing via the Server from a remote Designer, the output file remains on the Server machine. This is remedied by selecting “Output Local” in the Output Creation configuration. Overview This document provides an overview of the new features and enhancements in PlanetPress Connect 1.5 and PlanetPress Workflow 8.5. Installing PlanetPress Connect 1.5 and PlanetPress Workflow 8.

    • PAGE 1339

      Print Only Version A Print Only license is available with version 1.5 of PlanetPress Connect which allows legacy PlanetPress Suite 7 customers on OL Care to upgrade to Connect for a minimal fee. The license allows regular printing via the Print Wizard but runs Email and Web output in demo mode. For more information, please contact your local OL Customer Care or Sales team.

    • PAGE 1340

      Simplified creation of templates based on existing PDFs l l l Option added to allow the creation of a new print document based on an existing PDF. (SHARED-19220) Improved support for adding PDF files as Section backgrounds. Files can now be referenced from disk or imported into Template. (SHARED-42496) Added support for drag and dropping Data Fields directly onto the page as absolutely positioned textboxes.

    • PAGE 1341

      l l Barcode improvements made in Preview mode. Support added for resizing and dragging of absolute positioned barcode objects, as well as resizing of inline barcode objects. (SHARED-43641) Barcodes can now have transparent backgrounds. (SHARED-43659) Scripting improvements l l l l l New closest() command added to the Scripting API, to locate closest matching element above it in the Document Object Model (DOM) tree. (SHARED-41789) Script editing improved.

    • PAGE 1342

      l l l l New scripting options have been added to the COTG.js library to register custom functions for save and restore. (SHARED-40670) Colour picker support has been added to the COTG Starter Template wizards. (SHARED-33561) Improved speed/size of COTG Camera objects. Rather than embedding images in output PDFs, Connect now supports embedding data URLs in COTG templates. (SHARED38575) Documents from the Library now automatically deleted upon successful submission.

    • PAGE 1343

      Connect 1.5 DataMapping Enhancements and Fixes l l l l l Multiple Conditions step can now evaluate several conditions and branch out accordingly. (SHARED-14329/44435) Performance improvements made when extracting text from PDFs and spool files. (SHARED-43056) Improved default formatting when extracting Date, Float or Currency data fields. (SHARED-43415) An extra field is now appended to every Document record and to every Detail table inside that record.

    • PAGE 1344

      l l l l l l l New HCF file added that supports “top down wrap around sequence marks”. (SHARED42326) Use PostScript Media name values in the PostScript DSC comments, to improve subsequent searches. (SHARED-42826) Option added to allow storing of job resources on PostScript printer’s own storage medium. (SHARED-43467) OMR marks improved, with support added for Match Numbers (Match Code, MC).

    • PAGE 1345

      Connect 1.5 General Enhancements and Fixes Installer improvements l l Improvements made to installation robustness. The installer now copes better when encountered permissions issues during installation. (SHARED-43732/43737) The Update Client has been updated to 1.1.9 and has been included in both the Connect 1.5 and Workflow 8.5 installations.

    • PAGE 1346

      Connect 8.5 Workflow Enhancements and Fixes l l l l l l l l l l Support for PHP-like arrays for COTG or web-based form submissions. (SHARED-41706) New Workflow system variable (%r) added to allow a process to determine which if it is currently running in service or debug mode. (SHARED-43411) Create Output and the Connect All In One tasks can now be added as Output tasks without waiting for the operation's result. (SHARED-43413) The Folder Capture task can now monitor multiple folders.

    • PAGE 1347

      Known Issues Installation Paths with Multi-Byte Characters When installing the Chinese (Traditional or Simplified) or Japanese versions of Connect, if the user specifies an alternative installation path containing multi-byte/wide-char characters it can break some of the links to the Connect-related shortcuts in the Start Menu and cause an error to appear at the end of the installer. The workaround for the moment is to use the default installation path. The problem will be addressed in a later release.

    • PAGE 1348

      model used in Connect 1.3 and later (MySQL 5.6) is different to that used in earlier versions. If you need to switch to an older version of Connect / MySQL, it is first necessary to remove the Connect MySQL Database folder from "%ProgramData%\Connect\MySQL\data" before installing the older version. PostScript Print Presets The print presets for PostScript were changed from Version 1.1 onwards meaning that some presets created in Version 1.0 or 1.0.1 may no longer work.

    • PAGE 1349

      documents which were merged by engines which could not access the file. The job will terminate normally and the error will be logged. 2. The file must be referenced via a UNC path e.g., file:////w2k8r2envan/z%20images/Picture/Supported/JPG/AB004763.jpg l l UNC paths are required because the services will be unable to access mapped network drives (Windows security feature).

    • PAGE 1350

      Context sensitivity will be introduced in a subsequent release of Connect.

    • PAGE 1351

      VIPP Output Some templates set up with landscape orientation are being produced as portrait in VIPP. It can also sometimes be the case that text and images can be slightly displaced. These are known issues and will be addressed in a later release of Connect.

    • PAGE 1352

      the download button in the dialog to install the new version of the Update Client. Note that it is no problem to run the update while the Client is open. It will automatically update itself. Once you have done this, PlanetPress Connect 1.4.n will become available for download. From Connect Version 1.2.0 onwards, the newer version of the Update Client was included with the Connect installation. Print Only Version A Print Only license is available with version 1.4.

    • PAGE 1353

      Connect 1.4.2 Enhancements and Fixes Designer l l A blank page is no longer added to beginning of templates that use scripting to add pages from PDF files. This problem only appeared when saving to a new file from within Preview mode, or when generating output from Preview mode. (SHARED-44564) Image elements () referencing a PDF image would multiply when switching back and forth between Live and Preview modes, in both email and web contexts. This has now been fixed.

    • PAGE 1354

      The language can be selected during the installation of Connect or via the Language Setting options in the Preferences dialog (note that Connect needs to be restarted in order to apply the selected language). At present only the Connect user interface has been translated. Error messages and warnings will be translated for a later release.

    • PAGE 1355

      Welcome Screen Extended l l The Printer Definition Configs and HCF files available on the OL Connect website are now grouped by manufacturer, to simplify selection. Connect 1.4.1 also introduces Responsive Email Templates. Virtualisation l Connect is now supported on the Microsoft Hyper-V and Hyper-V/Azure environments as well as the VMWare Workstation, Server, Player and ESX infrastructure environments. Modifying Connect Installations l Connect 1.4.

    • PAGE 1356

      Email Context l Email context sections can be enabled or disabled based upon data value. (SHARED33656) l Email port number can now be specified as part of the host name. (SHARED-38008) l New template wizard for Slate templates by Litmus. (SHARED-36843) Print Context l l Ability added to mirror margins on back pages of Duplex jobs, via Facing Pages selection added in Sheet Configuration dialog. (SHARED-40505) Can now suppress Master Page on duplex back pages, if there are no contents.

    • PAGE 1357

      l l l Option to generate JSON string from data model fields to pass data record information to client side script. (SHARED-39337) CSS Class name completion suggests CSS classes based upon the current section. (SHARED-36870) CSS Style inspector allows full control over styles. (SHARED-22929) Connect 1.4.1 DataMapping Enhancements and Fixes l l l All fields can now be renamed through the Data Model view. (SHARED-40116) SQL Server data mapping can now use Windows Authentication credentials.

    • PAGE 1358

      Connect 8.4.1 Workflow Enhancements and Fixes l l l l l Major performance improvements when updating data records. (SHARED-38897) Stand-alone Update Data Record task allows data records to be updated in the database without having to create content. (SHARED-38867) Update Records operations performed in batches, allowing for unlimited number of records. (SHARED-38948) All-In-One task can now return the output file to the Workflow, to allow customising output destination(s).

    • PAGE 1359

      Only one of the above language tags should be selected. Once saved, Connect will appear in the selected language at next start-up. GoDaddy Certificates When installing Connect offline, dialogs allow installing the GoDaddy certificates. Most users should use the default settings and click Next. In some cases, however, this may not work correctly.

    • PAGE 1360

      Note that the descriptions of some of the printers were updated in version 1.2 meaning that if you had version 1.n installed, you may find that the same printer style appears twice in the list, but with slightly different descriptions. For example the following printer types are actually identical: l Generic PS LEVEL2 (DSC compliant) l Generic PS LEVEL2 (DSC) External Resources in Connect There are certain limitations on how external resources can be used in Connect.

    • PAGE 1361

      Capturing Spool Files After Installing Workflow 8 If PlanetPress Connect Workflow 8 is installed alongside PlanetPress Suite Workflow 7, the PlanetPress Suite 7 option to capture spool files from printer queues will no longer function. The solution is to use PlanetPress Connect Workflow 8 to capture spool files from printer queues. Colour Model in Stylesheets The colour model of colours defined in a stylesheet can sometimes change after editing the stylesheet.

    • PAGE 1362

      l If the server is offline and you are not using Proof Print l On some occasions before the Print Wizard opens REST Calls for Remote Services The Server will now accept REST calls for all remote services and will make commands wait indefinitely until the required engines become available. The Server will log when it is waiting for an engine and when it becomes available. Note that there is no way to cancel any commands other than stopping the Server.

    • PAGE 1363

      Legal Notices and Acknowledgements PlanetPress Connect, Copyright © 2017, Objectif Lune Inc.. All rights reserved. The license agreements for the associated open source third party components can be found in the following installation folder: C:\Program Files\Objectif Lune\OL Connect\Legal Notices This application uses the following third party components: l l l l l l Adobe PDF Library which is either a registered trademark or trademark of Adobe Systems Incorporated in the United States and\or other c

    • PAGE 1364

      l l l l l l l l l l l l J2V8 which is distributed under the terms of the Eclipse Public License Version 1.0. The source code for J2V8 can be obtained from the following location: https://github.com/eclipsesource/j2v8 Jacob Java Com Bridge which is licensed under the terms of the GNU Lesser General Public License Version 2. The source code for this can be obtained from the following location: http://sourceforge.

    • PAGE 1365

      l l l l l l l l l l l Rhino 1.7R4 and 1.7.7.1 which are licensed under the terms of the Mozilla License Version 2.0. The source code for these can be obtained from the following location: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino/Download_Rhino Saxon which is distributed under the terms of the Mozilla Public License Version 2.0. The source code for this can be obtained from the following location: http://sourceforge.net/projects/saxon/files/Saxon-HE/9.

    • PAGE 1366

      Apache Software License Components This application also uses the following components which are distributed under the terms of the Apache Software License Version 2.

    • PAGE 1367

      l Objenesis l OpenCSV l OPS4J Pax Web l org.json.simple l Quartz Scheduler l ​Spring Dynamic Modules l ​UCanAccess Eclipse Technology: This Software includes unmodified Eclipse redistributables, which are available at www.eclipse.org. The Eclipse redistributables are distributed under the terms of the Eclipse Public License - v 1.0 that can be found at https://www.eclipse.org/legal/epl-v10.html.

    • PAGE 1368

      Copyright Information Copyright © 1994-2018 Objectif Lune Inc. All Rights Reserved. No part of this publication may be reproduced, transmitted, transcribed, stored in a retrieval system, or translated into any other language or computer language in whole or in part, in any form or by any means, whether it be electronic, mechanical, magnetic, optical, manual or otherwise, without prior written consent of Objectif Lune Inc. Objectif Lune Inc.