* [Wish List Item 598]New data reference index option "[preflast]"

Requests that have been moved to the Wish List, or deemed to need no further action
Post Reply
avatar
jelv
Superstar
Posts: 364
Joined: 03 Feb 2020 22:57
Family Historian: V7
Location: Mere, Wiltshire

[Wish List Item 598]New data reference index option "[preflast]"

Post by jelv » 07 Mar 2023 14:03

Issue: When displaying the occupation the best option is %INDI.OCCU[preferred]%. The data reference for the occupation on the main tab of the property box uses this (without the %). The problem is that if no occupation has been flagged as preferred it defaults to the first, and frequently this will be from a census when they were very young so will be "Scholar" or "At School" - as much use as a chocolate fireguard!

In queries and in the records window this expression will give the preferred if one is flagged, otherwise it gives the last which is more likely to be useful:

Code: Select all

=TextIf(IsSet(%INDI.OCCU[preferred]._FLGS.__PREFERRED%),%INDI.OCCU[preferred]%,%INDI.OCCU[last]%)
But you can't use expressions for the data references when customising the property box (yet - hopefully).

Proposal: A new data reference index option [preflast] which, if none of the facts is flagged as preferred, defaults to the last not the first.

So the expression above would be replaced by %INDI.OCCU[preflast]% which could also be used on the property box.
John Elvin

avatar
jelv
Superstar
Posts: 364
Joined: 03 Feb 2020 22:57
Family Historian: V7
Location: Mere, Wiltshire

Re: New data reference index option "[preflast]"

Post by jelv » 31 May 2023 23:03

I see Mark has suggested that this is closed as no support; but I'm wondering if the lack of comments was due to lack of interest or because the proposal was succinct and well defined.

I raised it because of this discussion: https://groups.io/g/family-historian/to ... 45937#6589
John Elvin

User avatar
Mark1834
Megastar
Posts: 2146
Joined: 27 Oct 2017 19:33
Family Historian: V7
Location: South Cheshire, UK

Re: New data reference index option "[preflast]"

Post by Mark1834 » 01 Jun 2023 07:36

I’ll buy that. As a general point, I think we should be careful about introducing too many new items until the backlog is cleared, but this is simple and well-defined.
Mark Draper

User avatar
ColeValleyGirl
Megastar
Posts: 4853
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: New data reference index option "[preflast]"

Post by ColeValleyGirl » 03 Jun 2023 13:07

Wish List Item 598 has been raised.

Post Reply