getFields method
- required int layerId,
The collection of Field objects for features created with this template.
Use this to determine how to display or convert attribute values into the proper data type and whether they are required by the template.
The fields returned are from the specified layer's definition, provided this layer is loaded and is one of the SharedTemplateQueryParameters.layerIds. They may also be from field overrides from the layer's subtype matching this template's subtype if available.
Parameters:
layerId— An ID that identifies the layer for which the fields are requested.
Return Value: The collection of Field objects for this template.