How to have filters recognize each other

(AndinetA) #1

working on Report builder , can I have filters recognize each other?
For instance, if I choose the filter for level 1(region), the filter for level 2(zone) should reflect what I chose in the first filter.

Here are some of the filter’s json
{
“comment”: null,
“datatype”: “string”,
“display”: “region”,
“field”: “region”,
“type”: “dynamic_choice_list”,
“slug”: “region”
},
{
“comment”: null,
“datatype”: “string”,
“display”: “Zone”,
“field”: “zone”,
“type”: “dynamic_choice_list”,
“slug”: “zone”
},
{
“comment”: null,
“datatype”: “string”,
“display”: “Woreda”,
“field”: “woreda”,
“type”: “dynamic_choice_list”,
“slug”: “woreda”
},

0 Likes

(Cory Zue) #2

Hello and welcome!

This is unfortunately not currently possible in UCR, though if you are able to branch into creating a custom report on top of data source you can potentially look into RestrictedAsyncLocationFilter. There should be some examples of using this in the repository.

Would be great to have this functionality built into UCR, but we haven’t had a chance to prioritize it. We’d welcome a pull request! :slight_smile:

1 Like