AddFolder method: RCMenuLayout class

Syntax

AddFolder(folder_lbl, folder_seqnum)

Description

Use the AddFolder method to instantiate a PTCS_MENULAYOUT:RCMenuFolder object to add a new menu folder to the menu layout.

Note:

Folders cannot be created for the related content menu.

Parameters

Parameter Description

folder_lbl

Specifies the label for the folder as a string value.

folder_seqnum

Specifies the sequence number for the folder as an integer value.

Returns

A PTCS_MENULAYOUT:RCMenuFolder object.

Example

import PTCS_SERVICE:RCService;
import PTCS_SRVCONFIG:RCServiceConfig;
import PTCS_MENULAYOUT:RCMenuLayout;
import PTCS_MENULAYOUT:RCMenuFolder;

Component PTCS_SERVICE:RCService &rcService;
Component PTCS_SRVCONFIG:RCServiceConfig &rcServConfig;
Component PTCS_MENULAYOUT:RCMenuLayout &rcMenuLayout;

&rcServConfig = &rcService.AddNewService("MY_SERVICE", 0);
&rcMenuLayout = &rcServConfig.AddPageFieldMenu("QE_BOOK.2", "0.QE_BOOK.QE_BOOK_NAME.2");
Local PTCS_MENULAYOUT:RCMenuFolder &lclMenuFolder = &rcMenuLayout.AddFolder("CRM", 2);
Local boolean &bRet = &rcMenuLayout.Save();