WPTools Manual



Search


(press enter to search)

Procedure TWPReporterFieldsCollection.AddFields(ParentDatasetName:string; ParentDatasetDescription:string; FieldNames:; RequiredParentGroup:string)

Unit: WPRTEReport
Class: WPRTEReport.TWPReporterFieldsCollection

Parameters

  • ParentDatasetName:string
  • ParentDatasetDescription:string
  • FieldNames
  • RequiredParentGroup:string

Description

This procedure is used to set up field names for the insert field drop down provided by the dialog . If the optional parameter RequiredParentGroup is used, the field can be only selected in texts inside that sepecific group. Otherwise the field will not be displayed in the popup.
ParentDatasetName will be used to build the field name (DATASET.FIELDNAME)
ParentDatasetDescription will be used to group the fields in the drop down menu. ParentDatasetDescription and ParentDatasetName can be used independently from each other.
FieldNames is an array of strings to add one or more field names.
Of course it is also possible to create a TWPReporterFields item with and change its properties directly.
You can use to clear the list build up a new field list.

Overloaded Methods

Procedure TWPReporterFieldsCollection.AddFields(ParentDatasetName:string; ParentDatasetDescription:string; FieldNames:TStrings; RequiredParentGroup:string)