You can filter out unused dimension values from your dimension search results in the MDEX Engine at query time.
Dimension search can return dimension values that have no associated records. Depending on your application, you may not want your users to see such dimension search results. In such cases, you can filter out unused dimension values, using the dimension search ability to search within a navigation state.
You can do this in two ways:
Call these method and property, passing in a
DimValIdList
consisting only of the value0
(zero):Use the
Dn
URL query parameter, setting the value to zero.In other words, instead of performing the query:
D=Hampton+Bays
use the query:D=Hampton+Bays&Dn=0
You can code this into your application by adding&Dn=0
any time you set the dimension search query. Because the work is done in the MDEX Engine, no UI modification to suppress results is required.