The BrowseElementsService will find all the elements matching the given criteria.
- Parameters
-
handler | id<MSTRHandler> object to receive the blocks as an NSArray of Elemetns, or handle the error. |
async | Set to YES for asynchronous execution, NO for synchronous. |
attributeId | the object ID of the attribute (e.g. Category or Region) on the mobile server |
project | The ProjectInfo for the project to browse. One way it can be found is via MSIPreferencesStore -> MSIDevicePreferences -> WebServerList -> WebServerConfiguration -> ProjectList -> ProjectConfiguration -> ProjectInfo |
blockBegin | 1-based index of the items to return. This is useful for retrieving incrementally. |
blockCount | Number of items to return. Use -1 to retrieve all matching Elements. |
searchPattern | String that is matched against the displayName. A nil or empty string matches all. You can use SQL wildcards "%" and "_" to match a pattern. If a displayName contains the pattern, it matches. E.g. "Electronics" matches "tron" and it matches "E%" |
filterXML | To Be Documented. |
shortFilterXML | To Be Documented. |
totalSize | (read-only) The number of items that matched, even if blockCount was set to fewer. |
- Returns
- an array of Element objects.
- See also
- The PromptTypesSample project for an example of usage.