Previous icon

Next icon

Creating new report definition screens

After you create a new report or modify an existing report and save it with a new name, you may need to build a new report definition screen.

For this exercise, a staff contact list report has been created (STFCL) and saved in the site folder. This Crystal Report is based on a number of base tables and so the named report definition screen vStaff (which would have been ideal had the report been built from the view vStaff) cannot be used. The following shows how to build a new report definition screen from scratch.

  1. Add the new report to the Report Selector screen by clicking on the Insert button button.
  2. Enter the correct details for the Report Code (STFCL), Module (REP), View (blank), Description (Staff Contact List) and the Resource Type (Site).
  3. Click Save button.
  4. Highlight the new report in the Report Selector grid and click the Load Source button.

    No report definition screen exists for this report yet.

  5. Add an Optional Selections group box to the form as the first control object to contain the remaining selection fields. Refer to the screen capture below for assistance.

    User Form Designer (cut down, optional selections group box)

  6. Next insert the following staff database fields into the Optional Selections group box:
  7. Highlight the GroupBox entry in the User Form Designer grid.
  8. Click Insert after button to create a new entry for Surname.
  9. Enter the values for Control & Property Definition and Editable Objects and SQL Syntax as shown in the screen capture below.

    User Form Designer (cut down)

  10. Click Save button.
  11. Highlight the Surname entry in the User Form Designer grid and click Insert after button to create a new entry for Preferred.
  12. Enter the values for Control & Property Definition and Editable Objects and SQL Syntax as shown in the screen capture below.

    User Form Designer (cut down)

  13. Click Save button.
  14. Highlight the Preferred entry in the User Form Designer grid and click Insert after button to create a new entry for Staff ID.
  15. Enter the values for Control & Property Definition and Editable Objects and SQL Syntax as shown in the screen capture below.

    User Form Designer (cut down)

  16. Click Save button.
  17. Highlight the Staff ID entry in the User Form Designer grid and click Insert after button to create a new entry for Staff Code.
  18. Enter the values for Control & Property Definition and Editable Objects and SQL Syntax as shown in the screen capture below.

    Note: We are using the luSQL field to write a SQL Server query to populate a wwDbLookupCombo.

    User Form Designer (cut down, staff code)

  19. Click Save button.

    The Additional Properties field has also been used to change the default properties of this control.

  20. Highlight the Staff Code entry in the User Form Designer grid and click Insert after button to create a new entry for Staff Year Level.
  21. Enter the values for Control & Property Definition and Editable Objects and SQL Syntax as shown in the screen capture below.

    Note: We are using the luSQL field to write a SQL Server query to select only three columns from the luYearLevel table to appear in the wwDbLookupCombo control.

    User Form Designer (cut down)

  22. Click Save button.
  23. Click Test to inspect the newly created report definition screen.

Last modified: 23/09/2014 3:45:32 PM

See Also

Incorporating Crystal Reports into Synergetic

Modifying existing Crystal Reports

Creating new Crystal Reports

Modifying existing report definition screens

Changing label sizes and margins

Printing labels to a dot matrix printer

Recommended programs and texts for learning Crystal Reports

© 2015 Synergetic Management Systems. Published 6 May 2015.

Top of page