Occupations in the Records window
How can I get the Preferred occupation to show in the Records window ?
When I go to a persons name I prompt the fact tab and prompt 'add fact' a iist of facts opens. At the bottom is says 'add fact' I prompt this and select 'occupation' which then appears among the fact list
It is then simple to add occupation details
Victor
I have added occupations to the columns in the Records window but I have a lot of people listed as scholar where their earliest occupation entry was from a census entry when they were a child. I have later adult occupations for them which I have marked as Preferred in the Focus box but they are still showing as scholar in the Records window.
How can I get the Preferred occupation to show in the Records window ?
Victor, the question is about how to display the preferred occupation in the Records window, not how to create it.
Sent: Tuesday, March 7, 2023 10:36 AM
To: family-historian@groups.io
Subject: Re: [family-historian] Occupations in the Records window
When I go to a persons name I prompt the fact tab and prompt 'add fact' a iist of facts opens. At the bottom is says 'add fact' I prompt this and select 'occupation' which then appears among the fact list
It is then simple to add occupation details
Victor
_._,_._,_
=TextIf(IsSet(%INDI.OCCU[preferred]._FLGS.__PREFERRED%),%INDI.OCCU[preferred]%,%INDI.OCCU[last]%)
Something that had me fooled for a moment; the order of the occupations in the Facts tab may not be the same as that in the All tab and it's the order in the all tab that matters. If you get this you need to Sort Family & Events in Date Order.
OR use Tools, Re-Order Out-of-Sequence Data... to
make sure everything is in the correct order first.
Cracked it:
=TextIf(IsSet(%INDI.OCCU[preferred]._FLGS.__PREFERRED%),%INDI.OCCU[preferred]%,%INDI.OCCU[last]%)
Something that had me fooled for a moment; the order of the occupations in the Facts tab may not be the same as that in the All tab and it's the order in the all tab that matters. If you get this you need to Sort Family & Events in Date Order.
Being able to set that using the expression I gave would be an improvement as I suspect many users see At School or Scholar on a lot of individuals. But functions can't be used at present; there's a wish list item requesting that they could be used.
Please vote for https://www.fhug.org.uk/wishlist/wldisplay.php?wlwlref=474