How to change Input Control default of [Null]

Jaspersoft Community 'Read-Only' as of July 8, 2022

Transition to New TIBCO Community Just Weeks Away

You can still search, review wiki content, and review discussions in read-only mode. Please email with questions or issues requiring TIBCO review or response.

Using a "Single Value" input control, with setting of Mandatory and Visible and a datatype of Text, and when used it always displays a default of "[Null]". Therefore when the control is used, the user always needs to delete the "[Null]" text and then enter a value.

Running version 5.2.0.  Our previous version 5.0.0 always (and preferrably) defaulted to an empty input control.


paroney's picture
Joined: Sep 4 2013 - 4:11pm
Last seen: 3 years 7 months ago

Did you ever figure this out? 

khath - 4 years 10 months ago

3 Answers:


[Null] is the default value, in order to change it, you may want to set another default value, e.g. empty string:

<parameter name="MyParameter" class="java.lang.String">
afomin's picture
Joined: Oct 17 2012 - 4:18am
Last seen: 2 years 2 months ago

To afomin - this solution prevents mandatory input control from working because emptry string ("") is considered a value. 

Is there any way to prevent [null] from displaying in input control?

ktalarico's picture
Joined: Mar 19 2007 - 4:15am
Last seen: 2 weeks 5 days ago

To ktalarico - Thank you for your response to this issue.  Can you please elaborate on how this would prevent mandatory input control from working?  I believe what you are saying is that is a user could get away with a running a report without inputting a mandatory parameter themselves, because technically the code has already given a value to the parameter.  Please let me know if this is what you mean.  Thanks!

Other than that this solution appears to work well, with the parameter being input by the user overwriting the empty string that was initialized.  Something to consider in the design would be an indicator to the user that the field is mandatory.  

carmines_zachary's picture
Joined: Jul 25 2018 - 8:58am
Last seen: 3 years 4 months ago