Shedule View Construction
Submitted by Guest on Thu, 22/08/2013 - 14:02
Tim, any chance shedule view supports if,then else integration?
i.e.
if(length(openvpms:get(.,'act.description')>0){,'\n',substring(openvpms:get(.,'act.description'),0,50)}
the goal was to list a description if is available on a new line, but not create that newline if there is no description.
interestingly
you can add the CSH, Tim G that objects can also be referenced like
openvpms:get(., 'clinician.objectReference')/description,
I think this is semantically equal to
openvpms:get(openvpms:get(., 'clinician.objectReference'),'description')
both seem to work
Ben
Re: Shedule View Construction
Ben - I have updated http://www.openvpms.org/documentation/csh/1.7/reference/jxpath with the / shorthand [it works because it is a valid xpath syntax].
Tim A - you had better check what I have said [I modified the openvpms:get description].
Regards, Tim G