| 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
|
|
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
|