Skip to content
  • There are no suggestions because the search field is empty.

How to Add a Dynamic Percent Fee to a Page Header

You can customize standard DESTINI Cloud Estimator reports to display selected percent fees in the Page Header. For example, you can add fees such as Sales Tax, Labor Burden, and other cost adjustments so they appear in the Page Header each time the report is generated. This provides a consistent, at-a-glance summary of key fees on every report. 
Percentage fees displayed in Page Header

This article describes how to add dynamic placeholder parameters so you can easily change which fees display in the Page Header when you print the report. This process is useful, for example, if reports for internal leaders need to include different fees in the Page Header versus reports for external customers or clients. 

Add a New Parameter

Use the following procedure to create a parameter to dynamically select a Fee from the current estimate.

  1. Open an estimate in DESTINI Cloud Estimator.
  2. Navigate to Home> New Report. Report Designer opens.
  3. Click File> Open.
  4. Navigate to the folder with the report template file (.repx) you want to modify.
  5. Click the .repx file to open it.
  6. On the right side of your screen, click the Field List tab at the bottom of Report Explorer.
    Selecting the Field List tab
  7. Scroll to the bottom of the Field List tab. 
  8. Right-click Parameters and select Edit Parameters.
  9. On the left side of the Parameters window, click Executive Summary.
  10. Click the Add Parameter button on the top left side of the window.
    Selecting the option to add a new parameter
  11. With the new parameter selected, enter the following information and click OK. For any setting not specified here, leave the default configuration:
    1. Name: PageHeader_Fee1_Parameter
    2. Description: Page Header Fee 1
    3. Type: String
    4. DefaultValue: Sales Tax (or any percentage fee name inside your fee table)
    5. Allow null value: Checked
    6. Value Source: Dynamic List
    7. Data Source: Fees
    8. Value Member: Name
    9. Display Member: Name
    10. Filter String:
      [Enabled] = 'Yes' And Not [Type] In (##ToString#LumpSum#, ##ToString#Subtotal#, ##ToString#RunningTotal#) And [IsDistributed] = 'No'
    11. Sort Member: Name
    12. Sort Order: Ascending
Properties of the new parameter

Verify that Allow multiple values is unchecked. If it is enabled, this workflow doesn't work correctly.

If you are working through this procedure a second time to add additional fees to the Page Header, then change the following values from Fee1 to Fee2, as shown:

Name: PageHeader_Fee2_Parameter
Description: Page Header Fee 2

Add a Calculated Field

Use the following procedure to create a calculated field that prints the fee's percentage value.

  1. On the right side of your screen, verify that the Field List tab is selected.
  2. Scroll up to _DESTINICloudReportsDataSource at the top of the hierarchy.
  3. Right-click any node underneath _DESTINICloudReportsDataSource and select Edit Calculated Fields. The Calculated Field Collection Editor opens.
  4. Click the Add button.
  5. With the new calculated field selected, enter the following information and click OK. For any setting not specified here, leave the default configuration:
    1. DataMember: Fees
    2. Expression:
      [][[Name] == ?PageHeader_Fee1_Parameter].Single([Amount])
    3. FieldType: Decimal
    4. (Name): PageHeader_Fee1

Adding a new calculated field

If you are working through this procedure a second time to add an additional fee to the Page Header, then change the following values from Fee1 to Fee2, as shown:

Expression:
[][[Name] == ?PageHeader_Fee2_Parameter].Single([Amount])

(Name): PageHeader_Fee2

Designer Changes

Use the following procedure to change the design of your PageHeader band so it accommodates the new parameter.

  1. In the Designsection in the middle of your screen, locate and select the PageHeader band. Drag the bottom edge downwards to create more vertical space.
    Expanding the Page Header to add fees
  2. In the Toolbox panel on the left side of your screen, drag and drop a Table control into your PageHeader band. The new table includes three cells.
    New table to display fees in Page Header
  3. Right-click the last cell on the right and select Delete > Cell.
  4. Select the left cell and click the Function button to the right. Expression Editor opens.
    The function button on the new fees table
  5. Paste the following expression and click OK:
    ?PageHeader_Fee1_Parameter + ':'

    Adding an expression to display the fee
    Note: If you are working through this procedure a second time to add an additional fee to the Page Header, then change the expression value from Fee1 to Fee2, as shown:
    Expression: ?PageHeader_Fee2_Parameter + ':'
  6. In the Designsection in the middle of your screen, select the right cell and click the Gear button to the right. The Table Cell Tasks dialog box opens.
    Displaying the Table Cell properties
  7. Click the ellipsis button (...) inside the Format String field. The Format String Editor opens.
  8. Click Percent and choose an option.
    Setting the cell properties for percent fees
  9. Click Ok.
  10. Inside the Expression field, click the ellipsis button (...). Expression Editor opens.
  11. Paste the following expression and click OK:
    [Fees].[PageHeader_Fee1]

    The expression for the cell
    Note: If you are working through this procedure a second time to add an additional fee to the Page Header, then change the expression value from Fee1 to Fee2, as shown:
    [Fees].[PageHeader_Fee2]

    The expanded table for the fees
  12. Save and run your report.

    To add additional dynamic parameters that display Fees in the Page Header, repeat the following sections:

      When you're ready to add more dynamic fees to the Page Header in the Designer, add additional rows to the table you created in the last procedure by right clicking the table and selecting Insert > Row Below.

      (Optional) Adjust the Formatting of the Printed Information

      Use the following procedure to adjust cell height and width to match the default formatting in the Page Header.

      1. Use the Ctrl key to multi-select the right cells of the table. Drag the left and right borders to adjust the table width.
        Selecting the right cells to adjust height
      2. On the right side of your screen, click the Report Explorer tab at the bottom of the Field List panel.
      3. In the Designer in the middle of your screen, click the left cell of the first row. Report Explorer automatically selects that table cell in the tree.
      4. Click the tableRow above it.
      5. In the Propertiespanel below Report Explorer on the right side of your screen, scroll down and select the Heightfield.
      6. Set Height = 16.
        Setting the new height
      7. Repeat Steps 3 - 6 for each new row you added.
      8. In the Designer in the middle of your screen, select the Page Header band and drag the bottom edge upwards to remove any vertical empty space.
      9. Save and run your report.
      10. To dynamically change which fees display in the report, expand Executive Summary in the Parameterspane on the left side of Report Viewer.
      11. Use the drop-down lists to choose new fees.
        Dynamically adjust which fees display
      12. Click Submitat the bottom of the Parameterspane.

      Related Articles