Abdellatif.chouikh Posted February 11, 2020 Share Posted February 11, 2020 Hi everybody,In a column I want to display a Text when the value of a field exist in a list of fixed values.Thank you for your helpAbdellatif Link to comment Share on other sites More sharing options...
ruthran Posted February 12, 2020 Share Posted February 12, 2020 Considering you have a fixed list of values stored in the parameter, you can use the 'Print When Expression' of the text field to check whether the value exist in your list. If present, then the content of the text box will be displayed. If not, it will not appear. Link to comment Share on other sites More sharing options...
I am Leo Posted February 13, 2020 Share Posted February 13, 2020 Add one more property "Print When Expression" to your text field.<printWhenExpression><![CDATA[YourCondition]]></printWhenExpression>[/code]YourCondition to display your text field if it matches the condition.YourCondition will be: java.util.Arrays.asList("Value A", "Value B", "Value C").contains($F{field_you_want_to_check})[/code] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now