Examples
The following examples are designed to help you understand and implement external page components:
- Display logs
- Use the SearchRequest method
- Load an entity
- Show Content Hub icons
- Use an external component action inside a search
- Use notifier events
- Use a search event
- Use a selection event
- Use subscribing events
For all examples, types are imported from the SDK:
The following table provides code examples for filtering:
- Filter: Code example
- Filter on one or more entity IDs:
- Get all entities from the specified definition:
- Filter on a string property: NoteAlso available: operator: FilterOperator.DoesNotEqual
- Filter on a Boolean property: NoteAlso available: operator: FilterOperator.DoesNotEqual (for example, to get all entities where the boolean is false or null (not set)).
- Filter on entities where the specified relation is not filled in (that is, it is missing).: NoteYou can also filter on entities where the relation is filled in using FilterOperator.Exists. Other fieldName options include "ancestors..somerelationname.ancestor_ids", "taxonomy_items.98.children", and "taxonomy_items.98.".
- Filter on entities that have a relation with any entity 1, 2, 3 (
FilterOperator.AnyOf)Filter on entities that have a relation with all entities 1, 2, 3 (FilterOperator.AllOf):
Note
To help you implement external page components, code samples are also available.
If you have suggestions for improving this article, let us know!