Uploaded image for project: 'Pentaho Reporting and Pentaho Report Designer'
  1. Pentaho Reporting and Pentaho Report Designer
  2. PRD-3519

Default date format for a text input parameter field works in 3.6 but not in 3.8

    Details

    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.

      Description

      The default format definition for a text input parameter for a date fields is not applied in Report Designer 3.8.
      This is working in 3.6.
      Attached is a sample report.
      Open the report in 3.8 and do a preview.
      The text input field does not match that defined in the default format.
      Open the same report in 3.6 and do preview.
      The date display matches that defined in the default format.
      A video recording of the problem from the client is also attached.

      1. dateissue.prpt
        4 kB
        Man Shing Yau
      2. param_start_format.wmv
        1.98 MB
        Man Shing Yau

        Activity

        Hide
        kcruzada Kurtis Cruzada added a comment - - edited

        This is definitely the case and appears to a migration issue (report created in 3.6). It works fine against newly created parameters.

        Show
        kcruzada Kurtis Cruzada added a comment - - edited This is definitely the case and appears to a migration issue (report created in 3.6). It works fine against newly created parameters.
        Hide
        ckohl Christian Kohlschein added a comment -

        > It works fine against newly created parameters

        No, it does not - at least not in version 3.8.1-RC1 of the report designer.

        Show
        ckohl Christian Kohlschein added a comment - > It works fine against newly created parameters No, it does not - at least not in version 3.8.1-RC1 of the report designer.
        Hide
        tmorgner Thomas Morgner added a comment -

        Fixed.

        All text parameter inputs are now aware of the format string. Formatting is only applied if the parameter has no query defined, as queries define their own text-values and input mapping.

        Text fields with formatting are now aware of the timezone set for the parameter. The timezone also affects the input of the default value. All inputs are made in the timezone selected for the parameter.

        Show
        tmorgner Thomas Morgner added a comment - Fixed. All text parameter inputs are now aware of the format string. Formatting is only applied if the parameter has no query defined, as queries define their own text-values and input mapping. Text fields with formatting are now aware of the timezone set for the parameter. The timezone also affects the input of the default value. All inputs are made in the timezone selected for the parameter.

          People

          • Assignee:
            kcruzada Kurtis Cruzada
            Reporter:
            myau Man Shing Yau
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: