Specifying a data source in a control
Improve the maintainability of your application by defining sources for the values that populate controls. For example, you can configure an autocomplete control to display a list of employee names and their employment types that are sourced from a data page.
When you tie a control to a list source, the values in the control change automatically to reflect the state of the source, which saves development time.- Open the view that you want to edit.For more information, see Accessing views in your application.
- In the configuration pane on the right side of the window, hover over the control, and then click the Edit icon.
- On the General tab of the control, in the List
source section, select the list source:
Choices Actions Use the data source that is configured for the associated property to populate the control with values at run time In the Type list, select As defined on property. For more information, see Specifying a data source directly in a property.
Use a data page to populate the control with values at run time - In the Type list, select Data page.
- In the Data page field, specify the
data page that you want to use as the source of the list
values.
- In the Data source property field, specify the property from which you want to source the list.
- Optional: To limit the results that you want to display if your data page has parameters, in the Value column, for each parameter, specify values that you want to use as a filter.
Use a clipboard page to populate the control with values at run time - In the Type list, select Clipboard page.
- In the Clipboard page field, specify
the clipboard page that you want to use as the source of the
list values.
- In the Data source property field, specify the property from which you want to source the list.
Use a report definition to populate the control with most recent values at run time - In the Type list, select Report definition.
- In the Applies to field, specify the class from which you want to extract the report.
- In the Report definition field, specify the report definition that you want to use as the source of the list values.
- In the Data source property field, specify the property from which you want to source the list.
- Optional: To limit the results that you want to display if your report definition has parameters, in the Value column, for each parameter, specify values that you want to use as a filter.
- Click Apply.
Previous topic Report definition as a source of data Next topic Specifying a data source directly in a property