86
edits
Changes
3-stage FILTERS: add Example 6
==Introduction==
For more info, see [[Filter]] and also [[Gramps_4.2_Wiki_Manual_Gramps_{{man version}}_Wiki_Manual_-_Filters|the wiki manual on Filters]].When creating custom filters, always make sure you have the [[Gramps_{{man version}}_Wiki_Manual_-_Gramplets#Filter|Filter Gramplet]] in the [[Gramps_{{man version}}_Wiki_Manual_-_Main_Window#Bottombar_and_Sidebar|sidebar ]] visible so you can test them before use: either click on . This allows testing the Filter tab filter on real data before putting the right, or click on filter in general use. Test each filter individually... don'Add t set up a Gramplet' and select 'Filter'2nd stage filter until the 1st stage has been tested. To test: in the Filter tab of the sidebar, select the custom filter you made; then click the {{man button|Find}} button.
There are rules to allow you to use filters defined for another View. In this way you can build up complex filtering involving several Views.
{{man notewarn|NoteCustom Filters are resource hungry|That very Very large databases may encounter resource limitations when handling some complex filters}}
----
''
=== Example 6. People with a common ancestor with <person>, their spouses and their spouse's children ===
'''''Person Filter Editor'''''
'''''Filter A:'''''
Ancestral filters =>
People with a common ancestor with <person>
'''All rules must apply'''
'''''Filter B:'''''
Family filters =>
Spouses of <filter> match: Filter name:="A"
'''All rules must apply'''
'''''Filter C:'''''
Family filters =>
Children of <filter> match: Filter name:="B"
General filters =>
People matching the <filter>: Filter name:="A"
General filters =>
People matching the <filter>: Filter name:="B"
'''At least one rule must apply'''
=='''''4----stage FILTERS'''''==
'''''Place Filter Editor'''''
''Comment: previous Filter A written for gramps 4.1 does not work in gramps 5 with the new Place hierarchy. It needs to be replaced by new
'''''Filter A:'''''
General filters=>
Places matching parametersenclosed by another place: Name:= "Illinois"; Place type:= "State" Inclusive:="1" [NOTE "Include selected Gramps ID" - this is important or the filter excludes events where "Illinois" is the first part of the place address title]
'''All rules must apply'''
'''All rules must apply'''
'''''Person Filter Editor'''''
'''''Filter C:'''''
Event filters=>
People with the personal <event>: Personal event:="Residence"
Event filters=>
People with the personal <event>: Personal event:="Death"
Event filters=>
People with the personal <event>: Personal event:="Birth"
'''**At least one rule must apply**'''
'''''Filter D:'''''
General filters=>
People with events matching the <event filter>: event filter Filter name:= "B" Event filters=> People with the personal <event>: Personal event:="Death" '''All rules must apply''' '''''Filter E:'''''
General filters=>
People matching the <filter>: Filter name:= "C"
General filters=>
People with a name matching the <filtertext>: Filter nameText:= "DDoe"
'''**At least one rule All rules must apply**'''
'''<Run Filter ED> in Person View.'''
----
[[Category:Gramps Examples]]
[[Category:Filters]]