The controls in my Gym Membership Canvas App currently connect to their associated SQL Server data source directly, i.e. on the control, the Data source property says [@'[dbo].[Member]'].
This text occurs in a few places throughout my App.
However, I'd like to put that text somewhere reusable, so that if/when it changes, I can change it in one place.
To do this, I created a new Component called DataAccess, and created an Output Property called Member which returns the text [@'[dbo].[Member]'].
To test it, in one of my controls, I replaced the function text fx: [@'[dbo].[Member]'] with [DataAccess.Member] (and variations including @ and/or quotes) thinking it would get the data source from the Component Output Property.
Instead, I get an error message that my function "has some invalid arguments" or "invalid use of '.'".
Is there a known good pattern for referencing SQL Server data source tables via indirection?