Saturday, 5 February 2022

Power Apps error: Invalid Formula. Expected a value compatible with 'DataSource'

My Gallery control and EditForm controls are connected to 'CustomerInfo' SharePoint list as data source.

I am trying to display the data on Form, based on my Gallery selection. To do this I have set this function on Form Item property: Gallery1.Selected which is throwing the error.

To fix this error, I have set the ID of the selected item in OnSelect property of Gallery:

Set(SelectedItemID, ThisItem.ID)

And In Form Item property, used Lookup function to retrieve the selected record from data source:

LookUp('CustomerInfo', ID=SelectedItemID)

No comments:

Post a Comment