Skip to main content

Report Designer - Knowledgebase / SalesPad / Reporting - Cavallo Technical Support

Report Designer

Authors list
Overview

Reports can be accessed from the sales document header Print function, viewed from the Report Manager, and edited in the Report Designer (Modules > Report Manager (under System)> (select a report) > Design).

Note: In SalesPad Versions 4.1 and later, users should be able to save as usual with no issue.

For Versions prior to 4.1: Due to an issue beyond SalesPad’s control (Report Designer is a Dev Express feature, not created by SalesPad), the Save button in the Report Designer may not always save your changes. To prevent losing reports and changes when closing a report, we recommend that instead of using the Save button, you always click the X in the top right corner of the Report Designer and click Yes when prompted to save:

When copying a report, you must make a change in order to be prompted to save. In this case, the simplest way is to move something by clicking on an element, clicking the right arrow, then clicking the left arrow to move it back. Then you can close the Report Designer and you will be prompted to save.

To view documentation on DevExpress's Report Designer, click here.

Security

Print Report and Report Manager must be enabled in the Security Editor (Modules > Security Editor) to allow each function.

Under the Print Report security setting, Admin Mode should be set to True to enable report editing. To access a report from the Print dialog, you must first add the name of the report to the proper sub- setting (Invoice, Order, Quote, or Return). All other existing reports will be hidden. A blank field gives access to all reports for that document type. Unless the field is left blank, new reports and copies of reports edited in the Report Manager will not be visible until you add access in the Security Editor.

Use

Original reports cannot be edited in SalesPad. To make any changes, such as adding a company logo to customize a report, you must first make a copy:

  1. On a sales document header, click Print. The "Print Sales Document Report" window appears

  2. Select the report to be copied
  3. Click Report Properties…. The "Report Properties" window appears
  4. Click Copy. The following message appears
  5. Click OK. Rename the report and click OK.
  6. When prompted to save changes, click Yes

These steps will create a default report with the same name and type as the one that is copied, but will not transfer over any changes that were made to it. In other words, the result will be an out-of-the-box, default report. To pull in changes and customizations from the original report that was copied, you must save the original to a .repx file and load it into the copy:

  1. Select the original report from the Print dialog
  2. Click Properties
  3. Click Design. The Report Designer opens
  4. Go to File > Save Asand enter a file name
  5. Click OK and close the Report Designer
  6. Repeat steps 1 through 3, selecting the new copy instead of the original
  7. Go to File > Open and open the .repx file. This will load the changes
  8. Save the copied report (if you are using a version prior to 4.1, see Note section on page one)
Report Designer Controls
  • Controls can be resized via resize handles
  • Controls can be moved via the handle at the top left corner or with the arrow keys
  • Holding the Control key while moving will move the control in precision mode
  • Controls have a task menu accessible via a small arrow on the top right corner
  • Controls' properties can be set via the Property Grid in the lower right-hand corner of the screen
LABELS

Labels are the simplest controls, holding either text or a bound data field. Various options about the text can be set via the task menu.

TABLES

Tables consist of rows and columns, with text or bound data fields stored in cells. Cells belong primarily to rows, while columns exist solely to allow resizing cells that are stacked on top of one another. While tables share the same resizing and moving mechanics of labels, cells can only be resized horizontally— only rows and columns can be resized in all directions. Data bindings are set at the cell level.

Figure 1 - Table: Notice the resize handles to allow resizing the entire table. Notice that the cells have data bindings as shown by the text in [Brackets] and the yellow cylinder icon

Figure 2 - Cell: Notice the resize handles that allow the cell to be resized horizontally.
Also notice the which opens the Task Menu, or the ƒ to access the Expression Editor.

To ensure all cells are the exact same width and that they line up properly with their labels, select the row and the properties pane on the right-hand side of the window to display the width of the entire row. Divide it by the number of cells in the row and select each one individually, setting the width to the correct value.

IMAGES

Images are added in a Picture Box. This box is very similar to a label, except that the task menu contains an Image field that can be loaded with an image. Images can be added from a local or network path using the Image field, or from a website URL by using the Image URL field. The Image Sizing field allows the image scaling and aspect ratio to be set.

Note: Images are embedded in the report file so that a user on another machine can work with the report and see the image without loading it to a local file location. No file copying is required.

You can also design a report to pull an item’s designated image. Refer to: Printing Item Images onReports in SalesPad’s knowledge base.

BAR CODES

Bar codes are similar to labels, except that the bound data field set via the task menu is encoded into a barcode in the chosen symbology. This symbology can be chosen via the Property Grid. Other options include the Module which can be adjusted via the task menu, which dictates the size of the bar code.

Drag and drop a Barcode control onto a Report to configure the barcode properties.bFFFqb3O5Vn04CAsFqUCdM43PGwxWaVh.png?access_token=snclrr-wujnvawupt-746525809b494d281c8fb95805ff25ef7a38345f

Note: Some barcode formats will add what’s called a checksum to the end of the standard text in the barcode, causing the barcode to print with an extra character. To turn this off, go to the Properties grid for the barcode, find Symbology and set Calculate a Checksum to No.

Note: For barcodes, SalesPad recommends using Code 128 as the barcode type – the symbology is cleaner and it is one of the most popular in the US. It also doesn't have a check digit for security to configure or disable.

