Amazon festival offer

Saturday, 26 April 2014

Setting Default Values for Input Controls in iReport



There are multiple type of input controls in iReport which we use in reports :  -

1   1-      Text (java.lang.String)

                 Single select string input control.
                  Example: -    “India”

2   2-      Integer(java.lang.Integer)
                             
           Single select integer input control (p_year)
           Example: -       1997

3   3-      Collection(java.util.Collection)

           Multiselect input control for string and integer values (p_shipcountry)
           Example: -  new ArrayList(Arrays.asList(new String[] {“India”,”US”}))

4   4-      Date(java.util.Date)

            Date parameter, months start from 0 to 11
             Example for 2014-04-26: - new Date(114,3,26)

5   5-      Boolean(java.lang.Boolean)

          Boolean values for true or false type values.
          Example: - “true”

No comments: