If you are referencing a data source that isn’t associated with a form control, you must explicitly load the data class. For example, if you were referencing a data source within a validation.
You can also use the <UsedClass> tag to filter the records being loaded by a data source that is associated with a form control.
To load a data source, you use the <UsedClass> tag. The <UsedClass> tag must appear under the root tag at the same level as the <FormHeader> tag.
Tag | Description |
---|---|
<Name> | Required. The name of the data class to be loaded. Possible values include List_PersonAddress, List_PersonContact |
<Mode> |
Required. Controls which records within the class are loaded. Possible values:
|
<LoadCriteria> |
Required if the <Mode> is set to AllKeyValues or AnyKeyValue. Filters the records being loaded to those that match one or all of the <LoadCriteria> values. You can use multiple <LoadCriteria> tags within each <UsedClass> tag. Possible values for List_PersonAddress:
Possible values for List_PersonContact:
|
For example:
<WF_DynamicForm>
<DataClass>Employee</DataClass>
<FormHeader>
<Style>header</Style>
<Title>title</Title>
</FormHeader>
<UsedClass>
<Name>List_PersonAddress</Name>
<Mode>AnyKeyValues<Mode>
<LoadCriteria>PrimaryResidence</LoadCriteria>
<LoadCriteria>Mailing</LoadCriteria>
</UsedClass>