RCMapFields Class Methods

In this section, the RCMapFields class methods are presented in alphabetical order.

Syntax

CopyFrom(&SrcMapField)

Description

Use the CopyFrom method to copy the attributes of the specified PTCS_SRVCONFIG:RCMapFields object into the object invoking this method.

Parameters

Field or Control

Definition

&SrcMapField

Specifies the source to copy from as an already instantiated PTCS_SRVCONFIG:RCMapFields object.

Returns

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

Example

import PTCS_SERVICE:RCService;
import PTCS_SRVCONFIG:RCServiceConfig;
import PTCS_SRVCONFIG:RCMapFields;

Component PTCS_SERVICE:RCService &rcService;

Local PTCS_SRVCONFIG:RCServiceConfig &rcServConfigSrc = &rcService.AddNewService("APPTEST_UTIL_SERVID", 0);
Local PTCS_SRVCONFIG:RCMapFields &rclMapFldsSrc = &rcServConfigSrc.AppendMapField("0.OPRID_VW2.OPRID.2");

Local PTCS_SRVCONFIG:RCServiceConfig &rcServConfigDst = &rcService.AddNewService("APPTEST_UTIL_SERVID", 0);
Local PTCS_SRVCONFIG:RCMapFields &rclMapFldsDst = &rcServConfigDst.AppendMapField("0.OPRID_VW4.CUSTID.4");
Local boolean &bRetx = &rclMapFldsDst.CopyFrom(&rclMapFldsSrc);
Local boolean &bRets = &rclMapFldsDst.Save();

Syntax

Save()

Description

Use the Save method to save the PTCS_SRVCONFIG:RCMapFields object to the database. Invoke the Save method after updating properties for the mapping configuration or after invoking the CopyFrom method.

Parameters

None.

Returns

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

Example

import PTCS_SERVICE:RCService;
import PTCS_SRVCONFIG:RCServiceConfig;
import PTCS_SRVCONFIG:RCMapFields;

Component PTCS_SERVICE:RCService &rcService;
Component PTCS_SRVCONFIG:RCServiceConfig &rcServConfig;
Component PTCS_SRVCONFIG:RCMapFields &rcMapFields;

&rcServConfig = &rcService.AddNewService("APPTEST_UTIL_SERVID", 0);
Local PTCS_SRVCONFIG:RCMapFields &rcMapFlds = &rcServConfig.AppendMapField("0.OPRID_VW2.OPRID.2");
Local boolean &bRet = &rcServConfig.Save();
&rcMapFlds.ParameterName = "PTCS_MENUFIELD";
&rcMapFlds.PnlName = "QE_RI_GROUPLET";
Local boolean &bRet2 = &rcMapFlds.Save();