Hi,
I have one Gallery on screen. using collection to load data in Gallery. I want to add record in collection and remove some record from collection. once addition and deletion is completed want to update same change in CDS entity. my code is working to adding record in collection and remove code also.
But how can I populate same changes in entity level too after collection changes is done?
Using below code.
ClearCollect(HazardRecordsCollection,Filter(Hazards,ChemicalID=VarChemicalselect1));
Item property of Gallery :- HazardRecordsCollection
Add remove Icon on item of gallery :- Remove(HazardRecordsCollection,ThisItem)
Add button to add new record:- Collect(HazardsymboldCollection,{Hazard_Name:"HazardIsCorrosive",Chemical_ID:Varchimicalid})
Above code is working. I have deleted 3 record from gallery(HazardRecordsCollection) and add new record in gallery.
now same I want to populate on entity from collection. using below code but it is not working.
on save button of screen :- onselect -->Collect(Hazards,HazardRecordsCollection)
Please suggest how can I replicate same change on entity from collection.
Regards,
Lalit Kadam