Is there a basic coding format I can follow to write multiple document variable values to one obs term and then display that obs term?
Here is the obs I am trying to write to: {CFMT(OBSNOW("CSPYREQPROV"), "", "Selected Provider / Location
", "B", "
")}
I would like DOCUMENT.REQUESTED_NC and REQUESTED_LOC1 both to write to this obs term.
Thanks in advance!!
All you need is a watcher expression to build the obsterm value, then you are set.
Example:
{
cond
case DOCUMENT.REQUESTED_NC <> "" and DOCUMENT.REQUESTED_LOC1 <> "" OBSNOW(“CSPYREQPROV”,(DOCUMENT.REQUESTED_NC + "/" + DOCUMENT.REQUESTED_LOC1))
case DOCUMENT.REQUESTED_NC <> "" and DOCUMENT.REQUESTED_LOC1 == "" OBSNOW(“CSPYREQPROV”,(DOCUMENT.REQUESTED_NC))
case DOCUMENT.REQUESTED_NC == "" and DOCUMENT.REQUESTED_LOC1 <> "" OBSNOW(“CSPYREQPROV”,(DOCUMENT.REQUESTED_LOC1))
else OBSNOW(“CSPYREQPROV”,"")
endcond
}