home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Spezial / SPEZIAL2_97.zip / SPEZIAL2_97.iso / ANWEND / ONLINE / ELM23-2 / ELM23-2.ZIP / manuals / Form.doc < prev    next >
Text File  |  1994-04-24  |  16KB  |  463 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.                                 EEllmm FFoorrmmss MMooddee GGuuiiddee
  20.  
  21.  
  22.  
  23.                      _W_h_a_t _F_o_r_m_s _M_o_d_e _i_s_, _h_o_w _t_o _u_s_e _i_t _t_o _c_r_e_a_t_e
  24.                    _c_u_s_t_o_m _f_o_r_m_s_, _h_o_w _t_o _r_e_p_l_y _t_o _f_o_r_m_s_, _a_n_d _h_o_w _t_o
  25.                             _u_s_e _i_t _f_o_r _A_T_&_T _M_a_i_l _m_e_s_s_a_g_e_s
  26.  
  27.  
  28.                                      Dave Taylor
  29.  
  30.                             Hewlett-Packard Laboratories
  31.                                  1501 Page Mill Road
  32.                                     Palo Alto CA
  33.                                         94304
  34.  
  35.  
  36.  
  37.                    email: taylor@hplabs.HP.COM  or  hplabs!taylor
  38.  
  39.  
  40.  
  41.           >>> Elm is now in the public trust. Bug reports, comments, etc. to: <<<
  42.  
  43.                                     Syd Weinstein
  44.                                Datacomp Systems, Inc.
  45.                                    3837 Byron Road
  46.                           Huntingdon Valley, PA 19006-2320
  47.  
  48.                           email: elm@DSI.COM  or  dsinc!elm
  49.  
  50.  
  51.  
  52.                        ((CC)) Copyright 1986, 1987 by Dave Taylor
  53.             ((CC)) Copyright 1988, 1989, 1990 by The USENET Community Trust
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.                             AA GGuuiiddee ttoo FFoorrmmss MMooddee iinn EEllmm
  79.  
  80.                                     (Version 2.3)
  81.  
  82.                                      Dave Taylor
  83.  
  84.                             Hewlett-Packard Laboratories
  85.                                  1501 Page Mill Road
  86.                                     Palo Alto CA
  87.                                         94304
  88.  
  89.                    email: taylor@hplabs.HP.COM  or  hplabs!taylor
  90.  
  91.  
  92.           >>>  Elm  is now in the public trust. Bug reports, comments, etc.
  93.                                        to: <<<
  94.  
  95.  
  96.                                     Syd Weinstein
  97.                                Datacomp Systems, Inc.
  98.                                    3837 Byron Road
  99.                           Huntingdon Valley, PA 19006-2320
  100.  
  101.                           email: elm@DSI.COM  or  dsinc!elm
  102.  
  103.                                      May 1, 1990
  104.  
  105.  
  106.           While there are a lot of mail systems that allow the transmission
  107.           of text and primitive pictures, to send and reply to more complex
  108.           forms is simply not possible.  EEllmm, however, took the forms  mode
  109.           implemented  as part of the AT&T Mail package and has expanded on
  110.           it to be a smoothly fit part of the overall mail system.
  111.  
  112.           Forms mode gives you the ability to send `template' files to peo-
  113.           ple and receive the filled-in replies.1 Let's look at an  example
  114.           right off.
  115.  
  116.           Say  we  were going to use computer mail as a way to file defects
  117.           with software.  There is a certain amount of information we  want
  118.           to be able to collect when each report is made, and if it is in a
  119.           specific format we can use programs to file the defects upon  re-
  120.           ceipt.
  121.  
  122.           The form we'll try to emulate starts out looking like:
  123.  
  124.           __________
  125.           _1_.  _n_o_t_e  _t_h_a_t  _t_h_i_s _f_e_a_t_u_r_e _a_s_s_u_m_e_s _t_h_a_t _t_h_e _p_e_r_s_o_n _o_n
  126.           _t_h_e _o_t_h_e_r _e_n_d _i_s _a_l_s_o _u_s_i_n_g _t_h_e _E_l_m _m_a_i_l _s_y_s_t_e_m_.
  127.  
  128.  
  129.           Forms Mode Guide                                      Version 2.3
  130.  
  131.  
  132.  
  133.  
  134.  
  135.           Forms Mode Guide                                      Version 2.3
  136.  
  137.  
  138.  
  139.  
  140.                                 Defect Reporting Form
  141.  
  142.           Program: ______________                         Version: ________
  143.           Operating System: _____                         Version: ________
  144.  
  145.           Defect Type: __________
  146.  
  147.           Date Found: ___________                 By Whom: ______________
  148.           Date Reported: ________                 Phone: ________________
  149.  
  150.           Description: ___________________________________________________
  151.           ________________________________________________________________
  152.           ________________________________________________________________
  153.           __________________________________________________________________
  154.  
  155.           This  form can actually be created almost exactly as listed above
  156.           in the EEllmm mail system by using your standard editor and can then
  157.           be mailed about as needed.
  158.  
  159.           Let's say that we want a bit more information, however, especial-
  160.           ly with fields like ``Defect Type'', we want to list all the rec-
  161.           ommended  answers.   To create the actual form, we need merely to
  162.           replace the underlines in the above form with spaces.  The multi-
  163.           line  comments  can  simply  be indicated by a `:' by itself on a
  164.           line;
  165.  
  166.  
  167.  
  168.                                 Defect Reporting Form
  169.  
  170.           Program:                                        Version:
  171.           Operating System:                               Version:
  172.  
  173.           (Valid Defect Types are: user-error, doc-error, fatal, other)
  174.           Defect Type:
  175.  
  176.           Date Found:                               By Whom:
  177.           Date Reported:                            Phone:
  178.  
  179.           Description
  180.           :
  181.  
  182.           Thank you for filling in this form.
  183.  
  184.           __________________________________________________________________
  185.  
  186.           As we can see, it is quite simple to create forms!!
  187.  
  188.  
  189.           Now that we have an idea what we're talking about, let's actually
  190.           officially define the system...
  191.  
  192.  
  193.  
  194.  
  195.           May 1, 1990                   Page 2
  196.  
  197.  
  198.  
  199.  
  200.  
  201.           Forms Mode Guide                                      Version 2.3
  202.  
  203.  
  204.  
  205.           FFoorrmmss MMooddee SSppeecciiffiiccaattiioonn
  206.  
  207.           [Note  that  this is all taken from the document _S_t_a_n_d_a_r_d _f_o_r _E_x_-
  208.           _c_h_a_n_g_i_n_g _F_o_r_m_s _o_n _A_T_&_T _M_a_i_l, Version 1.9 of 6/7/86, from AT&T]
  209.  
  210.           The forms mode is really quite simple.  Simple enough that it  is
  211.           amazing  that  it  hadn't  been implemented before AT&T Mail came
  212.           along!!
  213.  
  214.           In a nutshell, each field is delimited by a  `:'  followed  by  a
  215.           number  of blank spaces or tabs that represent the valid size for
  216.           that field.  That is, if we have a line in the form like;
  217.                ``Phone (area-code):     Number:          ''
  218.           The area-code field will be limited to three characters  and  the
  219.           number  to  nine.   (this is kind of hard to see with the propor-
  220.           tionally spaced formatted copy, alas).  The only exception to the
  221.           rule is that a `:' by itself on a line represents a field that is
  222.           as large as the user entering the data desires.
  223.  
  224.           The actual form that is transmitted, in AT&T Mail parlance, is  a
  225.           ``SIMPLE''  forms handler message (as opposed to the ``ADVANCED''
  226.           handler).  This means that it contains three sections;
  227.                _T_h_e _M_e_s_s_a_g_e _H_e_a_d_e_r
  228.                [[OOPPTTIIOONNSS--SSEECCTTIIOONN]]
  229.                ******
  230.                [[FFOORRMMSS--IIMMAAGGEE]]
  231.                ******
  232.                [[RRUULLEESS--SSEECCTTIIOONN]]
  233.           EEllmm generates form messages with the ``options''  section  filled
  234.           out,  but ignores it when receiving mail.  The filled out section
  235.           is:
  236.                WWIIDDTTHH==8800
  237.                TTYYPPEE==SSIIMMPPLLEE
  238.                OOUUTTPPUUTT==TTEEXXTT
  239.           The FORMS-IMAGE section is  that  described  above.   The  RULES-
  240.           SECTION  can  contain explicit rules about the possible values of
  241.           each field, but this is currently ignored by EEllmm, being a  ``SIM-
  242.           PLE'' forms mode mail system.
  243.  
  244.           Forms also have the header ``Content-Type: mailform'' to indicate
  245.           to the mail system (either EEllmm or AT&T Mail) that a form is being
  246.           sent.
  247.  
  248.           EEllmm  further indicates that a form has been received by having an
  249.           ``F'' as the status character in the header display section  (in-
  250.           stead of ``N'' for new, etc).
  251.  
  252.           CCoommppoossiinngg aanndd SSeennddiinngg aa FFoorrmm
  253.  
  254.           The  first  step to enable sending forms is to change the setting
  255.           of the variable _f_o_r_m_s in your _._e_l_m_/_e_l_m_r_c file to ``ON''.  E.g.:
  256.                forms = ON
  257.           The next step is to send the message to  someone  using  the  `m'
  258.           (_m_a_i_l) command.  This then will drop you into an editor.  Type in
  259.  
  260.  
  261.           May 1, 1990                   Page 3
  262.  
  263.  
  264.  
  265.  
  266.  
  267.           Forms Mode Guide                                      Version 2.3
  268.  
  269.  
  270.  
  271.           the form as indicated above, with  appropriate  colons  and  com-
  272.           ments, and end the entry by leaving the editor.
  273.  
  274.           The prompt is now;
  275.          CChhoooossee:: EE))ddiitt mmssgg,, eeddiitt HH))eeaaddeerrss,, MM))aakkee ffoorrmm,, SS))eenndd oorr FF))oorrggeett :: @@
  276.           so  we  choose  `m'  --  _M_a_k_e _f_o_r_m.  The program then will either
  277.           rewrite the prompt without the M)ake form option, indicating that
  278.           the form has been accepted, or will indicate the problem and give
  279.           you a chance to correct it.
  280.  
  281.           Once it has been accepted, simple use the `s' -- _s_e_n_d  _m_e_s_s_a_g_e  -
  282.           command and it's off!
  283.  
  284.           _N_o_t_e _t_h_a_t _y_o_u _c_a_n_n_o_t _r_e_p_l_y _t_o _a _m_e_s_s_a_g_e _w_i_t_h _a _F_o_r_m_.
  285.  
  286.           RReeppllyyiinngg ttoo aa FFoorrmm
  287.  
  288.           Let's  reply  to  the  form message we generated now.  The header
  289.           page of the EEllmm mail system will indicate that the message  is  a
  290.           form by having an `F' next to it.  So we use `r' to reply and the
  291.           screen is immediately cleared and we're prompted, field by field,
  292.           for  the data requested.  Each field has underscores in the input
  293.           area to indicate the size field that is expected.
  294.  
  295.           After answering all the questions we'll have a screen that  looks
  296.           like;
  297.  
  298.  
  299.  
  300.                                 Defect Reporting Form
  301.  
  302.            Program:  TThhee EEllmm MMaaiill SSyysstteemm___________
  303.            Version:  11..55___________________________
  304.            Operating System:  HHPP--UUXX_________________________
  305.            Version:  55..114411 CC_______________________
  306.  
  307.            (Valid Defect Types are: user-error, doc-error, fatal, other)
  308.            Defect Type:  ffaattaall_____________________________________________
  309.  
  310.            Date Found:  1100//99//8866_______________________
  311.            By Whom:  DDaavvee TTaayylloorr___________________
  312.            Date Reported:  1100//99//8866_______________________
  313.            Phone:  ((441155)) 885577--66888877________________
  314.  
  315.            Description
  316.            (Enter as many lines as needed, ending with a `.' by itself on a line)
  317.              WWhheenn rruunnnniinngg iitt oonn aa CCPPMM ssyysstteemm II ccaannnnoott ccoommppiillee ssuucccceessssffuullllyy..
  318.              ..
  319.            Thank you for filling in this form.
  320.                Choose: E)dit form, edit H)eaders, S)end or F)orget : @
  321.           __________________________________________________________________
  322.  
  323.           Quite  simple.   Notice,  however, that the order of prompting is
  324.           left to right on each line, so the fields that on  the  form  are
  325.  
  326.  
  327.           May 1, 1990                   Page 4
  328.  
  329.  
  330.  
  331.  
  332.  
  333.           Forms Mode Guide                                      Version 2.3
  334.  
  335.  
  336.  
  337.           placed  in  what  seems  like  a  logical place, ``By Whom:'' and
  338.           ``Phone:'' turn out to be confusing when filling  in  the  actual
  339.           form  since it isn't clear what ``Phone:'' is being asked for be-
  340.           cause of the intervention of the ``Date Reported:'' field.
  341.  
  342.           The message that will actually be sent out from  this  will  have
  343.           the fields in a more acceptable format;
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.           May 1, 1990                   Page 5
  394.  
  395.  
  396.  
  397.  
  398.  
  399.           Forms Mode Guide                                      Version 2.3
  400.  
  401.  
  402.  
  403.            WWIIDDTTHH==8800
  404.            TTYYPPEE==SSIIMMPPLLEE
  405.            OOUUTTPPUUTT==TTEEXXTT
  406.                                 DDeeffeecctt RReeppoorrttiinngg FFoorrmm
  407.            ******
  408.  
  409.            PPrrooggrraamm:: TThhee EEllmm MMaaiill SSyysstteemm                     VVeerrssiioonn:: 11..55
  410.            OOppeerraattiinngg SSyysstteemm:: HHPP--UUXX                          VVeerrssiioonn:: 55..114411 CC
  411.  
  412.            ((VVaalliidd DDeeffeecctt TTyyppeess aarree:: uusseerr--eerrrroorr,, ddoocc--eerrrroorr,, ffaattaall,, ootthheerr))
  413.            DDeeffeecctt TTyyppee:: ffaattaall
  414.  
  415.            DDaattee FFoouunndd:: 1100//99//8866                      BByy WWhhoomm:: DDaavvee TTaayylloorr
  416.            DDaattee RReeppoorrtteedd:: 1100//99//8866                   PPhhoonnee:: ((441155)) 885577--66888877
  417.  
  418.            DDeessccrriippttiioonn
  419.  
  420.               WWhheenn  rruunnnniinngg iitt oonn aa CCPPMM ssyysstteemm II ccaannnnoott ccoommppiillee ssuucccceessssffuull--
  421.           llyy..
  422.  
  423.            TThhaannkk yyoouu ffoorr ffiilllliinngg iinn tthhiiss ffoorrmm..
  424.            ******
  425.           ____________________________________________________________________________________________________________________________________
  426.  
  427.  
  428.           CCoommmmeennttss oonn FFoorrmmss MMooddee
  429.  
  430.           As was said at the beginning, this way  of  sending  about  forms
  431.           could  prove  to  be very helpful and useful in a variety of con-
  432.           texts.  On the other hand, until a more sophisticated forms  lan-
  433.           guage  is used for the forms, this should be sufficient to embody
  434.           the power of the idea.
  435.  
  436.           I welcome any comments and thoughts on this system and also  wel-
  437.           come possible enhancements.
  438.  
  439.           I  also gratefully thank Dale DeJager of AT&T Information Systems
  440.           for sending me more information on AT&T Mail than I could  possi-
  441.           bly digest in any finite amount of time.
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.           May 1, 1990                   Page 6
  460.  
  461.  
  462.  
  463.