Hi all,
How do I configure a Form to use two DataSources? This is needed to support a Gallery item where two DataSources have been used.
For my Gallery.Items (which works) I've used AddColumns to add an additional column. The formula is as follows:
SortByColumns(Search(AddColumns(Record, "StudentID",LookUp(IncUniformRecordCache, RecordID=Record[@RecordID], StudentID)), TextSearchBox1.Text, "StudentID"), "Created",Descending)
When clicking on a Gallery item to view details, Form.Item on the detail screen points to Gallery.Selected. As there's an additional column being passed from Gallery, the Form returns the error "Expected a value compatible with DataSource". I'm assuming this happens because the Form doesn't know about the foreign column as the Form is only using the one DataSource ('Record' in my example).
I've tried adjusting Form.Item to use AddColumns like what was done for the Gallery, but it seems Forms don't support columns from more than one DataSource.
Is there a way or do I need to stop using Forms for multiple DataSource scenarios?