Data Source Pane
Description
The List control can be populated using static data, a SQL data source, or custom function that generates the data for the list using a web service or algorithm.
Discussion
The date source can be one of the following:
SQL
The List is populated using a SQL query. The SQL query builder can be used to create the query. See SQL Data Source properties to learn more.
DBF
The List is populated using a DBF query. The Data source, Filter, and Order are used to determine the fields and rows from the DBF database to populate the List. See DBF Data Source properties to learn more.
Static
A static list of values can be used to populate the List control. The static data can be defined using pipe delimited columns. Each row is defined on its own line. For example:
Firstname|Lastname|City|State John|Smith|Boston|MA Henry|Rhodes|New York|NY Allison|Berman|Los Angeles|CA Amanda|Higgins|Chicago|IL
You can also use JSON to define the static data. For example:
[ { "Firstname": "John", "Lastname" : "Smith", "City" : "Boston", "State" : "MA" }, { "Firstname": "Henry", "Lastname" : "Rhodes", "City" : "New York", "State" : "NY" }, { "Firstname": "Allison", "Lastname" : "Berman", "City" : "Los Angeles", "State" : "CA" } ]
The data is defined in the Static Data property. See Static Data property for more information.
Custom
A Custom data source is defined using an Xbasic function. The Xbasic function must return data in the same format as used by the Static data source: a CR-LF delimited list of pipe separated values or a JSON object. See the Custom properties and Custom - Advanced properties to learn more.
Data Series
If desired, a Data Series can be used to populate the List control. Each sub-series in the Data Series will be treated as a column in the List.
Data Series are defined in the UX Component's Data Series properties. See the List's Data Series properties for more information.
Javascript Function
A JavaScript function can be used to compute the data shown in the List control. The function must return a JSON object containing the data to populate the List. See Javascript Function property for more information about how to define the function to populate the List.
See Also