(form "11112" (size 51  9)
  (heading "Blast setout report")
  (field "location" (position 15 6) (display_length 26) (input allowed)
    (translate lower) (null disallowed) (max_length "FIO_MAX_LOCATION_LENGTH")
    (file output (link "id" "reportFormat") (extension "*.not,*.csv,*.htm,*.html,*.rtf,*.pdf,*.ps")))
  (field "id" (position 15  7) (display_length 16) (input allowed)
    (translate upper) (format real_8) (null allowed) (max_length 16))
  (field "reportFormat" (position 15  8) (display_length 5) (input allowed)
      (null disallowed) (max_length 5)
      (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"
                ".log - Surpac log file"))
  (field "patternType" (position 18  3) (display_length 24) (input allowed)
    (value_in "All" "Group" "Unique" "Some") (null disallowed) (max_length 32))
  (field "patternFrom" (position 15  7) (display_length 16) (input allowed)
    (dependency(value "patternType") == "Group")
    (null disallowed) (max_length 32))
  (field "patternTo" (position 15  7) (display_length 16) (input allowed)
    (dependency(value "patternType") == "Group")
    (null disallowed) (max_length 32))
  (field "pattern" (position 15  7) (display_length 16) (input allowed)
    (dependency(value "patternType") == "Unique")
    (null disallowed) (max_length 32))

  (scroll_block "patterns" (position 25 7) (size 16 5)
    (extra 0 1)
    (scroll_size 16 50)
    (repeat interactive (grow 0 1) (instances 1 (min 1) (max 50)))
    (main
      (field "pattern_name" (position 1 0) (display_length 12) (input allowed)
        (max_length 30) (null allowed)
      )
    )
  )

  (default_buttons)
)
