[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

3146.0. "EM Create Template?" by DYPSS1::SMITH (TBDBITL Alumnus) Fri Aug 13 1993 19:23

    My customer would like to be able to use a template document when
    creating a mail message much like can be done when creating a word
    processing document.
    
    Sounds reasonable to me.
    
    Can it be done?
    
    BS
T.RTitleUserPersonal
Name
DateLines
3146.1I'm sure someone must have done it.IOSG::CARLINDick Carlin IOSG, Reading, EnglandFri Aug 13 1993 20:235
    The quick answer is that the API exists (MAIL CREATE /TEMPLATE) but the
    UI would need to be modified to make use of it. How much customisation
    are you willing to do?
    
    Dick
3146.2A lot!DYPSS6::SMITHTBDBITL AlumnusTue Aug 17 1993 14:2817
    Dick,
    
    I don't know how I overlooked that option in the manual.  What I wanted
    to do was to use a different template file based on what the user
    enters into a classification field I have added to the EMHEAD form.  Of
    course by that time, the "MAIL CREATE" function has already begun.  To
    get it to work, I have added "/NOEDIT" to the "MAIL CREATE".  Then, I
    determine the RMS filename of the template file based on the
    classification entered.  Next, I copy the template file in place of the
    file just created.  Then put the user in the editor.
    
    Since the EMHEAD form is accessed as part of the "MAIL CREATE"
    function, I can't find a way to use the "/TEMPLATE" for my purpose. 
    What I have done seems to be working fine though.
    
    Thanks,
    BS
3146.3Looks fineIOSG::CARLINDick Carlin IOSG, Reading, EnglandTue Aug 17 1993 17:137
    You are right. CREATE /TEMPLATE doesn't help much. What you are doing
    sounds fine. Just one thing though, when you say "put the user in the
    editor" are you following the same MAIL EDIT path that the E option in
    EM follows? This way you will correctly invoke reservation and protect
    the document during editing if the main drawer is shared.
    
    Dick
3146.4YesDYPSS6::SMITHTBDBITL AlumnusFri Aug 20 1993 14:065
    Dick,
    
    Yes.  Thanks.
    
    Brad