QueryOrderBy Property

The value used to order entries when querying a service.

Syntax

ANSI (Cross Platform)
char* GetQueryOrderBy();
int SetQueryOrderBy(const char* lpszQueryOrderBy); Unicode (Windows) LPWSTR GetQueryOrderBy();
INT SetQueryOrderBy(LPCWSTR lpszQueryOrderBy);
@property (nonatomic,readwrite,assign,getter=queryOrderBy,setter=setQueryOrderBy:) NSString* queryOrderBy;
- (NSString*)queryOrderBy;
- (void)setQueryOrderBy:(NSString*)newQueryOrderBy;
#define PID_ODATA_QUERYORDERBY 79

IPWORKS_EXTERNAL void* IPWORKS_CALL IPWorks_OData_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_OData_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

""

Remarks

This property allows you to specify a value by which the returned entries will be order after a call to QueryService.

Note: You can specify the order by which the entries are sorted (either ascending or descending) by appending " asc" or " desc" (respectively) to your OrderBy value. For example, if you want to sort the entries by 'Rating' in descending order you would set QueryOrderBy to "Rating desc". If a specific order ('asc' or 'desc') is not specified, the entries will be returned in ascending order.

This property is not available at design time.

Data Type

String

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 C++ Edition - Version 20.0 [Build 8307]