jkeri Posted October 31, 2017 Share Posted October 31, 2017 i want to create an input control that shows a default value. The user can change the value if they wish. I am not sure how to set up the input control. I created TYPE: SINGLE VALUE and added the default value to the PATTERN. but it doesnt seem to work when the uses enters a value. Link to comment Share on other sites More sharing options...
mbarker62 Posted October 31, 2017 Share Posted October 31, 2017 Put the default value in the parameter of your JRXML file. Link to comment Share on other sites More sharing options...
jkeri Posted November 1, 2017 Author Share Posted November 1, 2017 this is the parameter in XML<parameter name="FROMMATERIAL" class="java.lang.String"/> <defaultValueExpression><![CDATA['XX']]></defaultValueExpression> </parameter> My default value to appear is 'XX' which the user can select or change the value. But Im getting an error:'Invalid content was found starting with element 'defaultValueExpression' Link to comment Share on other sites More sharing options...
mbarker62 Posted November 1, 2017 Share Posted November 1, 2017 Enter value with double quotes, like "XX" or new String("XX"). Link to comment Share on other sites More sharing options...
mbarker62 Posted November 1, 2017 Share Posted November 1, 2017 I had to verify this myself. 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