hexagon logo

Operators Bypassing Filling Out the Form: Flow Control

Happy Saturday!

At the beginning of each program, I have a Form that operators need to fill out. Unfortunately, we have operators that like to just click the continue button on the execution box, which bypasses the form and the program continues. This will not cause the program to crash, but along with other people, I like to see what job# the part was run, who ran it, and for what reason. (Each tracefield is coded into a customized header) So I have had to create a flow control that will not allow operators to bypass the form. They will need to completely fill it out to continue running the program. Hopefully this will help someone who may be in the same situation.

Code:

REFILL     =LABEL/
            ASSIGN/STR_INSPECT=""
            ASSIGN/STR_USER=""
            ASSIGN/STR_DESC=""
CS1        =FORM/FILENAME= C:\USERS\CMM\DOCUMENTS\CMM FILES\FORMS\INSPECTIONFORM.FORM
            PARAM/TXTINSPECT.TEXT=STR_INSPECT
            PARAM/TXTUSER.TEXT=STR_USER
            PARAM/TXTDESCRIPTION.TEXT=STR_DESC
            PARAM/=
            ENDFORM/
            ASSIGN/FORM1=STR_USER
            ASSIGN/FORM2=STR_INSPECT
            ASSIGN/FORM3=STR_DESC
            IF/FORM1=="" OR FORM2=="" OR FORM3==""
              COMMENT/OPER,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO,
              Please completely fill out the form in the upper left corner.
            GOTO/REFILL
            END_IF/
            TRACEFIELD/NO_DISPLAY,LIMIT=15 ; TECH / OPERATOR : FORM1
            TRACEFIELD/NO_DISPLAY,LIMIT=20 ; COMMENTS : FORM2
            TRACEFIELD/NO_DISPLAY,LIMIT=15 ; JOB / PART# : FORM3
Parents Reply
  • Hello NinjaBadger, is it possible to share code VB or point me where to find how to do ?: open form, hide execution window, continue program only with OK button, I know how to handle form variable, and how to use condition to check if variable inputs are correct, but I cannot succes with open form fullscrean.
Children
No Data