- API
- Work with apps
- App item search object
- Getting started [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
- Manage types
- Global context and isolation
- Manage apps
- Batch actions with app items
- Manage external services
- Scripts in widgets
- Web components
- Access permissions
- Getting started with processes
- Getting started with signatures
- Getting started with file previews
- Getting started with the organizational chart
- Getting started with users and groups
-
Getting started with the
Table data type -
Getting started with the
Category data type - Dynamic event type calculation
- Typical use cases
-
API
- Object types
- Data types
- Global constants
-
Work with apps
- ApplicationBatchDeleteBuilder
- ApplicationBatchSaveBuilder
- ApplicationBatchSaver
- ApplicationBatchUpdateBuilder
- ApplicationBatchUpdater
- ApplicationBatcher
- ApplicationFieldOperand
- ApplicationFieldProjectionCapable
- ApplicationSearch
- ApplicationSearchWithProjection
- ApplicationTypeFieldOperand
- BaseFieldOperand
- BaseGlobalFilters
- ComparableFieldOperand
- ContextOperand
- DirectoriesSearch
- DocflowSettings
- FieldArrayOperand
- FieldOperand
- FilesSearch
- FolderSettings
- GlobalFilters
- GlobalFiltersWithWhere
- LineApplicationFieldOperand
- MailMessageSearch
- MoneyFieldOperand
- NomenclatureRegistrationSettings
- OrganisationStructureSearch
- PhoneFieldOperand
- ProcessInstanceSearch
- ProcessInstanceTaskSearch
- RefItemFieldOperand
- RegistrationSettings
- ReminderSearch
- ReplacementSearch
- ReportSearch
- ResetSettings
- Search
- SerialData
- SerialSettings
- SignatureSettings
- StatusHistorySearch
- StringFieldOperand
- TDocTemplate
- TFolder
- TNomenclature
- TNomenclatureDirectory
- TSettings
- UpdateOperations
- UserGroupSearch
- UserSearch
- FieldSelection
- TApplicationTypeFilter
- Web requests
- Access permissions
- Document flow
- Live Chats
- “Code” widget
- Signatures
- Business calendars
- Integration with IP telephony
- Integration with email marketing services
App item search object
Read more in Search.
Type parameters
T: ItemData
P: ItemData
Hierarchy
Methods
all
The method returns a search results page with the number of results equal to Search.size, beginning with Search.from.
By default, the number of search results is 10. If you need more items, use the Search.size method.
const searchResults = await Application.search() .where((f, g) => g.and ( f.__deletedAt. eq(null), f.service.link(Context.data.service) )) .all();Returns Promise<ApplicationItem<T, P>[]>
count
The method allows you to get the number of results in the search (it ignores Search.from and Search.size).
const searchResults = await Application.search() .where((f, g) => g.and ( f.__deletedAt.eq(null), f.service.link(Context.data.service) )) .count();Returns Promise<number>
fields
Method sets rules for partial loading of fields for the collection items.
The
__idfield is always returned in the result.Selecting fields for partial loading
Specify
truefor the fields which values you want to retrieve. Other fields will be excluded from the result.. fields({ name: true, email: true }) // Returns only the values of the `name` and `email` fields, as well as the `__id`Excluding fields from the result
Specify
falsefor the fields which values you do not need. Other fields will be included in the result..fields({ email: false, role: false }) // Returns all fields, except for `email` and `role`Combination of partial loading rules
You can use
trueandfalsetogether, buttruehas the priority..fields({ role: true, name: true, email: false }) // Returns only `role` and `name`, а as well as `__id`Type parameters
S: FieldSelection<T>
Parameters
selector: S
Returns ApplicationSearchWithProjection<T, P, S>
Defined search rules with field restrictions applied in the
first()иall()methods.first
The method returns the first item among the search results.
const searchResults = await Application.search() .where((f, g) => g.and ( f.__deletedAt.eq(null), f.service.link(Context.data.service) )) .first();Returns Promise<ApplicationItem<T, P> | undefined>
from
The Search.from method allows you to skip a specified number of results.
Parameters
n: number
Returns this
size
The method is used to limit the number of returned search results.
Parameters
n: number
Returns this
sort
The method is used to sort search results.
If the results need to be sorted by different parameters, you can call the method sequentially several times.
Parameters
field: keyof T
Optional ascending: undefined | false | true
Returns this
where
The Search.where method is used to set a filter for items in the collection.
Parameters
fc: ApplicationFilterClosure<T>
Returns this
The Search.where method is used to set a filter for items in the collection.
Parameters
eql: EqlQuery
Optional params: EqlParams
Returns this
Methods
Feedback sent successfully
Thank you for your input