Step 5 - Set Class for Numeric Fields
Last updated
Was this helpful?
Last updated
Was this helpful?
Tutorial 1 for Pro Version: Aggregate and Visualize Your Data
Note: If you are using SQL, skip this step. Do not change the class of your fields. With SQL, Jasper will automatically set the appropriate class for each field.
When you're importing data from a custom report, by default, all fields are read as text fields. You’ll need to tell JasperSoft Studio which fields are numeric by adjusting the “Class” setting.
Click the Outline Tab
Expand the “Fields” section in your Outline
Select all your Integer fields
Use control-click or command-click to select multiple fields at once
Do not change the Student ID
field
Next,
Locate the Properties Tab
In the Properties tab, set the appropriate “Class” of your numeric fields.
Set Class for any Integer fields to java.lang.Integer
Repeat the process if you have any decimal numbers in your data.
Set Class for any Decimal fields to java.lang.Double.
Class field is case sensitive.