Jump to content
We've recently updated our Privacy Statement, available here ×
  • Remove default value ('---'/'~NOTHING~') value from Single select list of values


    sthomas_3
    • Version: v6.4 Product: JasperReports® Server

    Issue:

    How to remove default value ('---'/'~NOTHING~') value from Single select list of values.


    Resolution:

    This is not configurable and  needs customization.

    Will need to modify TIBCO JasperReports® Server source code to make the change.

    The affected Java class is com/jaspersoft/jasperserver/war/cascade/handlers/InputControlHandler.java

    /**
    * Label substitution for empty selection in multiselect controls and for empty value in single-value controls
    * which sent from or to UI. 
    * @see {@link BasicInputControlHandler#fillStateValue}
    */
    
    public static final String NOTHING_SUBSTITUTION_LABEL = "---";

    Additionally need to do the change in SingleSelectListInputControlHandler.class.

    Need to recompile the class and package it again.


    User Feedback

    Recommended Comments

    There are no comments to display.



    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...