Mobile Sublist APIs
The following APIs enable you to work with data in sublists:
sum(sublistLocation, fieldname, filterCondition)
Use this method to calculate the total value of data in a sublist column on a mobile page.
Parameters
-
sublistLocation {string} [optional] – Name of the mobile page that contains the sublist
-
fieldname {string} [optional] – Name of the field or page element used in the column that contains the numeric values you want to compute
-
filterCondition {string} [optional] – An expression that evaluates to true or false
Returns
-
Number
count(sublistLocation, filterCondition, uniqueFieldName)
Returns the total number of rows or lines in a sublist on a mobile page.
Parameters
-
sublistLocation {string} [optional] -Name of the mobile page that contains the sublist
-
filterCondition {string} [optional] -An expression that evaluates to true or false
-
uniqueFieldName {string} [optional] -Name of the field or page element used in the column that you want to count. Only rows or lines that contain data in the field are counted
Returns
-
Number