(form "12019" (position 7 2) (size 66 22)
  (heading "HIGH GRADE REPORT")
  (field "loc" (position 12  4) (display_length 26) (input allowed)
    (translate lower) (null disallowed) (max_length 26)
    (file output (extension "reports|*.not")))
  (field "reportformat" (position 12 5) (display_length 32)
    (input allowed) (null disallowed)
    (value_in ".not - Surpac Note File"
              ".csv - Comma Separated (Spreadsheet)"
              ".htm - Hypertext Markup Language (Web)"
              ".html - Hypertext Markup Language (Web)"
              ".rtf - Rich Text Format (Microsoft Word)"
              ".pdf - Adobe Acrobat"
              ".ps - Postscript")
    (help "The file format nominated here will be the output report format."))
  (field "minwidth" (position 27  6) (display_length  4) (input allowed)
    (low_bound 0) (high_bound 999)
    (translate upper) (format real_8) (null disallowed) (max_length 4))
  (field "dilution" (position 27  7) (display_length  4) (input allowed)
    (low_bound 0) (high_bound 9999)
    (translate upper) (format real_8) (null disallowed) (max_length 4))
  (field "total_dilution" (position 27  9) (display_length  4) (input allowed)
    (low_bound 0) (high_bound 9999)
    (translate upper) (format real_8) (null allowed) (max_length 4)
    )
  (field "join_intervals" (position 27 10) (display_length  1) (input allowed)
    (value_in "Y" "N")
    (translate upper) (null disallowed))
  (field "external_cutoff" (position 45 16) (display_length 10) (input allowed)
    (translate upper) (format real_8) (null allowed) (max_length 10)
    )
  (field "metre_percent" (position 45 16) (display_length 10) (input allowed)
    (translate upper) (format real_8) (null allowed) (max_length 10)
    )
  (field "external_priority" (position 34  25) (display_length  21) (input allowed)
    (value_in "above only" "below only" "above or below (above before below)" "above or below (below before above)")
     (null disallowed) (max_length 35)
    (default "above or below (above before below)"))
  (field "use_true_thickness" (position 27 8) (display_length  1) (input allowed)
    (value_in "Y" "N")
    (translate upper) (null disallowed))
  (field "seldepth" (position 27  8) (display_length  1) (input allowed)
    (value_in "Y" "N")
    (translate upper) (null allowed) (max_length 1)
    )

  (field "updepth" (position 40  8) (display_length 5) (input allowed)
    (low_bound 0) (high_bound 9999999)
    (dependency (value "seldepth") == "Y") (default "0")
    (translate upper) (format real_8) (null disallowed) (max_length 10))

  (field "lowdepth" (position 56  8) (display_length 5) (input allowed)
    (dependency (value "seldepth") == "Y") (default "100")
    (translate upper) (format real_8) (null disallowed) (max_length 10))


  (field "selection" (position 40 9) (display_length 20) (input allowed)
    (value_in "NO SELECTION" "MULTIPLE ZONES" "ZONE FROM TO")
    (default "NO SELECTION")
    (translate upper) (null disallowed))
  (field "break" (position 40 10) (display_length  1) (input allowed)
    (value_in "Y" "N")
    (translate upper) (null allowed) (max_length 1))
  (field "dilute" (position 40 11) (display_length  1) (input allowed)
    (value_in "Y" "N")
    (translate upper) (null allowed) (max_length 1)
    )


  (field "table" (position 15 13) (display_length  10) (input allowed)
    (null disallowed) (max_length 18)(exclusive_value_list)
    )

  (field "minimum_grade" (position 45 13) (display_length 10) (input allowed)
    (translate upper) (format real_8) (null disallowed) (max_length 10)
    )


  (scroll_block "composite_fields" (position  2  17) (size 14  2)
     (extra  0  1)
     (scroll_size 14 10)
     (repeat interactive (grow  0  1) (instances  1 (min  1) (max 20)))
    (top
      (label (position  1  0) (text "Field Name"))
    )
    (main
        (field "composite_field" (position 1 0) (display_length 10)
          (input allowed)
          (null allowed) (max_length 18)
          )

    )
  )

  (scroll_block "weighting_fields" (position  30  18) (size 24  2)
     (extra  0  1)
     (scroll_size 24 5)
     (repeat interactive (grow  0  1) (instances  1 (min  1) (max 5)))
    (top
      (label (position  1  0) (text "Field Name"))
      (label (position  14  0) (text "Default"))
    )
    (main
        (field "weighting_field" (position 1 0) (display_length 10)
          (input allowed)
          (null allowed) (max_length 18)
          )

        (field "weighting_default" (position 14 0) (display_length 6)
          (input allowed) (default "1")
          (low_bound 0.0) (null disallowed) (max_length 10)
          )
    )
  )

  (default_buttons)
)
