llcool_willyj Posted February 1, 2016 Share Posted February 1, 2016 Hello,is it possible to change the field type of a column while using a CSV Datasource? The type is by default String even if there are numbers in the File.Since I want to use those data for a chart, I get some java.lang.String cannot be cast to java.lang.Number exception when I try to create the report.Maybe there is a way to convert those data to numbers?ThanksWill Link to comment Share on other sites More sharing options...
hozawa Posted February 2, 2016 Share Posted February 2, 2016 Just open up Dataset and Query dialog and edit the datatype to be Integer instead of the default String.For your information, Dataset and Query dialog can be opened by selecting the second icon from the left in Jaspersoft Studio. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now