Interface ICrossReferencedRecordsSelectionEdit
Subclass of IReferencedRecordsSelectionEdit which applies only to Cross-Reference fields, adding an override to the Add() method which allows the target content's Level Id to be specified.
Inherited Members
Namespace: Estrelica.Archer.Content
Assembly: Estrelica.Interfaces.dll
Syntax
[StayPublic]
[DoNotObfuscateType]
public interface ICrossReferencedRecordsSelectionEdit : IReferencedRecordsSelectionEdit, IReferencedRecordsSelection, IObjectValue, IEditableField, IClearable, ISubEditableField, IEditable
Methods
Add(int, int)
Adds a new referenced record to the selections currently in the cross-reference field, via the record's contentId and levelId. Cross-reference fields must specify the levelId of each contentId during the API record save call, but if the levelId is not known you can just use the Add(contentId) method (or pass levelId: 0 here) and Estrelica.Core will look it up for you before saving. However, if you do know the levelId it is better to provide it here since that will avoid an extra API call to resolve it later.
Declaration
bool Add(int contentId, int levelId)
Parameters
int
contentId
The content Id of the referenced record to be added |
int
levelId
The level Id of the referenced record to be added. Pass 0 if unsure and Estrelica.Core will look it up via API before saving the record. |
Returns
bool
True if successful, false if not |