Automatic substitution of values from a data source