I am trying to find language for an action button that will put a signature and date into an obs term. Any ideas as to how that might work?
I tried:
IF OBSNOW.VACCRECCSIGN = "" THEN OBSNOW.VACCRECCSIGN = (str((user.realname), ' ' ,(datetimestamp()))) ENDIF
I tried both an edit field with a new observation of "Vaccreccsign" as well as a data display with a new observation of "Vaccreccsign." No luck.
“VACCRECCSIGN” is an obs term that I just added. At any rate, that language gave me a blank when I clicked on it.
Any ideas?
Thank you.
Bill James
Treehouse Pediatrics
Round Rock, TX
You're real close, but the correct syntax is:
OBSNOW("VACCRECCSIGN", str(user.realname), datetimestamp() )
This will save the OBS term value as USER.REALNAME, with an OBS term date of DATETIMESTAMP(). Have this follow your THEN statement. The second and third parameters are updating the OBS term.
Also, when referencing an OBS term, you need to use OBSNOW("OBS TERM HERE"). You cannot use the OBSNOW.OBSTERM notation like you would a DOCUMENT.VARIABLE.