Hi,
I’m trying to use a cascading hierarchy filter, and I have some issues.
I have a hierarchy built upon this query:
SELECT [dbo].[ContractLocations].[Id]
,[Location]
,[CountryZoneId]
,[dbo].[ContractCountryZones].[Zone]
,[dbo].[ContractCountryZones].[CountryId]
,[dbo].[Countries].[Name] AS Country
,[dbo].[ContractLocations].[Deprecated]
FROM [dbo].[ContractLocations] INNER JOIN [dbo].[ContractCountryZones] ON [dbo].[ContractCountryZones].[Id] = [dbo].[ContractLocations].[CountryZoneId] INNER JOIN [dbo].[Countries] ON [dbo].[Countries].[Id] = [dbo].[ContractCountryZones].[CountryId] WHERE [dbo].[ContractLocations].[Deprecated] = 0 AND [dbo].[ContractCountryZones].[Deprecated] = 0
in order to have a filter for setting the location of a meeting. In the Dashboard I have set a cascading hierarchy filter with no value selected by default.
When I do the first selection, everything is ok:
The behaviour I was expecting was that the location is set to “(none)” if the “CountryZone” is changed (up to here, it works fine), and both “Country Zone” and "Location set to “(none)” if the value of the top reference (“Country”) is changed. BUT, if I change the “Country” value then I got this:
Why isn’t the value of the Location set to “(none)”, as the value shown isn’t valid anymore? What have I missed?
Thanks in advance.