I have two galleries. DataSource for both is set to 'AssetRisk' which is a CDS entity. First one is used to display list of available records and the second displays details of the selected item from first gallery. I am passing parameter 'ItemId' via URL and successfully assigning it to a variable in PA (details of deeplinking can be found here😞
Set(PassedParam, Param("ItemId"))I can display the desired record in a separate gallery by setting 'Item' property to:
LookUp(AssetRisks, AssetRisk = GUID(PassedParam))
However, what I want to do is to set 'Default' property of a First gallery to display record with 'ItemId' and so that the Second gallery would show the details of that record. I tried setting 'Default' property of First gallery to:
LookUp(AssetRisks, AssetRisk = GUID(PassedParam))
but it didn't have desired effect. Furthermore, even if I use First(AssetRisk) or Last(AssetRisk) in 'Default' propertry of the First gallery it doesn't select nor first neither last record. It is only when I leave 'Default' as blank , then the top record from the list is being selected in First gallery and Second gallery displays details of a record.
Any ideas?