[midPoint] get extension attribute in a jasper report

Katka Valalikova katka.valalikova at evolveum.com
Thu Jul 14 17:56:19 CEST 2016


Hi Marco, 

yes, in the previous versions there wasn't possibility to work with complex path in reports. I just pushed the improvement to master (git version d4c0881) to support it. Now you can try to use: 

extension/myattriubte in "report field" and then textFieldExpression: <textFieldExpression><![CDATA[$F{/extension/myattribute}]]></textFieldExpression> 

Let me know if it works for you, 
Best regards, 
Katarina Valalikova 


----- Original Message -----

From: "Marco Benucci" <benucci.marco92 at gmail.com> 
To: midpoint at lists.evolveum.com 
Sent: Monday, June 13, 2016 11:27:34 AM 
Subject: [midPoint] get extension attribute in a jasper report 

Hi, 

I'd like to get some extension attributes from users when I make the "User in midPoint" report. 

I have tried in "report field": 
name: /extension/myattriubte 
Class: java.lang.String 
textFieldExpression: <textFieldExpression><![CDATA[$F{/extension/myattribute}]]></textFieldExpression> 

or 
name: Extension 
Class: "com.evolveum.midpoint.xml.ns._public.common.common_3.ExtensionType" 

textfieldExpression: <textFieldExpression><![CDATA[$F{Extension}.getAny().toString()]]></textFieldExpression> 


but without result.... 

_______________________________________________ 
midPoint mailing list 
midPoint at lists.evolveum.com 
http://lists.evolveum.com/mailman/listinfo/midpoint 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20160714/4f8b7136/attachment.htm>


More information about the midPoint mailing list