I am looking for a script/code that will pull in the last 5 obsterms along with the date.
I found one on the CHUG a while back (below) but when I use this a comma added to a new obsterm throws the whole thing off. Does anyone have another idea?
Thank You.
{local S1=""
if OBSPREV("PREVISPRPNOP")"" then
local A1=getfield(LIST_OBS("PREVISPRPNOP","signed","comma","valuedate"),",","")
local ix=(if size(A1)>5,5,size(A1))
local i=0
S1=""
for i=1,i<=ix,i=i+1 do
S1=S1 + (if S1"",HRET," ") + A1[i]
endfor
else "" endif
S1}
Try use the "Delimited" parameter and not "comma"
Thanks, I tried Delimited which gives too much information and is confusing.
I also tried "" (blank) which has the same problem; when adding a comma to the text the obsterms are not stored correctly. Any other ideas/suggestions?