(form "20310" (size 50 14)
  (heading "BLOCK REPORT")

  (label (position 2 3) (text "Model Name"))
  (field "model_name" (position 15 3) (display_length 20) (max_length 30))
  
  (label (position 2 5) (text "Define output file"))
  (label (position 5 6) (text "Location"))
  (field "location" (position 16 6) (display_length 10) (input allowed)
    (null allowed) (max_length "FIO_MAX_LOCATION_LENGTH")
    (file output (link "id") (extension "*.str"))
    )

  (label (position 5 7) (text "Id"))
  (field "id" (position 16 7) (display_length 10) (input allowed)
    (format real_8) (null disallowed) (max_length 16)
    (help (field "location")))

  (label (position 2 9) (text "Output Attributes"))
  (field "output_attributes" (position 16 9) (display_length 4) 
    (input allowed) (value_in "some" "all" "none") 
    (default "all") (max_length 5)
    )
  (label (position 2 10) (text "Constrain report?"))
  (field "constraints" (position 16 10) (display_length 4) (input allowed)
    (value_in "Yes" "No") (default "No") (max_length 4)
    )
  (scroll_block "attributes" (position 29 7) (size 16 5)
    (extra 0 1)
    (scroll_size 16 50)
    (repeat interactive (grow 0 1) (instances 1 (min 1) (max 50)))
    (top
      (label
          (position 1 0)
          (text "Output Attributes")
        )
    )
        
    (main
      (field "attribute" (position 1 0) (display_length 12) (input allowed)
        (max_length "BM_MAX_ATT_NAME_LEN") (null allowed)
        (dependency (value "output_attributes") == "some")
        )
    )
  )

  (default_buttons)
)
