Skip to main content
Solved

Filters on custom view/page but have one visual ignore a particular selection

  • July 15, 2025
  • 2 replies
  • 26 views

danny.oneill

I have a page:

https://cityobservatory.birmingham.gov.uk/explore/dataset/test-emergency-admissions-for-copd-icp-outcomes-framework-birmingham-and-solihull-wards/insight

Which has 4 filters on that I want t o affect the majority of the visuals. However, for the map I want this to ignore anything made to the 3rd filter “area_name” but respect all other filters. How can I achieve this?

I have tried the following either as its own context or as part of the main one at the start of the page but it just wont listen

<ods-dataset-context context="mapctx"
mapctx-dataset="{{ ctx.dataset.datasetid }}"
mapctx-parameters="{
'refine.date'= ctx.parameters['refine.date'],
'refine.time_period_range'= ctx.parameters['refine.time_period_range'],
'refine.ethnicity'= ctx.parameters['refine.ethnicity'],
'refine.imd':'ALL'
}">

 

Best answer by danny.oneill

Thomas in ODS sorted me out. I needed to put the part which passes the filters into the new context AFTER my visual. 

ChatGPT gave me the right code, just in the wrong place. All sorted now.

2 replies

  • Huwise Team
  • 14 replies
  • July 23, 2025

Hello Danny,

It seems that the code is working as you want, thanks to the AngularJs expressions you implemented, can you confirm that?

Best,

Manon


danny.oneill
  • Author
  • Guide
  • 14 replies
  • Answer
  • July 23, 2025

Thomas in ODS sorted me out. I needed to put the part which passes the filters into the new context AFTER my visual. 

ChatGPT gave me the right code, just in the wrong place. All sorted now.