hexagon logo

2017 R2: option to retain form dropdown selections

I am trying to help the programmer from one of our sister plants. Currently, there is a form (CS2) that they fill out at the beginning of each run (see image above). I used dropdown lists for the critical fields to prevent typos that would break transferring the measurements to a database. The problem using a dropdown list has created is that while the non-critical fields can be retained for the next run (by answering "Yes" to C1), I could not find a way to retain the dropdown list selections.

I have previously tried using ASSIGN to set them, but the form still defaulted to a blank selection. Does anyone know if it possible to retain all selections and inputs for a follow-up run?

GRP_START  =GROUP/SHOWALLPARAMS=YES
C1           =COMMENT/YESNO,NO,FULL SCREEN=YES,AUTO-CONTINUE=NO,
              Is this the same order as the previous part?
              IF_GOTO/C1.INPUT=="YES",GOTO = CS2
              ASSIGN/CUSTOMER=""
              ASSIGN/SIZE="LG"
              ASSIGN/THICKNESS=3
              ASSIGN/CUT=""
              ASSIGN/MATERIAL=""
              ASSIGN/JOBNUMBER=""
              ASSIGN/SERIALNUMBER=""
              ASSIGN/FIRINGNUMBER=""
CS2          =FORM/FILENAME= C:\USERS\PUBLIC\DOCUMENTS\HEXAGON\PC-DMIS\2017 R2\DO NOT DELETE\LEXINGTONTORSOFORM.FORM
              PARAM/CUSTOMERLIST.TEXTVALUE=CUSTOMER
              PARAM/THICKNESSBOX.TEXT=THICKNESS
              PARAM/MATERIALLIST.TEXTVALUE=MATERIAL
              PARAM/CUTLIST.TEXTVALUE=CUT
              PARAM/SERIALBOX.TEXT=SERIALNUMBER
              PARAM/FIRINGBOX.TEXT=FIRINGNUMBER
              PARAM/JOBBOX.TEXT=JOBNUMBER
              PARAM/=
              ENDFORM/
              ASSIGN/PN=CUSTOMER+CUT+SIZE+THICKNESS+MATERIAL
              COMMENT/REPT,
              "Part Number: "+PN
              COMMENT/REPT,
              "Serial Number: "+SERIALNUMBER
              COMMENT/REPT,
              "Firing Number: "+FIRINGNUMBER
            ENDGROUP/ID=GRP_START

Parents
  • Hello

    I have a small basic script stored in my form that writes this data into a text file in the public folder and opens it again as soon as the form is opened, in order to then fill the fields with the last entries, including the dropdown menus.

    In the PC-DMIS form editor there are event handlers for the form itself. There you will find "EventInitialize" and "EventTerminate". You can write in these that the current entries should be saved in a text file or read from it.

    The programming language is Basic, though. Works pretty well, I think.

    If you want, I can give you the code and show you exactly where it has to be inserted. But I need the "names" of the text fields and combo boxes from the properties menu of the PC-DMIS form editor

Reply
  • Hello

    I have a small basic script stored in my form that writes this data into a text file in the public folder and opens it again as soon as the form is opened, in order to then fill the fields with the last entries, including the dropdown menus.

    In the PC-DMIS form editor there are event handlers for the form itself. There you will find "EventInitialize" and "EventTerminate". You can write in these that the current entries should be saved in a text file or read from it.

    The programming language is Basic, though. Works pretty well, I think.

    If you want, I can give you the code and show you exactly where it has to be inserted. But I need the "names" of the text fields and combo boxes from the properties menu of the PC-DMIS form editor

Children
No Data