|
I did some more testing with the 'MOVE TO BASE AREA'. These are the
results.
I created an application called "VLR", within that an application area
called "VLR_HICK".
Application VLR OEG flag is set to 1
Base root directory = dka300:[vlr]
Site root directory = dka300:[vlr.site]
Area VLR_HICK Application = VLR
Area Code = HICK
AREA = VLR_HICK
I then went to CM and created an element with type FRM.
When I try the 'Move to base Area', it checks whether I can do this through
the OEG flag and then gives me the Argument form 'Select Live Location'.
Now, this form checks the cm$auth$locations form and the only thing I can
enter is 'vlr$site_lib_vlr_hick:sitehick.flb'
I cannot enter vlr$lib_vlr_hick:hick.flb.
The named data for the form cm$auth$locations contains
/rse_valid = cm$auth$locations with .area == #cm_language
and .type == #cm_type and .location = location
and .open == cm$_y
For the 'move to base area', shouldn't that be
/rse_valid = cm$auth$locations with .area == #cm_language
and .type == #cm_type and .base_location = location
and .open == cm$_y
(i.e. base_location instead of location)
Thanks,
Veerle
|
|
Hi Veerle,
There are a few remarks to be made.
1)
If the customer only uses one directory to store the final procedures (to be
used by a user) then the current directory structure is Ok. However, if the
customer wants a Base and SIte environment, you need to adjust your logicals,
create a few new directories, etc. E.g.:
eu$site_lib contains Site form library
eu$lib contains form library
eu$site_scp Site scripts
eu$scp scripts
etc.
2)
The logicals created during the creation of an application area are not
obligatory to be used. They merely serve as templates. You can still use your
own logicals as valid Live/Base locations.
> Also for the development area some logicals were defined and the
> develop.flb was created.
>
> The questions I have ;
>
> - how do you define additional directories / logicals for the
> application area ? e.g. for his data files directory or for
> the WPS-PLUS directory.
Directories needed for forms/procedures for the application itself can /should
be defined in CM$AUTH$LOCATIONS (options CM AM MAL). You can define the
logicals for the data and WPS-PLUS files directoruies as valid locations, but I
suggest you define them in an application specific startup procedure. E.g., in
CM$APP (options SM CSZ MA) you can define a specific 'Startup' procedure.
Naturaly you can still create a A1V30_SITE_START.COM calling your application
specific startup procedure.
> - how do you incorporate his existing form library in CM ?
> - this library contains around 80 forms !
After creating the application area (MDG_EUPEN) copy all your elements to the
appropriate directories in OA$SITE_DEV_REC_MDG_EUPEN:. You'll find �26
directories varying from FRM, DO, SCP, BLP, COM,etc. Copy the form library in
the [.FRM] directory. Then, from within ALL-IN-1, enter option CM AM RV and
specify the application area MDG_EUPEN to be received. All forms/procedures
will now be included in CM.
> - we tried creating a form and move it to the base area.
> This does not work.
The template logicals created refer to a specific directory. However, CM
doesn't automatically create Live/Base directories/formlibraries/helplibraries.
What I suggest you to do is to delete all entries for application area
MDG_EUPEN and create new entries with the existing eu$LIB, eu$scp locations.
The criteria is that:
1) logical exist
2) directory referred to by logical exist
3) form/help library entered exist
Have a look at the Live/Base location of the SHARE area to get an idea.
>When I try the 'Move to base Area', it checks whether I can do this through
>the OEG flag and then gives me the Argument form 'Select Live Location'.
>
>Now, this form checks the cm$auth$locations form and the only thing I can
>enter is 'vlr$site_lib_vlr_hick:sitehick.flb'
>I cannot enter vlr$lib_vlr_hick:hick.flb.
>
>The named data for the form cm$auth$locations contains
>
>/rse_valid = cm$auth$locations with .area == #cm_language
> and .type == #cm_type and .location = location
>and .open == cm$_y
>
>For the 'move to base area', shouldn't that be
>
>/rse_valid = cm$auth$locations with .area == #cm_language
> and .type == #cm_type and .base_location = location
> and .open == cm$_y
This is the correct behaviour. When moving an element to Base CM needs to know
the Live location. According to the Live location it figures out the Base
location.
Ciao,
Simon
|