Hi,
I'm struggling with something that should be super simple:
I have a table in CDS with a Choice datatype column. I'd like to Filter the records in this table based on an ID and specific choice value.
So, the table has columns:
Type - Choice column with three choices: "option one" "option two" and "option three"
OtherId - Text column; foreign key to another table
I'd like to perform the following:
Filter('Table Name', OtherId = varForeignKey && Type = "option two")
I can't figure this out. I've tried the following:
Filter('Table Name', OtherId = varForeignKey && Type = Choices(Type.'option two').Value )
Filter('Table Name', OtherId = varForeignKey && Type = Filter(Choices(Type).Value = "option two"))
At this point I'm just hacking away at something that really shouldn't be this difficult.
Any help would be greatly appreciated.