[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

3518.0. "Two drawers - ONE file ???" by TAV02::CHAIM (Semper ubi Sub ubi .....) Wed Nov 10 1993 09:05

Is there a way to have the SAME document filed in two different drawers? 
(i.e. both drawer entries point to the SAME VMS file).

Thanks,

Cb.

T.RTitleUserPersonal
Name
DateLines
3518.1IOSG::CARLINDick Carlin IOSG, Reading, EnglandWed Nov 10 1993 10:0214
    Well, since you can do a CAB CREATE and point the filename field at any
    file, this is possible to do. However the drawer philosophy is based on
    files being in the .DOCn directories of the particular drawer, and
    cross-drawer cross-filing is not allowed by the file cabinet functions.
    
    If you did force a cross-drawer cross-file by playing with the filename
    field then you would have problems with attempts to simultaneously edit
    etc.
    
    Why do you need to do it?
    
    Perhaps CDA live links would help you?
    
    Dick
3518.2IOSG::MAURICEDifferently hirsuteWed Nov 10 1993 10:1125
    Hi,
    
    Yes you can do this. The CABINET CREATE function has a filename
    parameter so you can create a second reference to the same file in
    another drawer. BUT here's a few catches:
    
    1. If you deleted the document from one drawer the underlying file
       would be deleted. The second reference would still remain pointing
       to a non-existent file, until either the user or the FCVR cleared it
       out. You could overcome this by having the second entry with the 
       DELETE flag set to "N".
    
    2. You have to watch the case where the document is being edited. The
       reservation mechanism would be fooled since if the first was being
       edited, the second wouldn't know. If this is a possibility you
       might need to have a special FORMAT entry for these documents, where
       an edit causes a script to run to check that the other reference is
       not being edited, and possibly for the READ & PRINT actions as well.
    
    When you think about it for READ only access, this is exactly how shared
    mail messages are stored!
    
    Cheers
    
    Stuart