LINKTOFILTEREDVIEW and selecting multiple options in a search form

capper
New Member

Hello - hoping for a bit of help with a search form issue. Would like for users to be able to search for properties in multiple neighborhoods, at a price less than X, etc.

Right now Iโ€™m just trying to get the multiple neighborhoods piece to work.

Selecting one neighborhood generates the expected results. However, selecting more than one yields no results.

The current expression Iโ€™m using in the Behavior/app target is:

LINKTOFILTEREDVIEW(โ€œAllProperties_Resultsโ€, ([Neighborhood_name] = [_THISROW].[Neighborhood_name]

))

Any advice on how to get the selecting multiple neighborhoods to work?

And separately, is there a way to create a default where all neighborhoods are selected when the search form is opened?

Some additional info on table/column types below in case itโ€™s helpful.

Search Form (Data Table):
Neighborhood_name โ€“ column type is enumlist w/ Valid if expression of Neighborhood[Neighborhood_name]

Property List (Data Table):
Neighborhood)name โ€“ column type is enumlist w/ Valid if expression of Neighborhood[Neighborhood_name]

Neighborhood (Data Table):
Neighborhood_name column type is name

AllProperties_Results (Ref View) pulls from the Property List Data Table

Solved Solved
0 2 853
1 ACCEPTED SOLUTION

Steve
Platinum 4
Platinum 4

Because the Neighborhood_name column of the Search Form table is EnumList, change this part of your LINKTOFILTEREDVIEW() expression:

([Neighborhood_name] = [_THISROW].[Neighborhood_name])

to this:

IN([Neighborhood_name], [_THISROW].[Neighborhood_name])

Set the Initial value property for the Neighborhood_name column of the Search Form table to the same expression used for its Valid If property (i.e., Neighborhood[Neighborhood_name]).

View solution in original post

2 REPLIES 2

Steve
Platinum 4
Platinum 4

Because the Neighborhood_name column of the Search Form table is EnumList, change this part of your LINKTOFILTEREDVIEW() expression:

([Neighborhood_name] = [_THISROW].[Neighborhood_name])

to this:

IN([Neighborhood_name], [_THISROW].[Neighborhood_name])

Set the Initial value property for the Neighborhood_name column of the Search Form table to the same expression used for its Valid If property (i.e., Neighborhood[Neighborhood_name]).

capper
New Member

Much appreciated - worked a treat. Thanks for the assist, Steve.

Top Labels in this Space