Hi Community,
I've the simple collection which will increasing and index, which currently is working fine.
I have the function for the delete the row of the collection, which the sequence number need to regenerate it, how to regenerate the sequence of the number?
Below are the code i use:
OnVisible:
ClearCollect(AssetCollection,{LineItem:"Notebook",LineSerialNumber:"",LineSignOutRemarks:"",LineReturnRemarks:"",LineIndex:Value(Last(AssetCollection).LineIndex)
Add Row:
Collect(AssetCollection,{LineItem:"Notebook",LineSignOutRemarks:"",LineReturnRemarks:"",LineIndex:Value(Last(AssetCollection).LineIndex)+1});
Remove Row in Gallery:
Remove(AssetCollection,ThisItem)