I have the following code that validates a users screen (surgery charting). How can I place these formulas so the info looks like this:
Please return to the Procedure\Staff\Room Button & go to the Procedure Screen Tab and check the Wound Class Field
Please return to the Procedure\Staff\Room Button & go to the Post Case Screen Tab and check the Pre Diagnosis field
etc.,
I am just trying to catch some critical missed fields. When they print the record it prints to the screen and these error messages in red will show them where they missed the fields to input data. All of these formulas work on their own. But when it is run as validation it obviously stops at the first error. How do I get it to continue to the end of the validation checks, and to place the appropriate error message up on the screen? I have a sneaky suspicion that I will have to break up this formula into individual formula's, but I don't want to do it that way if I can help it.
I have the validation formula running in the RH which is suppressed if it is empty. All the fields are either string fields or code fields which are number fields.
Thank you So much for your help! My info is in my sig file.
Lareya
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Crystal 8.5; ORSOS/One Call Hospital Scheduling System v9.3; SQL database; Huge Newbie to Crystal! Operating Room RN Analyst
Please return to the Procedure\Staff\Room Button & go to the Procedure Screen Tab and check the Wound Class Field
Please return to the Procedure\Staff\Room Button & go to the Post Case Screen Tab and check the Pre Diagnosis field
etc.,
I am just trying to catch some critical missed fields. When they print the record it prints to the screen and these error messages in red will show them where they missed the fields to input data. All of these formulas work on their own. But when it is run as validation it obviously stops at the first error. How do I get it to continue to the end of the validation checks, and to place the appropriate error message up on the screen? I have a sneaky suspicion that I will have to break up this formula into individual formula's, but I don't want to do it that way if I can help it.
I have the validation formula running in the RH which is suppressed if it is empty. All the fields are either string fields or code fields which are number fields.
Code:
@Validation
IF {POST_PROCEDURE_DATA.WOUND_CLASSIFICATION} = "" then
'Please return to the Procedure\Staff\Room Button & go to the Procedure Screen Tab and check the Wound Class Field '
else
if {POST_CASE.PRE_DIAGNOSIS} = "" then
'Please return to the Procedure\Staff\Room Button & go to the Post Case Screen Tab and check the Pre Diagnosis field '
else
if {POST_CASE.DIAGNOSIS} = '' then
'Please return to the Procedure\Staff\Room Button & go to the Post Case Screen Tab and check the Post Diagnosis Field '
else
if {Post_Case.TYPE_OF_CASE_CODE} = 0 then
'Please return to the Procedure\Staff\Room Button & go to the Procedure Screen Tab and check the Case Type Field '
else
if {Post_Case.PATIENT_TYPE_CODE} =0 then
'Please return to the Procedure\Staff\Room Button & go to the Post Case Screen Tab and check the Patient Type Field '
else
if {Post_Case.Major_Minor_Code} = 0 then
'Please return to the Procedure\Staff\Room Button & go to the Procedure Screen Tab and check the Major/Minor Field '
else
if {POST_PROCEDURE.PROCEDURE_DESC} = "" then
' Please return to the Procedure\Staff\Room Button & go to the Procedure Screen Tab and check the Description Field '
else
if {POST_PROCEDURE.PROCEDURE_DESC} = "" then
' Please return to the Procedure\Staff\Room Button & go to the Procedure Screen Tab and check the Description Field '
else
IF {CODES_ANES_TYPE.ABBR} = "" THEN
' Please return to the Procedure\Staff\Room Button & go to the Post Case Tab and check the Anesthesia Type Field '
;
Thank you So much for your help! My info is in my sig file.
Lareya
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Crystal 8.5; ORSOS/One Call Hospital Scheduling System v9.3; SQL database; Huge Newbie to Crystal! Operating Room RN Analyst