This is my Collection:
Collect(DisburseSelections, ShowColumns(Filter(GalleryExpenditures.AllItems, Checkbox3.Value = true), "Disbursement Request Selection Name", "Disbursement Request Selection Type", "Disbursement Request Amount" , "CogsdaleExpenditure Lookup") )
This is my Patch to save new records:
ForAll(DisburseSelections, Patch('Disbursement Request Selections', Defaults('Disbursement Request Selections'), {cr6a2_disbursementrequestselectionname: 'Disbursement Request Selection Name'.Text, cr6a2_disbursementrequestselectiontype: 'Disbursement Request Selection Type'.Text, 'Disbursement Request Lookup': ComboBoxRequestLookup.Selected, 'CogsdaleExpenditure Lookup': GalleryExpenditures.Selected, cr6a2_disbursementrequestamount: Value('Disbursement Request Amount'.Text)}))
The Disbursement lookup is now working. I had to put the Lookup in a combo box to make it work. Even tho it should just save the 1 item (1 to many).
When I did the same with the Expenditure, it did not work. It is now just saving the last selected record of the Expenditures in the Gallery, and applies that last record to all saved Disbursement Request Selection records.
It's been 2 weeks and I am no where near launching this app. This should not be this difficult. It's been trial and error to test and retest to find a solution.