act.reasonName

Why do act.reasonName and act.reason in a worklist or schedule return blank?

Matt Y.

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: act.reasonName

These two are only set for appointments. How are you trying to use them? It should be something like:

openvpms:get(.,'act.reasonName')

or:

openvpms:get(.,'act.reason')

They both come from the 'reason' node of act.customerAppointment; this contains the code of a lookup.appointmentReason. The act.reasonName is just a shortcut for:

openvpms:lookup(., 'reason')

Re: [OpenVPMS] act.reasonName



Tim,


I'm using them in the expression for a worklist view.

Matt.





Re: [OpenVPMS] act.reasonName

Work lists events are derived from the act.customerTask archetype. This doesn't have a reason node, so the act.reasonName and act.reason properties will always be empty.

Re: act.reasonName

Matt - I just checked the CSH text at http://www.openvpms.org/documentation/csh/1.7/admin/organisation/worklis... - it does say:

(actually it now says '...which can be used' after I noticed and corrected the grammatical error)

whereas the appointment equivalent at http://www.openvpms.org/documentation/csh/1.7/admin/organisation/schedul... says:

so at least the behaviour is documented correctly - and the 'blank for tasks' simply reflects the fact that there is no reason field in the act.customerTask archetype.

Regards, Tim G

Syndicate content