Previous page

Next page

Report Designer - GlobalFunctionGroupHeaderDescription

Summary

Click this function to display the function statement in the bottom-left section.

Edit the GlobalFunctionGroupHeaderDescription global function second. This function calculates the group description that is displayed on the headers and footers.

It states that if the global variable (which stores the user's selection) equals the table and field names used in this statement, then store the field name. This statement is repeated for all sorting option fields.

Procedure

The WorkArea field does not exist in this statement, so use the following procedure to add it.

  1. Highlight a section of the statement from "else if…" to the next "…end" as shown below.

    GlobalFunctionGroupHeaderDescription

  2. Press Ctrl+C to copy this section of the statement.
  3. Click after an end statement.
  4. Press Enter to create a new line.
  5. Press Ctrl+V to paste your new section into the statement.
  6. On the first line of the new section, replace the table and field names with the ones that you require. For example, replace 'DEPARTMENT.DEPARTMENTCODE' with 'WORKAREA.WORKAREACODE'.
  7. On the second line, add the actual field name in the format that you require. For example replace
    Result := plEmployee['Departmentcode'] + ', ' + plEmployee['Description (2)'];
    with
    Result := plEmployee['WorkAreaCode'] + ', ' + plEmployee['Description (6)'];
  8. Right-click the statement and select Compile to check that your statement is correct.

    Messages are displayed at the bottom of the window.

    Important: You must resolve all errors before you can continue.

Previous page

Next page