My application has a parent case with 3 child cases. Locations own cases, but sometimes the location only owns the parent case and one child case. How can I filter the parent menu so that no parent cases appear if the location doesn't own this parent case (i.e. the location owns a different child case)?
How to filter a case list to display only cases that the mobile user’s location owns
commcare
Related Topic
- CommCare – Instance Syntax to Search for All Child Cases of a Parent
- Do CommCare Auto Case Closure case property filters overrule the Case Close field (days since updated)
- Viewing supply point cases at a supervisory level
- List the parent_name of a child case in the child case module case list
- Display the owner of a case in the case list
- CommCare – Configure Case List to Autoselect Child Case in Advanced Modules
- Can users see all of the same cases when assigned to the same location in CommCare
- How to get the reference ID of an extension case during a case export
Best Answer
I was able to get this to work by filtering the parent menu with the following filter:
This filter only shows cases when the case's location owner_id is equal to the current mobile user's location ID.