* Diagram > Preferred Facts

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
Post Reply
avatar
David Potter
Megastar
Posts: 957
Joined: 22 Jun 2016 15:54
Family Historian: V7
Location: United Kingdom

Diagram > Preferred Facts

Post by David Potter » 08 Feb 2021 20:39

Hi All
Is there a way to have a Diagram show Vitals such as Birth based on Preferred Fact Flag rather than the first Birth in the List? I can't find any suitable options in the list of available Formats.


Please see attached screen shot, Ancestors

Thank You
Attachments
Capture.png
Capture.png (118.7 KiB) Viewed 2131 times

User avatar
tatewise
Megastar
Posts: 27087
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Diagram > Preferred Facts

Post by tatewise » 08 Feb 2021 22:34

Yes, the data reference format for a Fact with a flag uses the usual instance index but with the flag name:
e.g. 1st Bith = %INDI.BIRT[1]% whereas Preferred Bith = %INDI.BIRT[preferred]%

In a Text Scheme if you add Birth from Available Items the dialogue offers Instance: All, Preferred, First, Last

If you add a Used Item for just the Preferred Birth event then for most boxes no Birth will get displayed.
So in the next Used Item add the usual 1st Birth event but Edit it and tick Only output if previous item blank.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
David Potter
Megastar
Posts: 957
Joined: 22 Jun 2016 15:54
Family Historian: V7
Location: United Kingdom

Re: Diagram > Preferred Facts

Post by David Potter » 08 Feb 2021 22:54

Thank you Mike. I'll try this out. I might need to come back if I can't figure it out.

David

User avatar
LornaCraig
Megastar
Posts: 2996
Joined: 11 Jan 2005 17:36
Family Historian: V7
Location: Oxfordshire, UK

Re: Diagram > Preferred Facts

Post by LornaCraig » 09 Feb 2021 01:13

tatewise wrote:
08 Feb 2021 22:34
If you add a Used Item for just the Preferred Birth event then for most boxes no Birth will get displayed.
So in the next Used Item add the usual 1st Birth event but Edit it and tick Only output if previous item blank.
Mike, I don't believe it is necessary to add that extra line. The Help file (which uses the example of an occupation fact) says "If a given person has no occupation which has the Preferred flag set, this will return the first one." So the first (or only) birth fact will be displayed if there is no birth with the preferred flag. I have tested and verified this.

There is a different expression for displaying only a preferred fact, which uses the [prefonly] index. That is the one which returns nothing if there is no fact of that type with the preferred flag.
Lorna

User avatar
tatewise
Megastar
Posts: 27087
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Diagram > Preferred Facts

Post by tatewise » 09 Feb 2021 10:01

OK, I stand corrected. There are several new features like that which take time to learn.

That same Help section on Preferred says nothing about Private, Tentative & Rejected fact flags.
The Data Reference Assistants offer all four fact flags as index options but not the PrefOnly variant.

Are there PrivOnly, TentOnly & RejOnly variants?

IMO there need to be some improvements to both the Help and the DRA in this regard.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
David Potter
Megastar
Posts: 957
Joined: 22 Jun 2016 15:54
Family Historian: V7
Location: United Kingdom

Re: Diagram > Preferred Facts

Post by David Potter » 09 Feb 2021 15:49

Hi both. So what am I to enter if anything? I'm a little confused.

Thank you

David

User avatar
tatewise
Megastar
Posts: 27087
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Diagram > Preferred Facts

Post by tatewise » 09 Feb 2021 15:56

In a custom Text Scheme add Birth from Available Items and Instance will have Preferred as an option, so choose that.
Move that new Birth item up to where the original Birth is and then delete X that original Birth item.

That should display the Birth event with the Preferred flag, but if none it will display the 1st Birth event.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
David Potter
Megastar
Posts: 957
Joined: 22 Jun 2016 15:54
Family Historian: V7
Location: United Kingdom

Re: Diagram > Preferred Facts

Post by David Potter » 09 Feb 2021 18:22

Thank you Mike. That worked out okay.

Much appreciated.

David

avatar
David Potter
Megastar
Posts: 957
Joined: 22 Jun 2016 15:54
Family Historian: V7
Location: United Kingdom

Re: Diagram > Preferred Facts

Post by David Potter » 09 Feb 2021 18:23

Sorry - and thanks to Lorna also.

Post Reply