SBM AppScript Reference → Programming SBM AppScript → Application Objects → Object Types → Folder
Folder objects provide a convenient interface for examining folder contents and adding or removing folder items. A Folder object describes a single folder and corresponds to a record in the TS_FOLDERS table. To examine the folder hierarchy or generate the full folder name, use inherited TreeItem methods. To generate a list of items in an folder, see FolderItemList.
AddItem(rec): Add an AppRecord item to this folder.
Input: rec (AppRecord object) – The item to add to the folder.
Return: (Long Integer) – Non-zero if the item is added successfully; zero if not.
Contains(tableId, recId): Find out whether the given item is in the current folder.
Input: tableId (Integer) – Table ID of the item to search for.
Input: recId (Integer) – TS_ID of the item to search for.
Return: (Long Integer) – Non-zero if this folder contains the item; zero if not.
DeleteItem(rec): Remove an AppRecord item from this folder. The item is not deleted from the system, just from the folder.
Input: rec (AppRecord) – The item to remove from this folder.
Return: (Long Integer) – Non-zero if removed successfully; zero if not.
Copyright © 2007–2018 Serena Software, Inc., a Micro Focus company. All rights reserved.