on 2024 Oct 04 5:38 PM
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.
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear 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?
User | Count |
---|---|
21 | |
16 | |
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.