(form "00617" (position 2 2) (size 75 22)
  (heading "DEFINE THE COMPOSITING CRITERIA")
  (label (position  4 3) (text "Table Name"))
  (field "table_name" (position  17  3) (display_length 16)
     (foreground) (background) (input disallowed))

  (label (position  4 5) (foreground (user_option "form_text_highlight"))
         (text "Define the individual compositing criteria"))
  (scroll_block "optional_fields" (position  4  7) (size 68  4)
     (extra  0  1)
     (scroll_size 75 4)
     (repeat interactive (grow  0  1) (instances  1 (min  1) (max 26)))
    (main)
    (top
      (label (position  1  0) (text "Tag"))
      (label (position  5  0) (text "Field"))
      (label (position  20 0) (text "Operator"))
      (label (position  30 0) (text "Limiting value"))
      (label (position  45 0) (text "Missing samples"))
      (label (position  60 0) (text "Inferior samples"))
    )
    (main
    (field "field_name" (position  5  0) (display_length 10) 
          (input allowed)
          (translate none) (null allowed) (max_length 32)
          )
	  (field "op" (position 20  0) (display_length  4) (input allowed)
	      (value_in ">=" "<=")
          (translate none) (null allowed) 
	      (max_length 4) (default ">=")
          )
	  (field "value" (position 30  0) (display_length 13) (input allowed)
	      (null allowed) (max_length 10)
          )
         (field "missing" (position 45 0) (display_length  12) (input allowed)
              (auto_next off)
              (value_in non_exclusive "" "ZERO VALUE" "INTERVAL MEAN")
                        (default "ZERO VALUE")
                        (translate upper) (null allowed) (max_length 24) 
              )
         (field "inferior" (position 60 0) (display_length  12) (input allowed)
              (auto_next off)
              (value_in non_exclusive "" "USE VALUE" "ZERO VALUE" "INTERVAL MEAN")
              (default "USE VALUE") (translate upper) (null allowed) (max_length 24) 
              )
  ))
  (label (position  4 12) (text "Composite combination"))
  (field "comp_comb" (position 28 12) (display_length 30) (input allowed)
    (null disallowed) (max_length 512) (translate lower)
    )
  (label (position  4  14) (foreground (user_option "form_text_highlight"))
         (text "Define the sample fields required in the resulting string file"))
  (label (position 4 16)
         (text "Output assay missing sample treatment"))
  (field "oa_missing_sample_value" (position 4 17) (display_length  12) (input allowed)
         (value_in non_exclusive "VALUE" "INTERVAL MEAN")
          (default "VALUE")
          (translate upper) (null allowed) (max_length 24) 
          )
 

  (scroll_block "assay_fields" (position 30 16) (size 37  4)
     (extra  0  1)
     (scroll_size 37 60)
     (repeat interactive (grow  0  1) (instances  1 (min  1) (max 60)))
    (top
        (label (position  1  0) (text "Field name"))
        (label (position 22  0) (text "Missing sample value"))
    )
    (main
      (field "assay_field" (position  1  0) (display_length 18) (input allowed)
        (max_length 18)
        (null allowed)
        )
      (field "out_missing" (position 22 0) (display_length  12) (input allowed)
          (auto_next off)
      (translate upper) (format real_8) (null disallowed) (max_length 16)
      (dependency (value "oa_missing_sample_value") == "VALUE")
      (default "0")
              )

    )
  )

  (field "write_codes" (position 34  25) (display_length  21) (input allowed)
    (value_in "" "database" "graphics")
     (null allowed) (max_length 21)
    (default "")
  )
  (field "geo_table" (position 14 26) (display_length 18) (input allowed)
    (dependency (value "write_codes") == "database")
    (translate lower) (null disallowed) (max_length 18)
    (auto_next off))
  (field "geo_field" (position 14 27) (display_length 18) (input allowed)
    (dependency (value "write_codes") == "database")
    (translate lower) (null disallowed) (max_length 18)
    (auto_next off))
  (field "geo_code" (position 14 28) (display_length 32) (input allowed)
    (dependency (value "write_codes") != "")
    (null disallowed) (max_length 32))
  (default_buttons)
)
