Dividing Documents into Groups

A group is a space in a document reserved for a specific type of content, such as the introduction, body, or conclusion. Groups organize documents into smaller parts to help users find information.

Every group is provided with a sequence number to sort them within the document. Groups with a lower sequence number are positioned higher within the document.

You can include a group in a document only one time, or for every line item or configuration on the transaction. The group frequency determines the section types you can create within that group. Each group can contain multiple sections.

To include or exclude groups in a document, use rules with question and answer combinations from configured items. For more information about rules, see Activating Building Blocks with Rules.

When including a group for every line item, you can make a further selection at the section level to specify the line item type, such as configured or additional item line. For more information about sections, see Adding Content to Sections.

Regarding the look and feel of the group, you can define the page format, orientation, and margins. The group format has priority over the format defined for the template. If you do not specify a group format, the template format will apply.

On the group record, you can specify a transaction line field to group line items on the document depending on its value. For more information, see Grouping Line Items.

To create a group:

  1. On a saved template record, go to the Groups subtab.

  2. Click New CPQP Group.

  3. Provide a descriptive name for the group.

  4. In the Repeat field, define how many times you want to include the group in the final document:

    • Once – Includes the group one time only.

      For example, you can use this frequency for the document introduction or the terms and conditions.

    • Every Item – Includes the group for every line item on the transaction.

      The sections in this group can be repeated for every line item. You can also restrict the sections to configured or additional line items only. Define your preferences through the Run For field on the section record.

    • Every Config – Includes the group for every configuration in the transaction.

      This group type is useful when the transaction may include configurations with additional items only.

  5. Provide a sequence number to determine the order in which the group is included in the final document.

    Enter a negative or positive number—for example, -2 or 5.

  6. In the Group Items By field, enter the transaction line field ID to group line items on the document. For more information, see Grouping Line Items.

  7. In the Page Orientation field, define how you want to arrange the sections in this group:

    • Portrait – Defines a vertical orientation.

      This is the default option, and it works well for text sections.

    • Landscape – Defines a horizontal orientation.

      You can use this option for tables with multiple columns.

  8. To add the group at the beginning of the next page, check the Page Break box. This option adds a page break before the group.

  9. To avoid additional margins for the group, check the No Div Wrap box. This option prevents wrapping the group into a <div> element.

  10. In the Format field, select a predefined page format for this group.

  11. (Optional) Provide the top, right, bottom, and left margins. Enter the margin values in pixels.

  12. In the Show Rule field, provide the NetSuite CPQ Configurator question or answer that determines whether the group will be added to the final document.

    Enter question and answer codes separated by the forward slash character. For example, A/1. Use operators to combine multiple question and answer sets. For example, A/1&B/2. For more information, see Activating Building Blocks with Rules.

    To include a group in the final document, enter */* (the always true operator) in the following cases:

    • To always include a group in the final document.

    • To use the group for transactions without configured items.

    • To include a group that is repeated one time only in the document.

  13. Click Save.

Grouping Line Items

Note:

To group line items, the group must be repeated for every line item.

Documents list line items in the same order as they are arranged on the transaction. Alternatively, you can organize line items based on the values of a transaction line field. Grouping line items can improve the document structure and help users find information quickly.

You will obtain a grouping for each transaction line field value. If you leave blank the transaction line field for some line items, those items will be grouped together. The document group content will be repeated for every grouping. You can also add a group header and group footer that will be repeated one time for every grouping.

To group line items on the document, enter the field ID in the Group Items By field on the group record.

If you need to group the line items according to business-specific information, you can create a custom transaction line field. For more information, see Creating Custom Transaction Line Fields.

Related Topics

General Notices