The Excel file option lets you to populate a List control with data from a Excel file.
You can set the data source of a List control to an Excel file. At run-time, the file is downloaded and the data extracted from the file. The List is then populated with the data. When the List is refreshed, the remote file will be fetched again to repopulate the List control.
The following properties are available to configure the Excel data source.
Arguments are variables that can be referenced when filtering or ordering the Excel data. An Argument can be populated from a session variable, page variable, or cookie. Arguments can also be statically assigned at design time or populated at run-time using the value of a control in the UX Component.
A URL that defines where the remote Excel file is located. At run-time, the remove Excel file will be downloaded. Data from the file will be extracted and used to populate the List control.
An example URL is shown below.The Excel filename is specified as a URL.
The name of the sheet in the Excel file that contains the data. If no sheet name is specified, the first sheet in the Excel file is used.
An optional filter expression. The filter expression can be used to pre-filter the data shown in the List. The syntax for the filter is same as a WHERE clause for a SQL database. The filter can use arguments, as shown in the image below.
An optional order expression. The order expression sorts the data retrieved from the Excel sheet before it is rendered in the List control. The syntax for the order is same as an ORDER BY clause for a SQL database.
The data type for the Return field value is always a string.