* age at marriage on chart
age at marriage on chart
I have a chart displaying age at marriage as not expected and picture below.
The expressions I have for marriage are as below and have been cloned from a standard text scheme with no changes:-
The cloned expressions are:
=ExistsText(%CUR~FAMS>MARR%,"Marr:") %CUR~FAMS>MARR.DATE:COMPACT% in %CUR~FAMS>MARR.PLAC:TIDY%
His age: %CUR~FAMS>MARR.DATE:HUSBAND_AGE_AT%
Her age: %CUR~FAMS>MARR.DATE:WIFE_AGE_AT%
%CUR~FAMS>MARR.NOTE2%
Spouse: %CUR~SPOU>NAME:FULL%
I will post Eliza mar events next as maximum of 3 attachments
The expressions I have for marriage are as below and have been cloned from a standard text scheme with no changes:-
The cloned expressions are:
=ExistsText(%CUR~FAMS>MARR%,"Marr:") %CUR~FAMS>MARR.DATE:COMPACT% in %CUR~FAMS>MARR.PLAC:TIDY%
His age: %CUR~FAMS>MARR.DATE:HUSBAND_AGE_AT%
Her age: %CUR~FAMS>MARR.DATE:WIFE_AGE_AT%
%CUR~FAMS>MARR.NOTE2%
Spouse: %CUR~SPOU>NAME:FULL%
I will post Eliza mar events next as maximum of 3 attachments
Re: age at marriage on chart
and her mar event:-
- tatewise
- Megastar
- Posts: 27088
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: age at marriage on chart
The problem is caused by:
His age: %CUR~FAMS>MARR.DATE:HUSBAND_AGE_AT%
Her age: %CUR~FAMS>MARR.DATE:WIFE_AGE_AT%
Those calculate the Age At Marriage by using the Birth Date and the Marriage Date.
I presume you want the actual Age values recorded in the Marriage Event:
His age: %CUR~FAMS>MARR.HUSB.AGE%
Her age: %CUR~FAMS>MARR.WIFE.AGE%
Family facts such as Marriage and Divorce are unusual because they have two Age fields HUSB.AGE and WIFE.AGE.
However, the concepts apply generally to Individual facts as well:
One calculates Age At using Date fields, e.g. %INDI.DEAT.DATE:AGE_AT%
The other displays explicit fact Age field, e.g. %INDI.DEAT.AGE%
His age: %CUR~FAMS>MARR.DATE:HUSBAND_AGE_AT%
Her age: %CUR~FAMS>MARR.DATE:WIFE_AGE_AT%
Those calculate the Age At Marriage by using the Birth Date and the Marriage Date.
I presume you want the actual Age values recorded in the Marriage Event:
His age: %CUR~FAMS>MARR.HUSB.AGE%
Her age: %CUR~FAMS>MARR.WIFE.AGE%
Family facts such as Marriage and Divorce are unusual because they have two Age fields HUSB.AGE and WIFE.AGE.
However, the concepts apply generally to Individual facts as well:
One calculates Age At using Date fields, e.g. %INDI.DEAT.DATE:AGE_AT%
The other displays explicit fact Age field, e.g. %INDI.DEAT.AGE%
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Re: age at marriage on chart
Thanks Mike,
I have gone for
%CUR~FAMS>MARR.HUSB%
%CUR~FAMS>MARR.WIFE%
Otherwise I get two "his age" and two "her age".
Would be nice to swap husband and wife names for actual names although I can go with the current solution.e.g. Charles age 24.
Perfect.
I have gone for
%CUR~FAMS>MARR.HUSB%
%CUR~FAMS>MARR.WIFE%
Otherwise I get two "his age" and two "her age".
Would be nice to swap husband and wife names for actual names although I can go with the current solution.e.g. Charles age 24.
Perfect.
Re: age at marriage on chart
Charles is the spouse.
- tatewise
- Megastar
- Posts: 27088
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: age at marriage on chart
Age of %CUR~FAMS>HUSB>NAME:FIRST%: %CUR~FAMS>MARR.HUSB.AGE%
Should display Age of Charles: 24 yrs
Age of %CUR~FAMS>WIFE>NAME:FIRST%: %CUR~FAMS>MARR.WIFE.AGE%
Should display Age of Hannah: 20 yrs
BTW: I forgot to add the AGE tag to the examples earlier, which is why you got His age: Husband's Age:, but now corrected.
BUT what if there is no actual Age recorded?
It should revert to the Age At calculations so use:
Age of %CUR~FAMS>HUSB>NAME:FIRST%: =CombineText( ,%CUR~FAMS>MARR.HUSB.AGE%, ,%CUR~FAMS>MARR.DATE:HUSBAND_AGE_AT%)
Age of %CUR~FAMS>WIFE>NAME:FIRST%: =CombineText( ,%CUR~FAMS>MARR.WIFE.AGE%, ,%CUR~FAMS>MARR.DATE:WIFE_AGE_AT%)
Should display Age of Charles: 24 yrs
Age of %CUR~FAMS>WIFE>NAME:FIRST%: %CUR~FAMS>MARR.WIFE.AGE%
Should display Age of Hannah: 20 yrs
BTW: I forgot to add the AGE tag to the examples earlier, which is why you got His age: Husband's Age:, but now corrected.
BUT what if there is no actual Age recorded?
It should revert to the Age At calculations so use:
Age of %CUR~FAMS>HUSB>NAME:FIRST%: =CombineText( ,%CUR~FAMS>MARR.HUSB.AGE%, ,%CUR~FAMS>MARR.DATE:HUSBAND_AGE_AT%)
Age of %CUR~FAMS>WIFE>NAME:FIRST%: =CombineText( ,%CUR~FAMS>MARR.WIFE.AGE%, ,%CUR~FAMS>MARR.DATE:WIFE_AGE_AT%)
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Re: age at marriage on chart
Thanks Mike looking good as per picture below. I guess if I tweak NAME:FIRST%: then more of the names would be displayed. That is for another day.
Kind regards Jonathan.
Kind regards Jonathan.
- tatewise
- Megastar
- Posts: 27088
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: age at marriage on chart
Yes, you could use any of the NAME qualifiers such as:
NAME:GIVEN_ALL gives all forenames
NAME:FULL gives forenames and surname
There is actually a simplification of the last two expressions I gave:
Age of %CUR~FAMS>HUSB>NAME:FIRST%: =EstimatedAgeAt(%CUR~FAMS>HUSB>%,%CUR~FAMS>MARR.DATE%,AVG,2) yrs
Age of %CUR~FAMS>WIFE>NAME:FIRST%: =EstimatedAgeAt(%CUR~FAMS>WIFE>%,%CUR~FAMS>MARR.DATE%,AVG,2) yrs
The =EstimatedAgeAt(...) function automatically uses the actual Age field, but if that is missing it uses the Age At calculation.
NAME:GIVEN_ALL gives all forenames
NAME:FULL gives forenames and surname
There is actually a simplification of the last two expressions I gave:
Age of %CUR~FAMS>HUSB>NAME:FIRST%: =EstimatedAgeAt(%CUR~FAMS>HUSB>%,%CUR~FAMS>MARR.DATE%,AVG,2) yrs
Age of %CUR~FAMS>WIFE>NAME:FIRST%: =EstimatedAgeAt(%CUR~FAMS>WIFE>%,%CUR~FAMS>MARR.DATE%,AVG,2) yrs
The =EstimatedAgeAt(...) function automatically uses the actual Age field, but if that is missing it uses the Age At calculation.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry