[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

1753.0. "Remove Base Elements" by ZHSS05::ERNI (Ursula Erni) Wed Nov 11 1992 10:41

Hi

Is there a option: REMOVE FROM BASE ?

There is the possibility to move elements to base. This function is working 
perfectly. 

But now I just wanted to delete an application area. Then i got the message: 
"Site elements exist - cannot delete area". 

This message is correct, because i still have an entry in CM$SITELOG and in 
CM$SDC. 

I know i can delete these entries by hand, but I prefere to do this with an 
ALLIN1 option.

Thanks for your help.

regards, Ursi Erni
T.RTitleUserPersonal
Name
DateLines
1753.1Move the deleted site element to base.FAILTE::EWE::LAAHSAn accumulation of CeltsWed Nov 11 1992 12:5510
Hi,

When using CM to manipulate a base area the base area is trated as a replica 
of the site area. Therefore it is not possible to move things into or out of 
the base area without having them pass through teh site area.

SO, to remove an element from the base area you have to move the deleted site 
element to the base area. Not intuitive, I know.

Kevin
1753.2No options, but a workaroundCESARE::EIJSAll in 1 PieceWed Nov 11 1992 13:1965
    
    Hi Ursula,
    
    There is currently no option to delete Base elements. There is
    currently no options to mark them as 'deleted' (as can be done for
    CM$SITELOG). The way to mark a Base element as deleted is:
    
    	CM ABE
    	SEL <element>
    	COpy to development
    	CM
    	SEL <element>
    	Delete element (no purge)
    	MBA (Move to base)
    
    However, this doesn't delete the record from CM$SDC, and doesn't
    physically delete the file either.
    
    Taking this scenario, and the following modification to CM$SAM:
    
    ;;~~DELETE_AREA_REC~~;;
    
    .IF CM$SITELOG:LANGUAGE.ELEMENT[$CM_AREA] NES "" THEN
      GET OA$STATUS = 0\\GET OA$DISPLAY = CM$_AM_AREA_CNTSITE
     ELSE GET OA$STATUS = 1\
    IFSTATUS\
    .IF CM$SDC:LANGUAGE.ELEMENT[$CM_AREA] NES "" THEN
      GET OA$STATUS = 0\\GET OA$DISPLAY = CM$_AM_AREA_CNTBASE
     ELSE GET OA$STATUS = 1\
    IFSTATUS\
    
    Change to:
    
    ;;~~DELETE_AREA_REC~~;;
    
    .IF CM$SITELOG:LANGUAGE.ELEMENT[$CM_AREA] NES "" THEN
      GET OA$STATUS = 0\\GET OA$DISPLAY = CM$_AM_AREA_CNTSITE
     ELSE GET OA$STATUS = 1\
    IFSTATUS\
    !X+
    !X Delete the elements from CM$SDC which have a 'Deleted' status
    !X
    FOR CM$SDC:LANGUAGE WITH .LANGUAGE == $CM_AREA DO
      GET #CM_KEY_TMP = .ELEMENT:39 .TYPE:5 .LANGUAGE \\
      .IF .DELETED EQS CM$_Y THEN WRITE DELETE CM$SDC %KEY = #CM_KEY_TMP \
    !X-
    .IF CM$SDC:LANGUAGE.ELEMENT[$CM_AREA] NES "" THEN
      GET OA$STATUS = 0\\GET OA$DISPLAY = CM$_AM_AREA_CNTBASE
     ELSE GET OA$STATUS = 1\
    IFSTATUS\
    
    ...you will be able to use the normal CM menu options to do the delete.
    However, the file won't physically be deleted, as CM only deletes the
    Development and Receive area when deleting application area. The same
    reason it currently doesn't create real Live/Base directories, it
    doesn't delete them either.
    
    Now it's up to you to decide which option to take.
    
    I hope of help.
    
    Ciao,
    
    	Simon
    
1753.3Clash!CESARE::EIJSAll in 1 PieceWed Nov 11 1992 13:206
    
    Oeps,
    
    Kevin types faster than I do... ;-)
    
    	Simon
1753.4My Area is now deletedZHSS05::ERNIUrsula ErniWed Nov 11 1992 17:2615
Tanks a lot both of you

I would never have gotten this idea to copy a deleted site element to base...

There is just a little correction in named data of CM$SAM:

The field-name of cm$sdc is not .TYPE but .ELEMENT_TYPE. I changed that 
particular line to:

 GET #CM_KEY_TMP = .ELEMENT:39 .ELEMENT_TYPE:5 .LANGUAGE \\
                                ^^^^^^^^

C-ya

Ursi