AppendMapField method: RCServiceConfig class
Syntax
AppendMapField(pg_rec_fld_ID)
Description
Use the AppendMapField method to instantiate a PTCS_SRVCONFIG:RCMapFields object. This method associates the page record field passed in as the pg_rec_fld_ID parameter to a map parameter.
Parameters
| Parameter | Description |
|---|---|
|
pg_rec_fld_ID |
Specifies a string value representing the page record field’s ID in the following format:
The occurs level, record name, field name, and field ID can be obtained from the Order tab of the page definition in Application Designer. For example:
|
Returns
A PTCS_SRVCONFIG:RCMapFields object.
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("MY_SERVICE", 0);
&rcMapFields = &rcServConfig.AppendMapField("0.QE_BOOK.QE_BOOK_NAME.2");
Local boolean &bRet = &rcServConfig.Save();
If (&rcMapFields <> Null) Then
/* do some processing */
End-If;
Related Topics