* expansion buttons for non-relative branches

Older V4 Queries please post for any version in the General Forum
Locked
avatar
Katja
Gold
Posts: 14
Joined: 21 Nov 2011 11:29
Family Historian: None

expansion buttons for non-relative branches

Post by Katja » 21 Nov 2011 11:53

I am new to Family Historian. I read the Book, tried in Help topics, searched the forum, but I have not found the solution to my problem.
Is it possible to add an expansion button for non-relative branches (e.g. for my brother-in-law's parents, my sister-in-law husband's family...) in 'All Relatives Diagram'? Or that there is just some sort of a mark in someone's box which means that there is another tree behind this person.
I have just a little over 400 people for now and I am already lost whose relatives I have recorded ... what will I do when I will have few thousand people [wink].
Well, I would just like to have a warning that says 'Hey, there are more people related to this person!'[smile]

Katja

ID:5578

User avatar
Jane
Site Admin
Posts: 8441
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

expansion buttons for non-relative branches

Post by Jane » 21 Nov 2011 12:04

Assuming you are on a All Relations diagram, expansion buttons are only shown when there are more relations to the root, your brother in laws parents are not your relations.

If you want to show them you can add an additional tree to the diagram to show them, alternately if you want to show every one you could use an everyone diagram, but that can get a little unwieldy with a large file.

Don't forget you can centre a diagram on anyone so if you want to check your brother in laws family just click on him and press the all relatives diagram for him.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

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

expansion buttons for non-relative branches

Post by tatewise » 21 Nov 2011 12:59

There is a Wish List Request to include all the Relatives in the same Pool as the Diagram Root.
This enhancement would give you what you have asked for.
See All Relatives Diagram Using Pool at
http://www.fhug.org.uk/cgi-bin/index.cg ... y&num=5524
You might like to add a comment to that posting.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
Katja
Gold
Posts: 14
Joined: 21 Nov 2011 11:29
Family Historian: None

expansion buttons for non-relative branches

Post by Katja » 21 Nov 2011 13:59

Thank you both for quick response! Unfortunately, that was not what I was looking for. Let me write an example. I do not want 'Everyone diagram', it is too confusing. 'All Relatives Diagram' works for me. But my mother has approx. 25 cousins with spouses (they are all on the diagram as they should be). For some of that spouses I have their relatives. But I do not know by heart for which of them I have information. I know I can look for anyone and have their tree presented (like Jane suggested), but I was hoping for a sign by a person's name, which tells me, that there are also their relatives. So that I do not just have to try for every one of them, if there is someone else or not. And if there is a sign, then I do like Jane suggested. For my brother-in law I know I have also his family, but for people not so close to me, I just can not memorize if I have someone else attached or not.
I hope you understand what I am looking for.

User avatar
Jane
Site Admin
Posts: 8441
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

expansion buttons for non-relative branches

Post by Jane » 21 Nov 2011 14:16

What you could do is display an icon on your diagram where the person has a family as child using an expression.

For example

Code: Select all

=Exists(%INDI.FAMC>%)
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

avatar
Katja
Gold
Posts: 14
Joined: 21 Nov 2011 11:29
Family Historian: None

expansion buttons for non-relative branches

Post by Katja » 21 Nov 2011 14:21

I ment something like this example from Geni.com. By Zoran there is a green tree that means there is his family tree behind. I want this feature so badly because I find it a waste of time clicking on everybody just to see if they have relatives or not.

Image

User avatar
Jane
Site Admin
Posts: 8441
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

expansion buttons for non-relative branches

Post by Jane » 21 Nov 2011 14:50

You can use icons to do this just set them up.

Another option would be to add a text scheme line to show the parents of a person on spouse boxes only.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

avatar
Katja
Gold
Posts: 14
Joined: 21 Nov 2011 11:29
Family Historian: None

expansion buttons for non-relative branches

Post by Katja » 21 Nov 2011 15:25

Jane, thank you a lot!!! [smile]
Just one more thing if I can bother you [oops] As I set the icon the way you told me, the icon is displayed also by my relatives (almost everyone in my tree has it, because they have parents, right?). Is it possible to set it just to non-relatives?

User avatar
Jane
Site Admin
Posts: 8441
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

expansion buttons for non-relative branches

Post by Jane » 21 Nov 2011 15:35

I can can't get an icon to work using an expression with [''] in, but you could output a line in the text scheme using

=IsTrue((RelationCode([''],%INDI%,SPOUSE_END,1) = 1) and Exists(%INDI.FAMC>%))


Which will output a Y for spouses with parents.

Alternately you could inverse the original condition and show an icon for those with no parents.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

avatar
Katja
Gold
Posts: 14
Joined: 21 Nov 2011 11:29
Family Historian: None

expansion buttons for non-relative branches

Post by Katja » 21 Nov 2011 16:08

Works well![smile]

If you come with a solution for an icon for non-relatives, please, let me know, because I prefer that option, but the one with text scheme is OK, too. Just one more thing - as you mentioned possibility of inversing the condition for icon - how do I do that?

Really thank you a lot again! Very nice of you to help beginners like me!
Thanks!
Katja

User avatar
Jane
Site Admin
Posts: 8441
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

expansion buttons for non-relative branches

Post by Jane » 21 Nov 2011 16:20

Code: Select all

=Not(Exists(%INDI.FAMC>%))
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

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

expansion buttons for non-relative branches

Post by tatewise » 21 Nov 2011 17:20

This Icon expression seems to work providing that your File Root is the same as you Diagram Root.
=IsTrue((RelationCode(FileRoot(),%INDI%,SPOUSE_END,1) = 1) and Exists(%INDI.FAMC>%))
It simply replaces [''] with FileRoot().
I know it means ensuring File Root = Diagram Root but otherwise gives what you want.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
Katja
Gold
Posts: 14
Joined: 21 Nov 2011 11:29
Family Historian: None

