* Treat whole individual record as text ?
Treat whole individual record as text ?
When creating a custom search, is it possible to match text anywhere within an individuals record, rather than the seperate fields ?
For example, I have used the text 'TODO:' to indicate a non-urgent task that needs tidying up later, in various note fields of several persons.
I am now writing a query to find all these records so I can have an auto-refreshed named list of non-urgent tasks.
So far, I am able to match for say %INDI.NOTE2[1]% contains TODO and that finds some of the records, but not all, as they are in different types of note field.
Anyone got any ideas please ?
Cheers,
Geoff.
ID:4345
For example, I have used the text 'TODO:' to indicate a non-urgent task that needs tidying up later, in various note fields of several persons.
I am now writing a query to find all these records so I can have an auto-refreshed named list of non-urgent tasks.
So far, I am able to match for say %INDI.NOTE2[1]% contains TODO and that finds some of the records, but not all, as they are in different types of note field.
Anyone got any ideas please ?
Cheers,
Geoff.
ID:4345
- PeterR
- Megastar
- Posts: 1129
- Joined: 10 Jul 2006 16:55
- Family Historian: V7
- Location: Northumberland, UK
Treat whole individual record as text ?
Geoff,
The standard query Contains Text should do this for you. It uses the =ContainsText() function with the 3rd parameter set to 'EXT' so that it also looks at linked Notes, etc. See the Help file for the ContainsText function.
The standard query Contains Text should do this for you. It uses the =ContainsText() function with the 3rd parameter set to 'EXT' so that it also looks at linked Notes, etc. See the Help file for the ContainsText function.
Treat whole individual record as text ?
Thanks for that Peter - works a treat.
Easy when you know how eh ?
Cheers,
Geoff.
Easy when you know how eh ?
Cheers,
Geoff.
Treat whole individual record as text ?
Peter,
If I wanted to now fill a named list with the results of that query, how would I do it please ? I have the records window up, the named list is there, I click on it and the headings come up as expected, but it says . I put the named list in the auto-create list and restarted FH but still empty. If I run the query by itself, it produces the correct results.
G.
If I wanted to now fill a named list with the results of that query, how would I do it please ? I have the records window up, the named list is there, I click on it and the headings come up as expected, but it says . I put the named list in the auto-create list and restarted FH but still empty. If I run the query by itself, it produces the correct results.
G.
Treat whole individual record as text ?
The auto create named list feature is to create the lists if they doesn't already exist in the Gedcom file. Named lists are stored in the Gedcom so if you have a new Gedcom, the auto create feature will ensure that your favourite lists are ready for use.
To put the results of the query into a named list, use the menu button available in the query window. That's the button that looks like a mini menu with a tick on it and is on the far right. Then select the Add Result Set Records to Named List... option.
To put the results of the query into a named list, use the menu button available in the query window. That's the button that looks like a mini menu with a tick on it and is on the far right. Then select the Add Result Set Records to Named List... option.
Treat whole individual record as text ?
Thanks for that Jon,
So if I click 'Add Result Set Records to Named List' will that then refresh the named 'todo' list each time I open FH ? Or do I need to delete the list, then restart FH to make it refresh it ?
If they don't keep themselves refreshed by the results of a query, I can't quite see what the point is ?
G.
So if I click 'Add Result Set Records to Named List' will that then refresh the named 'todo' list each time I open FH ? Or do I need to delete the list, then restart FH to make it refresh it ?
If they don't keep themselves refreshed by the results of a query, I can't quite see what the point is ?
G.
Treat whole individual record as text ?
Named lists are not dynamic. They have to be manually updated, either by adding removing records or using a query to populate the list.
To keep your named list up to date you will need to re run your query manually. When putting the results of the query into the named list make sure you tick the 'Replace current list contents' tickbox. Restarting FH will not affect the process.
I couldn't find a wish list item for making queries auto-run on startup, but it could be a useful feature so help yourself to making the request.
To keep your named list up to date you will need to re run your query manually. When putting the results of the query into the named list make sure you tick the 'Replace current list contents' tickbox. Restarting FH will not affect the process.
I couldn't find a wish list item for making queries auto-run on startup, but it could be a useful feature so help yourself to making the request.
Treat whole individual record as text ?
Hi Jon,
Thanks, that explains why I am having no luck making it auto-update
So when the manual says that if the specified names lists don't exist at startup they are created for you - they are just created null ? Isn't that a bit pointless ?
Cheers,
Geoff.
Thanks, that explains why I am having no luck making it auto-update
So when the manual says that if the specified names lists don't exist at startup they are created for you - they are just created null ? Isn't that a bit pointless ?
Cheers,
Geoff.
Treat whole individual record as text ?
Yes it is a bit pointless. Since it is commonly recommended to use a single Gedcom unless your projects are widely different, then having blank named lists created (and even then only a limited number) in Gedcoms which don't already have the named lists is going to be an infrequently used feature in my view.gbrowne said:
So when the manual says that if the specified names lists don't exist at startup they are created for you - they are just created null ? Isn't that a bit pointless ?
- Jane
- Site Admin
- Posts: 8442
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Treat whole individual record as text ?
Another option might be to use a flag, which with V4 you can add to the Property box to tick the records. You can set it the first time from your Contains Text Query, and then simply untick/tick it as you mark records which need work.
Treat whole individual record as text ?
Thanks Jane,
Yes that is a good idea. It would only mark the whole record though, not highlight actual detail that needs work, but a useful suggestion which I think I will implement.
It's odd given all the useful, rich, data-handling features that FH4 has, that some sort of 'dynamic named list' isn't available.
I suppose it could be done with an external application (a little bit like GC) that watches the GEDCOM file and rebuilds a named list in it, whenever the GEDCOM is updated by FH. Of course, FH would then recognise the change made by the external app, reload the data and trash all your open views
Cheers,
Geoff.
Yes that is a good idea. It would only mark the whole record though, not highlight actual detail that needs work, but a useful suggestion which I think I will implement.
It's odd given all the useful, rich, data-handling features that FH4 has, that some sort of 'dynamic named list' isn't available.
I suppose it could be done with an external application (a little bit like GC) that watches the GEDCOM file and rebuilds a named list in it, whenever the GEDCOM is updated by FH. Of course, FH would then recognise the change made by the external app, reload the data and trash all your open views
Cheers,
Geoff.