* Add Cause of Death to Pedigree Diagram Boxes

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
BobWard
Superstar
Posts: 413
Joined: 18 Nov 2012 01:50
Family Historian: V6.2
Location: Mesa, Arizona, USA

Add Cause of Death to Pedigree Diagram Boxes

Post by BobWard » 30 Jun 2021 18:07

I am trying to find a way to add the Cause of death item to the pedigree diagram boxes.

I don't find Cause of death as an option in any of the Text Schemes under Diagram Options>Text. Even when editing the text schemes, I do not find it as an item to select. However, I can select the Birth, Marr, Death + Notes text scheme which does include cause of death, but then it brings in all the lengthy notes as well.

So, is there an easy way to add just the Cause of death to the Pedigree diagram boxes without having to include all the notes as well?

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

Re: Add Cause of Death to Pedigree Diagram Boxes

Post by LornaCraig » 30 Jun 2021 19:13

Yes, it's %INDI.DEAT[1].CAUS%

When using a Pedigree chart you need to select the Custom option for Contents, then Edit.
Lorna

avatar
BobWard
Superstar
Posts: 413
Joined: 18 Nov 2012 01:50
Family Historian: V6.2
Location: Mesa, Arizona, USA

Re: Add Cause of Death to Pedigree Diagram Boxes

Post by BobWard » 30 Jun 2021 20:44

Thanks Lorna. That expression worked, but it lists the cause of death twice. See attached screenshot.

My edited template is: =ExistsText(%INDI.DEAT[1+]%,"Died:") %INDI.DEAT[1+].DATE:COMPACT% in %INDI.DEAT[1+].PLAC:TIDY%. Cause: %INDI.DEAT.CAUS%
Cause of Death.jpg
Cause of Death.jpg (141.31 KiB) Viewed 1661 times

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

Re: Add Cause of Death to Pedigree Diagram Boxes

Post by tatewise » 30 Jun 2021 20:49

I suspect you need to add the [1+] looping index to the CAUS component.
e.g.
=ExistsText(%INDI.DEAT[1+]%,"Died:") %INDI.DEAT[1+].DATE:COMPACT% in %INDI.DEAT[1+].PLAC:TIDY%. Cause: %INDI.DEAT[1+].CAUS%

Either that or remove the [1+] index from them all. The looping index is only needed if you have multiple Death facts.
It is crucial that the index is the same for every similar data ref in one Template.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
BobWard
Superstar
Posts: 413
Joined: 18 Nov 2012 01:50
Family Historian: V6.2
Location: Mesa, Arizona, USA

Re: Add Cause of Death to Pedigree Diagram Boxes

Post by BobWard » 01 Jul 2021 03:39

I suspect you need to add the [1+] looping index to the CAUS component.
Yep, that fixed the problem. Lorna had that in her response and I somehow managed to exclude it when I made the edit to my template.

Thanks,
Bob

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

Re: Add Cause of Death to Pedigree Diagram Boxes

Post by tatewise » 01 Jul 2021 09:18

To be pedantic, Lorna only had [1] in her response, which would also have failed in the same way.

In both FH v6.2 and FH v7.0, in the Edit Text Scheme dialogue, whenever a Fact Item is added there are separate tick options for Date, Place, Age and also Cause.

Unfortunately, that level of options is not available in a Pedigree Chart.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

Post Reply