Page 1 of 1

expansion buttons for non-relative branches

Posted: 21 Nov 2011 11:53
by Katja
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

expansion buttons for non-relative branches

Posted: 21 Nov 2011 12:04
by Jane
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.

expansion buttons for non-relative branches

Posted: 21 Nov 2011 12:59
by tatewise
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.

expansion buttons for non-relative branches

Posted: 21 Nov 2011 13:59
by Katja
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.

expansion buttons for non-relative branches

Posted: 21 Nov 2011 14:16
by Jane
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>%)

expansion buttons for non-relative branches

Posted: 21 Nov 2011 14:21
by Katja
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

expansion buttons for non-relative branches

Posted: 21 Nov 2011 14:50
by Jane
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.

expansion buttons for non-relative branches

Posted: 21 Nov 2011 15:25
by Katja
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?

expansion buttons for non-relative branches

Posted: 21 Nov 2011 15:35
by Jane
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.

expansion buttons for non-relative branches

Posted: 21 Nov 2011 16:08
by Katja
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

expansion buttons for non-relative branches

Posted: 21 Nov 2011 16:20
by Jane

Code: Select all

=Not(Exists(%INDI.FAMC>%))

expansion buttons for non-relative branches

Posted: 21 Nov 2011 17:20
by tatewise
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.

expansion buttons for non-relative branches

Posted: 21 Nov 2011 19:05
by Katja
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)?

expansion buttons for non-relative branches

Posted: 21 Nov 2011 21:41
by tatewise
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:   §

expansion buttons for non-relative branches

Posted: 21 Nov 2011 21:56
by PeterR
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?

expansion buttons for non-relative branches

Posted: 21 Nov 2011 22:39
by tatewise
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%)

expansion buttons for non-relative branches

Posted: 21 Nov 2011 23:23
by Katja
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!!!

expansion buttons for non-relative branches

Posted: 21 Nov 2011 23:57
by tatewise
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.

expansion buttons for non-relative branches

Posted: 22 Nov 2011 00:26
by Katja
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?

expansion buttons for non-relative branches

Posted: 22 Nov 2011 09:47
by tatewise
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>%)

expansion buttons for non-relative branches

Posted: 22 Nov 2011 10:11
by Jane
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.

expansion buttons for non-relative branches

Posted: 22 Nov 2011 10:39
by Katja
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