Accounting API Developer's Reference

c2g.SelectionService

global with sharing class SelectionService

Contains data types used as part of the selection of data for Action Views.

c2g.SelectionService.Result

global class Result

Result contains a 'table', as well as the query string run to generate the table. The table - One header holding field IDs, and a list of rows where each row is a list of values. The values in the rows are guaranteed to be in the same order as the field IDs in the header. E.g. If Header[0] = PersonName and Header[0] = PersonAge then Row[0].Value[0] = John and Row[1].Value[0] = Jane while Row[0].Value[1] = 20 and Row[1].Value[1] = 40

Properties

Name Type Description
Header c2g.SelectionService.Header The table header. Read Only.
Rows List<c2g.SelectionService.Row> The List of table rows. Read Only.
QueryString String QueryString used to get the table data.

c2g.SelectionService.Header

global class Header

Holds a list of IDs of DataviewField__c objects.

Properties

Name Type Description
Fields List<ID> List of DataviewFieldIds, i.e. the 'table header'. Read Only.

c2g.SelectionService.Row

global class Row

Holds a list of values.

Properties

Name Type Description
Values List<Object> List of values, i.e. a 'table row'. Read Only.