Using Report Designer
  1. On the Print Sales Document Report window, select the report to be designed and click Properties (or go to Modules > Report Manager, select a report, click Design and skip step 2)
  2. On the Report Properties window, click Design
  3. The "Report Designer" window will open. Make design edits here:
  4. Once the edits are complete, if using version 4.1 or newer, click Save and then close. If using a version older than 4.1, click the X to close the Report Designer window. If changes were made, a prompt will appear asking if you want to save. Click Yes. (Refer to the note about versions prior to version 4.1)
  5. On the Report Properties window, click OK
  6. When prompted to save changes, click Yes
ADDING A DATE TO A REPORT

Add a Page Info field from the Standard Controls palette in the Tool Box on the left-hand side of the Report Designer. Once added, use the properties handle (>) to select the date/time option and a format.
Uw2qtaiJHaKWAUYUOqyuYHeCHJqrMbeR.png?access_token=snclro-fctfgscxrx-5baf9c3a73aedc48c8215065d8e60bd40f26dede

RESPECTING LINE BREAKS

Line breaks added in the Report Designer will not necessarily print. To respect line breaks in a field (for example, an address field):

  1. Click on the field
  2. Click the () arrow to open the Tasks menu
  3. Make sure Multiline is checked

SORTING PRINT REPORT LINE ITEMS

Sorting Line Items by Sales Document Sequence

In sales documents, it is possible to insert new sales lines above those already existing, and the sequence will be maintained. But the line order won't necessarily be honored when printing (lines will print in the order they were added), unless the sorting is manually specified in the Report Designer:

  1. Open the Report Designer (Modules > Report Manager > (select a report) > Design) for an applicable report
  2. Click on the Detail1 band, and then on the to bring up the Tasks dropdown menu
  3. Click the ellipsis () button next to Sort Fields. The "Group Field Collection Editor" window will appear
  4. Click Add to add a GroupField
  5. Click on the Field Name in the GroupField properties and click the down arrow to display the dropdown
  6. Select Component_Seq_Num from the list

This will cause the line items to sort in the order that they display on the sales entry screen. Other sort orders can be defined, such as sorting by kit items, by choosing to bind to a different field.

Grouping line items by warehouse in the picking ticket report
  1. Open your picking ticket in the Report Designer (Modules > Report Manager > (select picking ticket) > Report Designer
  2. Right-click on the band for your detail section and select Insert Band and then GroupHeader
  3. Find Warehouse_Code under SalesLineItems in the Field List and drag it into the header
    Report Designer - Adding a Sales Line Grouping by Warehouse
  4. Save and close Report Designer to return to Report Manager (see Note section on page 1).
    Line items in the picking ticket will group by warehouse code.
    Sales Line Items from Different WarehousesPrinted Pick Ticket Displaying Sales Lines Grouped by Warehouse
ADDING CALCULATED FIELDS

Calculated fields are used to show computed totals on reports. One example is a report that calculates and displays regular price and discount price:

  1. In the Report Designer, go to the Field List
  2. Expand the SalesDocument list by clicking the ►
  3. Right-click on SalesDocument and select Add Calculated Field
  4. calculatedField1 will be added to the Field List.
    Right-click it and select Edit Calculated Fields...

    The CalculatedField Collection Editor screen appears:
    2VCTAXqlS7e7XM9X15YGkjTQWem9i9Zv.png?access_token=snclrt-gfxnqwksnm-dd768c650af3a4138f203d574088e263b6bb714b
  5. On the right side, under Design, click calculatedField1 next to “(Name)” and change the name of the field (ex: cOriginal Price).
    rXNoGfjpn2xpYirCccVJG56YR49efZHm.png?access_token=snclrw-ahvbjrwigx-3338ee78f2f73e294d135768934c6993ed01b975
  6. Click the field next to Expression and click the appearing ellipsis () button. The Expression Editor appears, where the calculations for the field are created
  7. Enter the desired expression. To calculate the Regular Price/Discount price:
    1. Click Fields in the left column
    2. Double-click [Totals] in the middle column
    3. Click the + button
    4. Select Parameters
    5. Double-click [Discount]
  8. Click OK on both open screens to return to the Designer
  9. Click on the table cell you are editing (Regular Price in the example), then click the to open the Tasks menu
  10. Click the down arrow next to Data Binding, click the + to expand Sales Documents and select the renamed calculated field (ex. cOriginal Price)
  11. Click the ellipsis () next to Format String.
    bj4gepbWQo0EOl7GluzWmXfaRnxZo4sw.png?access_token=snclru-futzspbltl-2bac554b18f5f04d1bc10450c4c0e5d10f54a218The FormatString Editor appears
    ob3OohGERu3GJSTyVSO4DARaQMFm6JC7.png?access_token=snclrt-wcpoapcnba-604b26a25b26a430495afe44d7d176cac269d4f1
  12. Select Currency from the left column, and $0.00 from the Standard Types tab
  13. Click OK

Now, if you click Preview in the Report Designer, the regular price will be calculated, along with the discounted price:0kqgh5L0DbfePOyZr7noqxbaQiXD3z9t.png?access_token=snclrw-znjhaaebvz-1ab84e9890d61832a632903fb9e948f2664867df

If you are already in the Report Designer, you can preview your changes by clicking Preview.

To preview a report from outside the Report Designer:

  1. Go to Modules > Report Manager
  2. Towards the top of the Report Preview pane you will find the Sample Doc field.
    Select a document:
  3. Click Preview. A new window will appear, displaying the report as it will print for the chosen document
Helpful Unhelpful