SCTreelistField Class Reference
| Inherits from | SCChecklistField : SCField : NSObject |
| Declared in | SCTreelistField.h |
Overview
The SCTreelistField object identifies a Sitecore system item’s treelist field.
The field with [SCField type] is equal to “Treelist” has the SCTreelistField type.
It provides a getter for the items in treelist and an asynchronous loader for reading items of treelist.
Tasks
-
– readFieldValueOperationUsed for loading the array of items in treelist.
-
fieldValueThe value of the field. [SCTreelistField fieldValue] is NSArray object. It is nil by default, so use [SCTreelistField readFieldValueOperation] to load NSArray of items. SCTreelistField object does not own loaded items to avoid retain cycles.
property
Properties
fieldValue
The value of the field. [SCTreelistField fieldValue] is NSArray object. It is nil by default, so use [SCTreelistField readFieldValueOperation] to load NSArray of items. SCTreelistField object does not own loaded items to avoid retain cycles.
@property (nonatomic, readonly) id fieldValueDiscussion
The value of the field. [SCTreelistField fieldValue] is NSArray object. It is nil by default, so use [SCTreelistField readFieldValueOperation] to load NSArray of items. SCTreelistField object does not own loaded items to avoid retain cycles.
Declared In
SCTreelistField.hInstance Methods
readFieldValueOperation
Used for loading the array of items in treelist.
- (SCAsyncOp)readFieldValueOperationReturn Value
SCAsyncOp block. Call it to get the expected result. The SCAsyncOpResult handler’s result is NSArray of SCItems objects or nil if error happens.
Discussion
Used for loading the array of items in treelist.
Declared In
SCTreelistField.h