How to change Input Control default of [Null]

0

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: 11 months 3 weeks ago

Did you ever figure this out? 

khath - 2 years 3 months ago

3 Answers:

0

Hi,

[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">
    <defaultValueExpression><![CDATA[""]></defaultValueExpression>
</parameter>
afomin's picture
4
Joined: Oct 17 2012 - 4:18am
Last seen: 4 months 3 weeks ago
0

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
543
Joined: Mar 19 2007 - 4:15am
Last seen: 1 week 4 days ago
0

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: 9 months 2 weeks ago
Feedback