Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-7571

User report: if item with lookuptable is used, it is using the lookuptable only in preview, not in report

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.4, 4.5
    • 4.5, 4.4.1
    • GUI
    • Internal
    • v4.5devel-71-g0dda86d98b

    Description

      Attempting to put a new column extension/empStatus (MID-101) to the view in a copy of User list in midpoint report.

      Preview translates values of empStatus using lookuptable, because it is configured in object template. E.g. "F" becomes "Former Employee".

      But report uses the real value "A".

      This is confusing and we should make this perhaps configurable.

      Preview:
      From output:

      Report configuration fragment:

                  <column>
                      <name>empStatusColumn</name>
                      <path>extension/empStatus</path>
                      <previousColumn>activationColumn</previousColumn>
                  </column>
      

      Object template fragment:

      
          <item>
              <ref>extension/empStatus</ref>
              <valueEnumerationRef oid="3db10c46-23b1-11e8-be0c-a31e9d8ba9d8" />
          </item>
      

      And finally, lookup table:

      <?xml version="1.0" encoding="UTF-8"?>
      <!-- (c) 2011-2020 Evolveum, All rights reserved -->
      <lookupTable xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
      xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
      xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
      xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
      oid="3db10c46-23b1-11e8-be0c-a31e9d8ba9d8">
          <name>Employee Status</name>
          <row>
              <key>A</key>
              <label>Active Employee</label>
          </row>
          <row>
              <key>I</key>
              <label>Inactive Employee</label>
          </row>
          <row>
              <key>F</key>
              <label>Former employee</label>
          </row>
      </lookupTable>
      
      

      Attachments

        Activity

          People

            vix Ivan Noris
            vix Ivan Noris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: