#
#       DATA ACCESS EDITOR example definition file III
#
#
# This file shows couple of examples how to add assistance buttons
# for your parameters.
#
# To test these settings follow the steps given in 'DataAccessDef2' by
# changing the reference to this file.
#


#-----------------------------------------------------------------------
# This subdefinition is used to assist selecting a correct value for
# parameter LEVEL_VALUE. If user opens the assistance window (by clicking
# on the button with a question mark) he can pick a predefined value
# with a click of the mouse.
#
# A closed menu is not created because there is a '*' character which
# indicates any numerical value is allowed i.e. if user is not satisfied
# with any selectable value he/she can manually type some other value.
#

_SUBREQUEST ; Dummy ; dummy
{

  LEVEL
  {
    1000 ; 1000
    925  ;  925
    850  ;  850
    700  ;  700
    500  ;  500
    500  ;  500
    300  ;  300
    150  ;  150
    *
  }


#---------------------------------------
# This will be used to generate Assist Window. There are 3 values
# per line: 1) visible in Assist Window menu, 2) visible as the
# selected value, 3) value transmitted (these can be customised
# in the definition of the object [file DataAccessObjects], but
# that is beyond this example).
#

  OBSERVATION_TYPE
  {
      LSD - Land surface data ; LSD ; 0
      SSD - Sea surface data ; SSD ; 1
      VSNS - Vertical soundings - nonsatellite ; VSNS ; 2
      VSS - Vertical soundings - satellite ; VSS ; 3
      SLNS - Single level upper-air - nonsatellite ; SLNS ; 4
      SLS - Single level upper-air - satellite ; SLS ; 5
      OD - Oceanographic data ; OD ; 31
!     Derived data ; DD ; ?
      /
  } = 0

}



#-----------------------------------------------------------------------
# Start of the main definition file

DATA_ACCESS
{

#-----------------------------------------------------------------------
# Here ve use the definition of parameter LEVEL in our subrequest
# _SUBREQUEST. Clicking the Assist Button will open an Assistance
# window showing a selection defined in LEVEL.
# 

  LEVEL
  [ help = help_multiple_selection, exclusive = True ]
  {
    &_SUBREQUEST&LEVEL
  } = 500


#-----------------------------------------------------------------------
# Here we have a multiple selection from a menu. Again parameter
# OBSERVATION_TYPE has been predefined in our _SUBREQUEST.
#

  OBSERVATION_TYPES
  [ help = help_multiple_selection ]
  {
      &_SUBREQUEST&OBSERVATION_TYPE
  } = 0


#-----------------------------------------------------------------------
# this parameter uses one of the predefined Assistance windows i.e.
# the area selection. The area values (corner point coordinates) are
# automatically returned from the Assist Window into this parameter.
#

  AREA [ help = help_input, input_type = area, 
         input_window = '/System/Defaults/Input Window' ]
  {
    GLOBAL ; GLOBAL
    *
    /
  } =  GLOBAL

}
