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