I have a view with 2 columns.Is there anyway I could perform a dblookup (using a key to match the first column) and then, perform a dbcolumn to get a list of the second column values (when the first column match with the key)?
For example, if below is my view:
Chicago 001
Chicago 002
Chicago 003
New York 004
New York 005
if my key is “Chicago”, I want the dbcolumn to return 001, 002 and 003.
Is it possible at all? I’m trying to avoid creating too many views.
@DbLookup will return what you want already. Given the view you’ve shown, @Unique(@DbColumn(“”;“”;“ViewName”;1)) returns “Chicago”:“New York”. @DbLookup(“”;“”;“ViewName”;“Chicago”;2) returns “001”:“002”:“003”.