cancel
Showing results for 
Search instead for 
Did you mean: 

Need Expert Advice on Reading udfValues in Jasper Report

SrinivasaRaoK
Product and Topic Expert
Product and Topic Expert
0 Kudos
260

Dear Experts,

I am trying to retrieve udfValues in a Jasper Report, but the values are being returned as an array. I am having difficulty extracting individual field values from this udfValues array.

Could you please guide me on how to read each field's values from the udfValues array?

I have attached screenshots for your reference.

Thank you for your assistance.

Thanks,

Srinivasa.

View Entire Topic
CihanAnik
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Srinivasa,

You can use the following function in JaspersoftStudio to read the value of a UDF:

udfValue(ObjectType, ObjectVersion, ObjectID, UDFName)

For example, if you have a custom field / UDF on Equipment level called "MyEquipmentUDF", the expression would look like this:

udfValue("Equipment", 16, $F{equipment.id}, "MyEquipmentUDF")

I have attached a screenshot for you to see how it can be done. 

SrinivasaRaoK
Product and Topic Expert
Product and Topic Expert
0 Kudos

2024-10-13_23-19-24.png2024-10-13_23-13-50.png2024-10-13_23-12-01.png2024-10-13_23-11-14.pngDear Anik, I have a custom field called PPMInterval1 in the Service Contract object. As per your suggestion, I am attempting to read this UDF field, but I am encountering a syntax error. I have attached a screenshot of the error for your reference. Could you please assist me here am I following right syntax to read UDF value?