I currently have a text scheme which shows the relationship to root on my chart, but can't figure out a way to omit it for the root person, so that it doesn't display the relationship as "My root".
Can someone come to my rescue?
Regards, Norman
* Relationship to Root on Chart
- normandowns
- Gold
- Posts: 22
- Joined: 26 Apr 2003 00:04
- Family Historian: V7
- tatewise
- Megastar
- Posts: 28414
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Relationship to Root on Chart
I would expect it to say just root not My root or perhaps you have added the prefix My to the Template.
I guess in your Text Scheme you have chosen one of the predefined Relationship to ... items or perhaps you have selected one of the Names, Dates, How related to ... standard Text Schemes.
Anyway, on the Diagram > Options > Text tab, select the Text Scheme and click Edit Text Scheme... or if you would prefer to keep the change separately use Clone... and then edit the custom copy.
In the Used Items list locate the Relationship to ... item and click Edit button below.
Change the Template to use the =TextIf( ... ) function to conditionally call the =Relationship( ... ) function:
My =TextIf( IsSameItem(%INDI%,FileRoot()), , Relationship(FileRoot(),%INDI%,TEXT,1) )
i.e.
If the current Individual %INDI% is the same as the FileRoot() then display nothing otherwise use Relationship function.
I guess in your Text Scheme you have chosen one of the predefined Relationship to ... items or perhaps you have selected one of the Names, Dates, How related to ... standard Text Schemes.
Anyway, on the Diagram > Options > Text tab, select the Text Scheme and click Edit Text Scheme... or if you would prefer to keep the change separately use Clone... and then edit the custom copy.
In the Used Items list locate the Relationship to ... item and click Edit button below.
Change the Template to use the =TextIf( ... ) function to conditionally call the =Relationship( ... ) function:
My =TextIf( IsSameItem(%INDI%,FileRoot()), , Relationship(FileRoot(),%INDI%,TEXT,1) )
i.e.
If the current Individual %INDI% is the same as the FileRoot() then display nothing otherwise use Relationship function.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
- normandowns
- Gold
- Posts: 22
- Joined: 26 Apr 2003 00:04
- Family Historian: V7
Re: Relationship to Root on Chart
Thanks Mike, that worked just fine.
I had realised that I needed to use =TextIf() but wasn't getting the syntax right to make it work.
Regards, Norman
I had realised that I needed to use =TextIf() but wasn't getting the syntax right to make it work.
Regards, Norman