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.
-
baw
- Gold
- Posts: 20
- Joined: 04 May 2012 12:14
- Family Historian: V6
Post
by baw » 14 Feb 2015 22:26
A little knowledge is a dangerous thing...
I'm trying to list the witnesses to marriage events in my diagrams.
I've nicked
Tatewise's template (Thank you)
These are a little different for Family events such as Marriage and Divorce.
Template: Marr. Witness: %CUR_FAMS>MARR._SHAR[1+]% - %CUR_FAMS>MARR._SHAR[1+].ROLE%. %CUR_FAMS>MARR._SHAR[1+].NOTE2%
I have name only witnesses so used
_SHAN references instead. However I can't get it to loop. It only shows the first witness. Explicitly using
_SHAN[2] etc solves the problem, but why isn't the original attempt OK?
V6 under Windows7
Brian
PS I haven't been able to find references to
_SHAN in the help pages. Is it there?
-
tatewise
- Megastar
- Posts: 27082
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
-
Contact:
Post
by tatewise » 14 Feb 2015 22:49
Marriage Witnesses loop OK for me using:
Marr. Witness: %CUR_FAMS>MARR._SHAN[1+]% - %CUR_FAMS>MARR._SHAN[1+].ROLE%. %CUR_FAMS>MARR._SHAN[1+].NOTE2%
You won't find
_SHAR or
_SHAN tags in the
Help pages, but they are in each
Data Reference Assistant.
For
Text Scheme Templates click the
<<Insert button to open
Data Ref Assistant.
Then for
Marriage Witnesses expand
Current Family as Spouse + Events + Marriage + Witness (name only) and the
Data Reference tags are shown at the top.
Remember these only ever show 1st instance
[1] tags and must be edited by hand for looping
[1+] or 2nd
[2] or 3rd
[3] instances, etc.
You can also select
Witness> and expand to
Role and
Note, etc.
However, there is a bug and when you click the
Insert button FH says it is not valid, so Copy & Paste the
Data Ref instead. See
FH V6 Diagram Broken Data Refs (12009).
-
baw
- Gold
- Posts: 20
- Joined: 04 May 2012 12:14
- Family Historian: V6
Post
by baw » 14 Feb 2015 23:38
Still doesn't work.
Using the assistant as you suggested meant the template changed slightly to
%CUR_SP_FAMS>MARR._SHAN[1+]% rather than %CUR_FAMS>MARR._SHAN[1+]%
but still shows only one witness.
%CUR_SP_FAMS>MARR._SHAN[2]% shows the second.
Are there any other flags/boxes I need to set/tick?
I got started by cloning one of the BMD options, and adding the above.
Hmmmm.
I started again with the simple name only option, cloned it, and added the above template.
It worked.
??
Brian
-
baw
- Gold
- Posts: 20
- Joined: 04 May 2012 12:14
- Family Historian: V6
Post
by baw » 14 Feb 2015 23:42
On investigating further, I had group with previous line ticked. The previous line being the marriage detail templates I had cloned from my BMD options set.
Unticking solved the problem.
??
Brian
-
tatewise
- Megastar
- Posts: 27082
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
-
Contact:
Post
by tatewise » 15 Feb 2015 00:05
Yes, Group with previous line and Only output if previous iteme blank disrupt the looping.
You must have chosen Current Spouse's Family as Spouse and not Current Family as Spouse that I advised.
I am not sure under what circumstances it matters, but I would advise using my suggestion.
-
baw
- Gold
- Posts: 20
- Joined: 04 May 2012 12:14
- Family Historian: V6
Post
by baw » 15 Feb 2015 00:14
You must have chosen Current Spouse's Family as Spouse and not Current Family as Spouse that I advised.
I tried both. No difference.
Anyway, I've unticked the grouping box and I'm happy now.
Thank you for your help.
Brian
-
tatewise
- Megastar
- Posts: 27082
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
-
Contact:
Post
by tatewise » 15 Feb 2015 01:06
There may be no difference in the current Family scenario, but it may matter if the Spouses are involved with multiple Families and Marriages.
-
baw
- Gold
- Posts: 20
- Joined: 04 May 2012 12:14
- Family Historian: V6
Post
by baw » 15 Feb 2015 10:40
So have I got this right?
As Tatewise said, the problem does indeed lie in looping within a group.
Something simple like
%INDI.FAMS>MARR%
%INDI.FAMS>MARR._SHAN[1+]%
will not work if the second line is ticked as Group with previous line even though according to the help pages
You can use looping indices ......within an item group. .... you must ensure that all indices used in all data references in the template or templates involved, use the same looping index.
You can sort of get round this in this instance by not grouping but if I wanted a list of witnesses within a list of marriages
%INDI.FAMS[1+]>MARR%
followed by
%INDI.FAMS[1+]>MARR._SHAN[1+]%
this wouldn't work (reasonably enough) nevermind the above problem because
An Item Group only repeats if the first group item contains a looping index. If it does, other group items should contain looping indices to be consistent with it.
Fair enough, you can't have nested loops.
So... if I want list of witnesses for each marriage, it seems there isn't an easy way. ??
Over to the experts.
Brian
-
baw
- Gold
- Posts: 20
- Joined: 04 May 2012 12:14
- Family Historian: V6
Post
by baw » 15 Feb 2015 11:33
Ahh. If I had read Tatewise's posts on witnesses in diagrams elsewhere a bit better I would have spotted
It is NOT currently possible to have one Template that will loop through all Birth Events listing all Witnesses,
Which confirms what I thought.
Sorry to have duplicated matters.
Brian
-
tatewise
- Megastar
- Posts: 27082
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
-
Contact:
Post
by tatewise » 15 Feb 2015 14:22
But that is where %CUR_FAMS>MARR...% is superior to %INDI.FAMS[?]>MARR...%.
It refers to the currently displayed Family couple's Marriage in a Diagram.
Where Individuals are shown in a Diagram with multiple Spouses, each Box is only associated with one currrent Family, and the default Template only displays one Marriage Event, which may be the 1st, 2nd, 3rd, etc, Marriage. But that is only true if the %CUR_FAMS>MARR...% data ref is used rather than %INDI.FAMS[?]>MARR...%.
-
baw
- Gold
- Posts: 20
- Joined: 04 May 2012 12:14
- Family Historian: V6
Post
by baw » 15 Feb 2015 16:02
Yes, but I was trying to do it all in one box. Seems better to spread the info over one box per marriage.
-
tatewise
- Megastar
- Posts: 27082
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
-
Contact:
Post
by tatewise » 15 Feb 2015 19:05
To get it all in one box will required multiple Template Items to cover enough Marriage instances for the Marriage Events and Marriage Witnesses of both types.
e.g.
Marriage Template 1: %INDI.FAMS[1]>MARR%
Witness Template 1a: %INDI.FAMS[1]>MARR._SHAN[1+]%
Witness Template 1b: %INDI.FAMS[1]>MARR._SHAR[1+]%
Marriage Template 2: %INDI.FAMS[2]>MARR%
Witness Template 2a: %INDI.FAMS[2]>MARR._SHAN[1+]%
Witness Template 2b: %INDI.FAMS[2]>MARR._SHAR[1+]%
Marriage Template 3: %INDI.FAMS[3]>MARR%
Witness Template 3a: %INDI.FAMS[3]>MARR._SHAN[1+]%
Witness Template 3b: %INDI.FAMS[3]>MARR._SHAR[1+]%
and so on until you have catered for enough Marriages.
-
baw
- Gold
- Posts: 20
- Joined: 04 May 2012 12:14
- Family Historian: V6
Post
by baw » 16 Feb 2015 12:11
Thank you. I have learnt a lot over the last few days.
Brian