The string concatenation SQL file
IBM OpenPages® includes a template SQL file (field_concat_template.sql). Use a copy of this file to specify the parameters to submit with the field_concat command.
Parameters
| Parameter | Description |
|---|---|
l_actor_name
|
The user name making the change. The user must log in as an administrator. The script puts the system into System Administration Mode (SAM) prior to concatenating any fields. |
l_field_group_name_src<#>
|
The name of the field group containing the simple string field. Where:
|
l_property_name_src<#>
|
The name of the source simple string field. Where:
|
l_separator
|
The separator to use between concatenated fields. The default separator is null. If you concatenate only one source into the destination, the separator character is not used.
|
l_object_type_name
|
The name of the object type containing the destination long text field. The object type must be the same for the destination as it is for the source. |
l_field_group_name
|
The name of the field group containing the destination long text field.
|
l_property_name
|
The name of the destination field.
|
l_property_desc
|
The description of the destination long text field. |
l_large_text_length
|
The length property of the destination field.
The default is If
the destination does not exist, this parameter must be specified,
as either |
l_is_done_by_vendor
|
Set to true to add the concatenation to audit
trail. The default is Valid
values are:
|
l_remote_address
|
The remote address to perform the audit trail.
The default is null. Any value is ignored if |
l_remote_host
|
The remote host to perform the audit trail.
The default is null. Any value is ignored if |
l_preview_only
|
Set to true to only print the changes that
will be made by script. No changes are actually made. The default
is Valid values are:
Tip: Run the script in preview mode (a setting
in the field_concat_template.sql file) to check
the results before doing the concatenation.
|
l_override_objtp_logic
|
Set to true to override any logic applied
to the object types, such as their relationships. The default is Valid
values are:
If For example,
the following scenario will fail unless this parameter is set to
|
Sample
declare
l_actor_name ACTORINFO.NAME%type := 'OPAdmin';
l_field_group_name_src01 BUNDLEDEFS.NAME%type := 'QA10_SS_1';
l_property_name_src01 PROPERTYDEFS.NAME%type := 'QA10_Simple2';
l_field_group_name_src02 BUNDLEDEFS.NAME%type := 'QA10_LargeText';
l_property_name_src02 PROPERTYDEFS.NAME%type := 'QA10_S3';
l_field_group_name_src03 BUNDLEDEFS.NAME%type := 'Core Attributes';
l_property_name_src03 PROPERTYDEFS.NAME%type := 'Resource Description';
l_field_group_name_src04 BUNDLEDEFS.NAME%type := 'MG_7';
l_property_name_src04 PROPERTYDEFS.NAME%type := 'MG_S7';
l_field_group_name_src05 BUNDLEDEFS.NAME%type := 'MG_4';
l_property_name_src05 PROPERTYDEFS.NAME%type := 'MG_S4';
l_field_group_name_src06 BUNDLEDEFS.NAME%type := 'MG_5';
l_property_name_src06 PROPERTYDEFS.NAME%type := 'MG_S5';
l_field_group_name_src07 BUNDLEDEFS.NAME%type := 'MG_6';
l_property_name_src07 PROPERTYDEFS.NAME%type := 'MG_S6';
l_field_group_name_src08 BUNDLEDEFS.NAME%type := 'MG_3';
l_property_name_src08 PROPERTYDEFS.NAME%type := 'MG_S3';
l_separator OP_GLOBALS.DB_Max_String_T := ',';
l_object_type_name ASSETTYPES.NAME%type := 'SOXBusEntity';
l_field_group_name BUNDLEDEFS.NAME%type := 'QA10_LargeText';
l_property_name PROPERTYDEFS.NAME%type := 'TEST101';
l_property_desc PROPERTYDEFS.DESCRIPTION%type := 'MGMGMGMGDescription';
l_large_text_length PROPERTYDEFS.DATA_LENGTH%type := OP_OBJ_MODEL_MGR.g_dl_longtext_medium;
l_is_done_by_vendor OP_Globals.Flag_String_T := OP_Globals.sc_False;
l_remote_address i18n_audit_trail.remote_address%type := '';
l_remote_host i18n_audit_trail.remote_host%type := '';
l_preview_only OP_Globals.Flag_String_T := OP_Globals.sc_False;
l_override_objtp_logic OP_Globals.Flag_String_T := OP_Globals.sc_False;