Jump to content
  • "Blank when null" feature at the report level


    shrije
    Assigned User teodord
    CategoryFeature request
    PriorityNormal
    ReproducibilityAlways
    ResolutionOpen
    SeverityMinor
    StatusAcknowledged

    Currently we have "blank when null" property at the field level. But this does not help at times when i wish to concatenate the field value to a string as in:

    "Test :" + ${field}

    So we need to have a property at the report level to convert the null to a zero length string or any other string of choice.



    User Feedback

    Recommended Comments

    Hi,

     

    I don't think it makes sense to have such setting at report level.

    Maybe you have other fields that you would not want to behave the same way.

    So a field level setting would make more sense.

     

    However, we are not going to make report field declaration more complex than it currently is, by adding new field properties which are not applicable to all types of fields (numeric for example).

     

    Instead, we are going to make this enhancement part of a list of functions that will be available in expressions. There will probably be a function called blankWhenNull($F{field}), that would help people replace nulls with empty strings without knowing the required Java or Groovy syntax.

     

    Thank you,

    Teodor

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