|
wstring SrvView::ResetIteratorAsync |
( |
wstring |
wstrViewName, |
|
|
wstring |
wstrFilter, |
|
|
array |
vecFieldsToReturn, |
|
|
array |
vecFieldsToOrder, |
|
|
params |
pParams, |
|
|
int |
lifetimeSec |
|
) |
| |
Find srvview data by filter string.
Finds data records for srvview wstrViewName that satisfy conditions from filter string wstrFilter, and creates a server-side collection of found data records.
- Parameters:
-
wstrViewName | (wstring) name of srvview see List of supported srvviews. |
wstrFilter | (wstring) filter string, contains a condition over srvview attributes, see also Search filter syntax. |
vecFieldsToReturn | (array) array of srvview attribute names to return. |
vecFieldsToOrder | (array) array of containers each of them containing two attributes:
- "Name" (paramString) name of attribute used for sorting
- "Asc" (paramBool) ascending if true descending otherwise
|
pParams | (params) extra options. Cannot be NULL This parameter can contain additional options to configure query. Some options are specific to the wstrViewName and are part of it specification. And some options are common for all srvviews. List of common options:
- "TOP_N" (int) acquire only first N records
- "USE_DISTINCT" (boolean) force using DISTINCT in select clause
|
lifetimeSec | (int) max result-set lifetime in seconds |
- Returns:
- (wstring) strRequestId which is an identity of asynchronous operation, to get status use AsyncActionStateChecker.CheckActionState, lStateCode value 0 means OK and value (-1) means fail (to acquire extended error info see Asynchronous action error format), to get iterator call SrvView.ResetIteratorAsyncGetData, to cancel operation call SrvView.ResetIteratorAsyncCancel
- See also:
-
-
Sample. Enumerating users by using SrvView
|