Skip to main content

Add a chart

Add a chart to a document, such as the totals of the invoice items by material. The chart uses the data of the report. The example uses the Invoice document type.

Before you begin​

  • Open the designer from a saved invoice, on a template you may change. See Design an advanced report.
  • A chart takes its data from the data source of the report. The report has only its own data source, so there is no other source to choose. See What alameen does not allow in the designer.
  • Decide the two fields: one for the categories (the argument), one for the numbers (the value). For example Material_Name and Total_ic, both from the "Bill Items" table.

Steps​

  1. Add a chart control to the Report Footer band and draw it large enough to read.

  2. Right-click the chart and choose Run Designer..., or select it and click Run Designer on the Chart Tools tab. The Chart Designer window opens.

  3. Open its Data tab. Drag Material_Name from the field list of the window to Argument.

  4. Drag Total_ic to Value. To draw one line or bar per group of values, drag a field to Series.

  5. Choose the kind of chart on the Chart Tools tab, such as bars or pie.

  6. Close the Chart Designer window. Click the Preview tab to check the chart, then click Save.

Result​

The footer of each invoice shows the chart of its items: one bar for each material, with the value of its Total_ic. The chart is drawn from the saved invoice at each print.

If something goes wrong​

SituationWhy it happensWhat to do
The chart is empty.The fields are not on Argument and Value.Open Run Designer again and drag the fields.
One bar for every line of the same material.The items repeat the material, and the chart does not add them up.Group the report by material, or use a summary in the argument.
The chart cannot use data from another source.The report has only its own data source.Use the fields of the report only.

This page applies to alameen ERP 10, version 10.1.79.764.