The GetList method retrieves a list of fields from the form in a table format.
int GetList (string tokenIn, string[ ] fields, string where, out string tokenOut, out Datatable table)
Send Params |
Return Params |
||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Additional examples of controls placed in a page called „Page 1”:
Some controls acts as containers so you can place more controls inside. The full name for a text box 'Text 1' placed in a Group or Container 'Group 1' situated in 'Page 1' will be 'Page_1_Container_1_Text_1'. Note: When using the fields parameter, the form instance ID will always be included in the resulting table.
Sample where clause:
At the time of writing, this is not fully implemented so an empty string should be used. |
|
Sample Code
private void ButtonGetList_Click(object sender, EventArgs e)
{
PerfectForms.FirstTestService service;//declare
service = new SDKTest1.PerfectForms.FirstTestService();//instantiate
string tokenIn = "jAgAgEgAggAAAgwA";
string[] fields = new string[0];
string where = string.Empty;
string tokenOut;
DataTable table;
int errorCode;
errorCode = service.GetList(tokenIn, fields, where, out tokenOut, out table);
if (errorCode == 0)
{
MessageBox.Show("I retrieved a list of " + table.Rows.Count + " instances!");
}
else
MessageBox.Show("Error " + errorCode.ToString() + " encountered!");
}
}
Updated: 06/12/2011
Page url:
http://www.perfectforms.com/Documentation/manual/html/?getlist.htm
PerfectForms™ -- forms software, workflow software, and business process management