GetFolder method: RCMenuLayout class
Syntax
GetFolder(nItem)
Description
Use the GetFolder method to instantiate a PTCS_MENULAYOUT:RCMenuFolder object for the specified menu folder.
Note:
Folders cannot be created for the related content menu.
Parameters
| Parameter | Description |
|---|---|
|
nItem |
Specifies the menu folder as a number 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.GetFolder(1);
Related Topics