Create template for Print channel

Create and manage a template for the Print channel of Interactive Communication using the following tasks:

Create an XDP template by using Forms Designer

Based on the use case and anatomy, create the following subforms in the XDP template:

  • Bill Details: Includes a Document Fragment
  • Customer Details: Includes a Document Fragment
  • Bill Summary: Includes a Document Fragment
  • Summary: Includes a Document Fragment (Charges subform) and a chart (Charts subform)
  • Itemized Calls: Includes a table (layout fragment)
  • Pay Now: Includes an image
  • Value Added Services: Includes an image

create_print_template

These subforms are displayed as target areas in the Print template after uploading the XDP file to the Forms Server. All entities such as document fragments, charts, layout fragments, and images are added to target areas while creating the Interactive Communication.

To create an XDP template for the Print channel, do the following:

  1. Open the Forms Designer, select File > New > Use a blank form, select Next, and then select Finish to open the form for template creation.

    Ensure that the Object Library and Object options are selected from the Window menu.

  2. Drag-and-drop the Subform component from the Object Library to the form.

  3. Select the subform so you can see the options for the subform in the Object window in the right pane.

  4. Select the Subform tab and select Flowed from the Content drop-down list. To adjust the length, drag the left endpoint of the subform.

  5. In the Bindings tab:

    1. Specify BillDetails in the Name field.

    2. Select No data binding from the Data Binding drop-down list.

    Designer subform

  6. Similarly, select the root subform, select the Subform tab, and select Flowed from the Content drop-down list. In the Bindings tab:

    1. Specify TelecaBill in the Name field.

    2. Select No data binding from the Data Binding drop-down list.

    Subform for Print template

  7. Repeat steps 2 - 5 to create the following subforms:

    • BillDetails

    • CustomerDetails

    • BillSummary

    • Summary - Select the Subform tab and select Positioned from the Content drop-down list for this subform. Insert the following subforms in the Summary subform.

      • Charges
      • Charts
    • ItemisedCalls

    • PayNow

    • ValueAddedServices

    To save time, you can also copy and paste existing subforms to create additional subforms.

    To shift the Charts subform to the right of the Charges subform, select the Charts subform from the left pane, select the Layout tab, and specify a value for the AnchorX field. The value must be greater than the value for the Width field for the Charges subform. Select the Charges subform and select the Layout tab so you can view the value of the Width field.

  8. Drag-and-drop the Text object from the Object Library to the form and enter the Dial XXXX to subscribe text in the box.

  9. Right-click the text object in the left pane, select Rename Object, and enter the name of the text object as Subscribe.

    XDP template

  10. Select File > Save As to save the file on the local file system:

    1. Navigate to the location where you can save the file and specify the name as create_first_ic_print_template.

    2. Select .xdp from the Save as type drop-down list.

    3. Select Save.

Upload an XDP template to the AEM Forms Server

Once you have created an XDP template using the Forms Designer, you must upload it to the AEM Forms Server so that the template is available for use while creating the Interactive Communication.

  1. Select Forms > Forms & Documents.

  2. Select Create > File Upload.

    Navigate and select the create_first_ic_print_template template (XDP) and select Open to import the XDP template to the AEM Forms Server.

Create an XDP template for layout fragments

To create a layout fragment for the Print channel of the Interactive Communication, create an XDP using Forms Designer and upload it to the AEM Forms Server.

  1. Open the Forms Designer, select File > New > Use a blank form, select Next, and then select Finish to open the form for template creation.

    Ensure that the Object Library and Object options are selected from the Window menu.

  2. Drag-and-drop the Table component from the Object Library to the form.

  3. In the Insert Table dialog:

    1. Specify the number of columns as 5.
    2. Specify the number of body rows as 1.
    3. Select the Include Header Row in Table checkbox.
    4. Tab OK.
  4. Select + in the left pane next to Table 1 and right-click Cell1 and select Rename Object to Date.

    Similarly, rename Cell2, Cell3, Cell4, and Cell5 to Time, Number, Duration, and Charges respectively.

  5. Click the Header text fields in the Designer View and rename them to Time, Number, Duration, and Charges.

    Layout fragment

  6. Select Row 1 from the left pane and select Object > Binding > Repeat Row for Each Data Item.

    Repeat properties for layout fragment

  7. Drag-and-drop the Text Field component from the Object Library to the Designer View.

    Text field for layout fragment

    Similarly, drag-and-drop the Text Field component to the Time, Number, Duration, and Charges rows.

  8. Select File > Save As to save the file on the local file system:

    1. Navigate to the location where you can save the file and specify the name as table_lf.

    2. Select .xdp from the Save as type drop-down list.

    3. Select Save.

    Once you have created an XDP template for layout fragment using the Forms Designer, you must upload it to the AEM Forms Server so that the template is available for use while creating layout fragments.