I am creating a PowerApp consisting of several screens, only two of which are relevant here. The first (an app dashboard) contains two listboxes, one (screen name "AppDashboard", listbox name "lbClients") containing client names from a list containing client names from a SharePoint list of client data. The second (not relevant here) contains a list of project/engagement names that gets populated with a list of associated engagement names when a client name is selected. At the bottom of the screen is a set of buttons, each triggering display of a different screen corresponding to an operation to be performed when the button is clicked (display basic client informaton, edit basic client informaton, etc.). See screenshots below.
The operation I'm concerned with at the moment is display of basic client information in the screen named "View Basic Client Information View". There is a button on the initial dashboard page labeled "View Basic Client Information". When a client name in the dashboard listbox is clicked, the app navigates to the basic client information view screen containing a set of field labels and corresponding read-only field name label or text input controls (set to "View") (I've tried both) where I want to display the corresponding data element for the selected client populated into the control.
Here's my question:
What is the syntax of the statements I should put into the "Text" property of the label control or the "Default" value of the text input control? While trying to get this to work, I have a label control called "dispClientName" and a text input control called "txtClientName" (I dont care which control type I use as long as it works) that will contain the client name selected on the dashboard page (as well as a number of of other text fields I will populate in the same way later that I want to pull from the same data source specified in the Items property referenced by the listbox on the dashboard "home" screen.
I've tried all of the following in the in the Text field of te label control and the "Default" field of the text input control, and none work:
AppDashboard.lbClients.Items.SelectedItems.Client_x0020_Name
AppDashboard.lbClients.Items.SelectedItems."Client Name"
lbClients.Items.SelectedItems."Client Name"
lbClients.Items.SelectedItems.Client_x0020_Name
AppDashboard.lbClients.SelectedItems.Client_x0020_Name

AppDashboard.lbClients.SelectedItems."Client Name"
lbClients.SelectedItems."Client Name"
lbClients.SelectedItems.Client_x0020_Name