Hi ,
I first added code on app start property as "ClearCollect(collnew,'Master data').
on the Item property of form , I wrote LookUp('Master data',ID=Gallery1.Selected.ID)
then on the patchbutton I wrote this ForAll(
collnew As aPatch,
Patch(
'Master data',
Defaults('Master data'),
{
Title:aPatch.Title,
Area:aPatch.Area,
Month:aPatch.Month,
Year:aPatch.Year,
Country:aPatch.Country,
Datemaster:aPatch.Datemaster
}
)
)
I also tried with this code .It worked once but this is also not working. ForAll(
ShowColumns(Collection1,"Title","Year","Month","Area","Country","Datemaster"),
Patch('Master data',ThisRecord,{Title:Title,Year:Year,Month:Month,Area:Area,Country:Country,Datemaster:Datemaster}
)
)