GetFieldOptions Method

This method is used to get all available options for a specified field that can be assigned one of a predefined set of options. Such a field might be a list type field that would normally appear on a web application form as a Drop Down List. The GetFields Method can be used to determine all the available fields (and their IDs).

Arguments
  1. string Reference
  2. DataSet RequestDataSet

Reference should contain the Reference returned by the Login Method and is used to identify the user of the Web Service.

RequestDataSet should contain a Parameters DataTable with one row only and the following columns:

Response
  1. DataSet ResponseDataSet

ResponseDataSet will contain a Status DataTable with a single row and the following columns:

and a Data DataTable with zero or more rows and the following columns:

Example

The following Web Service call:

GetFieldOptions("18,23", RequestDataSet)

where RequestDataSet contains the following Parameters DataTable:

Field ID
54

could produce a DataSet with the following Status DataTable:

Code Text
0 OK

and the following Data DataTable:

ID Name
1 Mr
2 Mrs
3 Miss
4 Ms
5 Dr