Jump to content
Changes to the Jaspersoft community edition download ×

Create input control with a default value


jkeri

Recommended Posts

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

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...