So I have been experimenting with page close handlers and I have gotten exactly zero results. It literally seems to just ignore the code.
I am not sure if my code is incorrect and somehow just bypassing everything or what.
{
IF ((DOCUMENT.VALUES_REVIEWED == "")
THEN USEROK("Care Team measures check box must be checked!")
CLOSEPAGE("FALSE")
RETURN(FALSE)
ELSE ""
ENDIF}
{
IF (LASTOBSVALUEDATE("HGBA1C") == "")
THEN USEROK("Review HGBA1C!")
CLOSEPAGE("FALSE")
RETURN(FALSE)
ELSE ""
ENDIF}
{
IF (LASTOBSVALUEDATE("TETANUS IMMU") == "")
THEN USEROK("Review Tetanus Immunization!")
CLOSEPAGE("FALSE")
RETURN(FALSE)
ELSE ""
ENDIF}
{
IF (LASTOBSVALUEDATE("VIT D 25-OH") == "")
THEN USEROK("Review Vitamin D!")
CLOSEPAGE("FALSE")
RETURN(FALSE)
ELSE ""
ENDIF}
{
IF (LASTOBSVALUEDATE("FLU VAX") == "")
THEN USEROK("Review Flu Vaccine!")
CLOSEPAGE("FALSE")
RETURN(FALSE)
ELSE ""
ENDIF}
{
IF (LASTOBSVALUEDATE("SMOK STATUS") == "")
THEN USEROK("Review Smoking Status!")
CLOSEPAGE("FALSE")
RETURN(FALSE)
ELSE ""
ENDIF
}
Any ideas?
Have you set the INCLUDE PAGE CLOSE HANDLERS in the Tools/Options/Program Options/Build menu item within the Visual Forms Editor? See attached screen print.
Sorry. Forgot to mention that I have checked that. No joy so far.
I do not think I have added RETURN(FALSE) in the past, return "" at most.
Not sure you need the double quotes
CLOSEPAGE(“FALSE”)
or CLOSEPAGE(“TRUE”)
- Beverly
The Definition/example below does not use quotes:
{closepage(TRUE)}
returns
Closes the current page and continues with the next page
{closepage(FALSE)}
returns
Returns to the current page
I'm finding the same thing - using Centricity 12.0 all patches etc. are up to date, but the system just completely ignores the code. Ran a MEL trace and it shows that the function just does not fire. Anyone know if there is a fix on the way for this?