Searching within a diagram (Simon Orde)
Posted: 21 Apr 2005 10:07
Someone asked me recently if it is possible to do a search within a diagram - i.e. have the relevant person highlighted in the diagram, rather than be switched back to the records window. The answer is that with a little effort you can - at least provided that you are not already using the 'Mark' feature in that diagram. And it occurred to me that FHU List members might also be interested in the answer.
You can't simply use the 'Find Record' facility on the Edit menu as that will always find the record in the Records Window. You need to create a query that asks you to select a person, and then simply returns that person. Having created that query (called 'Select Record' let's say), you do a within-diagram search by clicking on Diagram > Marks > 'Set/Clear Marks Using Query'. Select the 'Select Record' query,and click 'Run Query' (you may want to check 'Clear existing marks first' if some boxes are already marked). You will be prompted to specify the record in question. After which all instances of that record on the diagram will be 'marked' (highlighted).
Afterwards, you can clear all marks (reset the highlighting) by clicking 'Clear All Marks' on the Marks menu.
To create the 'Select Record' query (you only need to do this bit once), open the Query Window, and click on 'New Custom Query' on the menu that appears when you click on the Query menu button (the last button on the query windowtoolbar). Call the new query 'Select Record' (or whatever)and select 'Individual' as the Record Type. Click on the Rows tab. Leave condition as 'Add If', select 'INDI' for the Expression field (the only item in its dropdown list). Operator should now be 'is'. Leave it as that. Click on 'Parameter' and set the label to 'Record'. Now click on the 'Add' button. That's it.
Heres a ready made query for you
Select Record Query
Simon Orde
List Administrator & Family Historian designer
You can't simply use the 'Find Record' facility on the Edit menu as that will always find the record in the Records Window. You need to create a query that asks you to select a person, and then simply returns that person. Having created that query (called 'Select Record' let's say), you do a within-diagram search by clicking on Diagram > Marks > 'Set/Clear Marks Using Query'. Select the 'Select Record' query,and click 'Run Query' (you may want to check 'Clear existing marks first' if some boxes are already marked). You will be prompted to specify the record in question. After which all instances of that record on the diagram will be 'marked' (highlighted).
Afterwards, you can clear all marks (reset the highlighting) by clicking 'Clear All Marks' on the Marks menu.
To create the 'Select Record' query (you only need to do this bit once), open the Query Window, and click on 'New Custom Query' on the menu that appears when you click on the Query menu button (the last button on the query windowtoolbar). Call the new query 'Select Record' (or whatever)and select 'Individual' as the Record Type. Click on the Rows tab. Leave condition as 'Add If', select 'INDI' for the Expression field (the only item in its dropdown list). Operator should now be 'is'. Leave it as that. Click on 'Parameter' and set the label to 'Record'. Now click on the 'Add' button. That's it.
Heres a ready made query for you
Select Record Query
Simon Orde
List Administrator & Family Historian designer