Hi Walaa
Thanks for the information but I have worked out what SQL I would need to use to do this without trying to filter it in the code.
**
WITH Config AS
(
select [key],portalid,ROW_NUMBER() OVER
(PARTITION BY [key] ORDER BY [key],portalID desc) as 'number'
from configuration where (portalID='73DA12E8-0D79-42D6-8C19-B0AE0F0BC34A' or portalID is null)
)
select * from config
where number =1
order by [key]
**
Are you able to let me know how I would do this in llblgen? Please bear in mind that the "key" column is not the primary key of the table, it is just a normal column.
PortalID is something that would be passed in, depending on the page being displayed.
Thanks
Bex