I can use a feature layer at runtime to perform queries on it using the sample from the add-layers-to-a-map widget.
However, as a training tool I was wondering how to do the same by defining the datasource and use the dataSourceComponent at runtime and skip the use of the settings component.
Thanks.