Return author in a schedule expression
Submitted by Ben_Charlton on Fri, 05/09/2014 - 14:34
Each appointment created stores the current user as the Author -
I was attempting to show that information in the schedule using
openvpms:get(.,'author.objectReference')/description
however it consistently returns an expression error
Anyone able to get this working or explain why the author field is not returnable.
Re: Return author in a schedule expression
The author node is a participation relationship. You should use:
In the above:
Re: Return author in a schedule expression
Thanks Tim
why does
work - it looked to be the same sort of node (which was why I used it as a starting point.
Re: Return author in a schedule expression
Sorry - I've given you the wrong information. The above works if you have an appointment act. Schedules use PropertySets for performance reasons, so the above is incorrect.
You'll need to use:
The act.objectReference returns the act.customerAppointment.
See ScheduleEvent for a list of available properties.