*How To Suppress '( - )' in Reports

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile
edmacke
Diamond
Posts: 77
Joined: 21 Jul 2016 16:55
Family Historian: V6.2
Location: Chicago, IL, USA

How To Suppress '( - )' in Reports

Postby edmacke » 10 Jul 2018 16:41

For people with no known birth or death dates, I keep seeing the following in reports: John SMITH ( - )

I just want to suppress the ( - ), so it just shows like: John Smith

Under Format > Heading > Record, there seems to be an option to use =LifeDates() or =LifeDates2(), but I can't figure out how to suppress the parenthesis when there are no life dates, so the best I can get is John Smith ( ).

When the person is listed as a child or in the index, I don't see any way of controlling the display.

Isn't there a global way of specifying "don't display ( - ) when there are no dates to display"? I feel like I'm missing something obvious.

Thanks!!

User avatar
tatewise
Megastar
Posts: 14604
Joined: 25 May 2010 11:00
Family Historian: V6.2
Location: Torbay, Devon, UK
Contact:

Re: How To Suppress '( - )' in Reports

Postby tatewise » 10 Jul 2018 17:09

Yes, it is quite tricky if you need to customise all those possibilities. There is no overall setting.

In Format > Heading > Record you must replace (=LifeDates2()) with =CombineText("(",LifeDates(),")",)
i.e. when LifeDates() returns something then enclose in ( parentheses ), else nothing.

The section items such as Father, Mother, Spouse, Child need similar treatment, but is complicated by the fact that the default items cannot be edited.
So Parents, Spouses, and Children must be set to Hide, and replaced with a series of custom items.
e.g.
Father set as %INDI.~FATH[1]>% =CombineText("(",LifeDates(%INDI.~FATH[1]>%),")",)
Mother set as %INDI.~MOTH[1]>% =CombineText("(",LifeDates(%INDI.~MOTH[1]>%),")",)
and so on with data refs using instance indexes [2] and [3] et seq, and shortcut codes ~SPOU and ~CHIL
Set them all to Show if not empty.

In the Index the only option is to untick option Include Dates with Names to omit ALL life dates.

However, the above tactics may still not cater for every eventuality in every Report type.
Mike Tate ~ researching the Tate and Scott family history.

edmacke
Diamond
Posts: 77
Joined: 21 Jul 2016 16:55
Family Historian: V6.2
Location: Chicago, IL, USA

Re: How To Suppress '( - )' in Reports

Postby edmacke » 10 Jul 2018 17:25

Well, I guess the good news is that I wasn't really missing something obvious.

The bad news is those are all fairly icky workarounds (but thanks for documenting them!)

I'll put in an feature request, but I'm not sure whether to ask for a "Stop putting ( - ) everywhere when there's no dates" or "Allow editing of default items". I guess the first.


Return to “General Usage”

Who is online

Users browsing this forum: No registered users and 13 guests