CloneForNew method: RCServiceConfig class

Syntax

CloneForNew(&RCsrvc_cnfg)

Description

Use the CloneForNew method to create an identical copy of the related content service configuration executing this method to an already instantiated PTCS_SRVCONFIG:RCServiceConfig object but without copying the menu layout. Use this method when the menu layout need not be copied—for example, with the service configuration for pivot grids.

Parameters

Parameter Description

&RCsrvc_cnfg

Specifies an already instantiated PTCS_SRVCONFIG:RCServiceConfig object that the configuration is copied to.

Returns

A boolean value: True if the copy is successful, False otherwise.

Example

import PTCS_SERVICE:RCService;
import PTCS_SRVCONFIG:RCServiceConfig;

Component PTCS_SERVICE:RCService &rcService;
Component PTCS_SRVCONFIG:RCServiceConfig &rcServConfig, &rcServConfigClone;

&rcServConfig = &rcService.AddNewService("MY_SERVICE", 0);
&bRet = &rcServConfig.CloneForNew(&rcServConfigClone);
If (&rcServConfigClone <> Null) Then
   /* do some processing */
   &bRet = &rcServConfigClone.Save();
End-If;