86
edits
Changes
3-stage FILTERS: add Example 6
==Introduction==
For more info, see [[Filter]] and also [[Gramps_4.1_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.
Most of the following examples appeared on the Gramps-Users mailing list in response to posts from users and cover ''Gramps versions 3.4.x to 4.1x''
''Comment: if the spelling of the surname has changed over the generations, you'll need to use a regular expression for the Full Family Name in Filter B and enable “Use regular expressions”''
----
=== Example 5. Show birthplaces of all people with the surname Whitesmith ===
'''''Person Filter Editor'''''
'''''Filter A:'''''
General filters=>
People with the <name> : Full family name:="Whitesmith"
'''All rules must apply'''
'''''Events Filter Editor'''''
'''''Filter B:'''''
General filters=>
Events of persons matching the <person filter>: Filter name:="A"
General filters=>
Events with the particular type: Event type:="Birth"
'''All rules must apply'''
'''''Places Filter Editor'''''
'''''Filter C:'''''
General filters=>
Places of events matching the <event filter>: Event filter name:="B"
'''All rules must apply'''
'''''<Run Filter C> in Place View''' to check''
These Places can be displayed in '''Geography View'''
Select '''All Known Places''', but use '''Filter sidebar''' with '''Custom filter "C"''' to restrict the places shown to birthplaces of the Whitesmith family
''[Acknowledgement: thanks to S. Noiraud for pointing out this very useful combination of filter and Geography View]
''
=== Example 6. People with a common ancestor with <person>, their spouses and their spouse's children ===
'''''Person Filter Editor'''''
=='''''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]]