expansion buttons for non-relative branches

Post by Katja » 21 Nov 2011 19:05

I tried 'inversing condition for icon' way and tatewise's way, but I found that the 'Y' textsheme way is the closest to what I want. Inversing condition is also ok (but I would rather have people with families marked, not without). In tatewise's case is problem that the diagram doesn't adapt to change of the diagram root person (as he has already written)...

Well, I would much rather go with icons (the box is more emphasized), but Y is also great. It is just the matter of appearance.

I have another case where a spouse has children from a previous relationship - can the 'Y' (or if you find the way with icons - I am still hoping [wink]) also be set for spouses with children (and another partners)?

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

expansion buttons for non-relative branches

Post by tatewise » 21 Nov 2011 21:41

You can improve the appearance of Y, by substituting any text you prefer, using the following Text Scheme Template.
=TextIf(IsTrue((RelationCode([''],%INDI%,SPOUSE_END,1) = 1) and Exists(%INDI.FAMC>%)),'Has Ancestors','')

The 'Has Ancestors' text can be whatever you like. It could even be a symbol such as ® or §.

You can also make it any Font or Colour you like by inserting a Font Change Item above it.

So by choosing a large font and different colour it could look like:   §
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
PeterR
Megastar
Posts: 1129
Joined: 10 Jul 2006 16:55
Family Historian: V7
Location: Northumberland, UK

expansion buttons for non-relative branches

Post by PeterR » 21 Nov 2011 21:56

Does anyone know why the following expression:

Code: Select all

=IsTrue(Exists(%INDI.FAMC>%) and (RelationCode(['<root>'],%INDI%,SPOUSE_END,1) = 1))
which works OK in a diagram text scheme, and which is accepted as valid for a diagram box condition, does not work properly as a box condition?

Is it a bug?
Peter Richmond (researching Richmond, Bulman, Martin, Driscoll, Baxter, Hall, Dales, Tyrer)

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

expansion buttons for non-relative branches

Post by tatewise » 21 Nov 2011 22:39

There are some other oddities in this area.

Firstly I can find no documentation on the Diagram Root code [''].
It simply appears in the Text Scheme called Name, Dates, How Related to Chart Root in the Relationship to Chart Root item Template.

The Template expression RelationCode([''],%INDI%,SPOUSE_END,1) only works if a single Individual is chosen as the Diagram Root, and not if a Family Couple are chosen.

Interestingly in Condition > Expressions
the following oddly returns true for every box: =IsSameItem([''],%INDI%)
whereas
the following only returns true for the File Root: =IsSameItem(FileRoot(),%INDI%)
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
Katja
Gold
Posts: 14
Joined: 21 Nov 2011 11:29
Family Historian: None

expansion buttons for non-relative branches

Post by Katja » 21 Nov 2011 23:23

Thank you again, tatewise, it looks much more appealing!

As I asked before, do you happen to know if a code like this exists also for children and other spouses of a non-relative?

And a question out of the topic - I created my own text scheme. Marriage info is shown only in spouse's box. How can I put it also in my relative's box?

I appreciate your help a lot!!!

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

expansion buttons for non-relative branches

Post by tatewise » 21 Nov 2011 23:57

I assume you have entered a standard Marriage Event Item into your Custom Text Scheme with default Box Types and Conditions settings.
If so then change all four Display option for Spouse/Remarriage Boxes to any.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
Katja
Gold
Posts: 14
Joined: 21 Nov 2011 11:29
Family Historian: None

expansion buttons for non-relative branches

Post by Katja » 22 Nov 2011 00:26

1. When I do so, it shows only the last marriage date, not from the first spouse.

2. Please, what about the symbol for other spouse's relatives?

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

expansion buttons for non-relative branches

Post by tatewise » 22 Nov 2011 09:47

The Template to show all Marriages is:
Marr: %INDI.FAMS[1+]>MARR.DATE:ABBREV% in %INDI.FAMS[1+]>MARR.PLAC:SHORT%
Here the special looping index [1+] lists all spouse families.

The Expression for additional Spouses is:
=Exists(%INDI.FAMS[2]>%)
Here the index [2] indicates there is more than one marriage/spouse.

The Expression for any Children is:
=Exists(%INDI.~CHIL>%)
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Jane
Site Admin
Posts: 8441
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

expansion buttons for non-relative branches

Post by Jane » 22 Nov 2011 10:11

To show additional children could be tricky as you need to know which Family as Spouse is currently active and then work out if there are children on another marriage, I can't at the moment think of an expression to do this.

I tried

=calc(childcount(%INDI) - childcount(%FAM%))


but the double context requirement meant the function did not work as expected.

Children =ChildCount(%INDI%)(=ChildCount(%FAM%))

Will work and would show the total number of children for the spouse and the number in the current family in brackets.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

avatar
Katja
Gold
Posts: 14
Joined: 21 Nov 2011 11:29
Family Historian: None

expansion buttons for non-relative branches

Post by Katja » 22 Nov 2011 10:39

I figured it out!!! [grin]

Since additional child needs a parent (which is additional spouse-even if unknown), I do not have to bother with children. Then I joined parents and spouses (to avoid duplication of symbols in some cases):

=TextIf(IsTrue((RelationCode([''],%INDI%,SPOUSE_END,1) = 1) and Exists(%INDI.FAMC>%)) or IsTrue((RelationCode([''],%INDI%,SPOUSE_END,1) = 1) and Exists(%INDI.FAMS[2]>%)),'§','')

And it works perfect!!!

I believe that this shows presence of any additional person attached to non-relative (all are connected through parents or spouses).

Thank you both, tatewise and Jane, for your help and patience!

Katja

Locked