IElementsQueryFactory
The attribute itself contains no view data, it’s just a sequence of id’s.
export interface IElementsQueryFactory
Remarks
To get data that is useful to users, we need to represent these id’s with specific values. For this purpose, we pair the attribute with it’s display form (specific representation of attribute values). An attribute can have multiple display forms.
Methods
Method | Description |
|---|---|
Query attribute elements represented by concrete display form | |
Query attribute elements used by provided filter |
Method details
IElementsQueryFactory.forDisplayForm()method
Query attribute elements represented by concrete display form
forDisplayForm(ref: ObjRef): IElementsQuery;
Parameters
Parameter | Type | Description |
|---|---|---|
ref | display form ref |
Returns
instance that can be used to query attribute elements
IElementsQueryFactory.forFilter()method
Query attribute elements used by provided filter
forFilter(filter: FilterWithResolvableElements, dateFilterDisplayForm?: ObjRef): IFilterElementsQuery;
Parameters
Parameter | Type | Description |
|---|---|---|
filter | resolvable filter | |
dateFilterDisplayForm | (Optional) display form of resolvable filter if it is date filter |
Returns
instance that can be used to query attribute elements