I have custom fact types and I have run into a situation I don't understand. In a narrative report if I have an address field in the fact type it works not to my liking. If the address field is blank then it does not print out. If put address into my sentence structure it does what I requested. If I don't have the address in my sentence structure and there is a value in the address field it appears the FH6 puts out the address in the narrative report anyway.
What am I doing wrong and can I fix this issue?
* Sentence generated in Narrative
-
TMG_refugee
- Diamond
- Posts: 97
- Joined: 14 Nov 2015 15:44
- Family Historian: V7
-
jbtapscott
- Superstar
- Posts: 483
- Joined: 19 Nov 2014 17:52
- Family Historian: V7
- Location: Corfu, Greece
- Contact:
Re: Sentence generated in Narrative
On "my" version of the Individual Narrative Report I don't get this problem. The first part of the sentence structure I use for, say "Marriage" is "<br>{individual} married< {spouse/her/him}> {date}< at {address}> {place} {their ages}. " (I use a similar structure in other Standard and Custom Events). If I remove the "< at {address}>", then no Address is included on my report.
What is your sentence structure?
What is your sentence structure?
Brent Tapscott ~ researching the Tapscott and Wallace family history
Tapscott & Wallace family tree
Tapscott & Wallace family tree
- tatewise
- Megastar
- Posts: 27087
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Sentence generated in Narrative
As I have said before, always post the Expression or Template you are using to avoid us guessing what it is.
You know what it is, but we don't.
Did you read the Help provided in FH about using the {address} Template code?
Are you changing the custom fact definition via Tools > Fact Types > Edit > Sentence Template or editing the the Sentence box in the Facts tab of Property Box?
You know what it is, but we don't.
Did you read the Help provided in FH about using the {address} Template code?
Are you changing the custom fact definition via Tools > Fact Types > Edit > Sentence Template or editing the the Sentence box in the Facts tab of Property Box?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
-
TMG_refugee
- Diamond
- Posts: 97
- Joined: 14 Nov 2015 15:44
- Family Historian: V7
Re: Sentence generated in Narrative
Someone in our genealogy group suggested I try several different iterations of my fact and various sentence structures to define when the event is occurring. All my changes were done through the Tools> Fact Types screen.
My fact is defined as:
Name: Anecdote
Label: Anecdote
Abbreviation: blank
Sentence template: {note}
All fields required checked. Date, Age, Place, Address, Note.
When adding the fact to a person the data entry screen comes up with all fields available for input. I first filled in all fields. The sentence structure is {note}. The sentence generated in a narrative report was:
Anecdote Note . The address was: Anecdote address.
If I add the {address} field into the sentence structure along with the {note} for that fact I get:
Anecdote note. Anecdote address.
If I modify the fact so that the address field in the data entry screen is not there I get:
Anecdote note.
In some cases FH6 is putting in the address when I thought it should not be. I guess I will just list this as that how it works and adjust accordingly.
My fact is defined as:
Name: Anecdote
Label: Anecdote
Abbreviation: blank
Sentence template: {note}
All fields required checked. Date, Age, Place, Address, Note.
When adding the fact to a person the data entry screen comes up with all fields available for input. I first filled in all fields. The sentence structure is {note}. The sentence generated in a narrative report was:
Anecdote Note . The address was: Anecdote address.
If I add the {address} field into the sentence structure along with the {note} for that fact I get:
Anecdote note. Anecdote address.
If I modify the fact so that the address field in the data entry screen is not there I get:
Anecdote note.
In some cases FH6 is putting in the address when I thought it should not be. I guess I will just list this as that how it works and adjust accordingly.
- tatewise
- Megastar
- Posts: 27087
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Sentence generated in Narrative
OK, I understand, and here is the explanation.
In the Narrative Report Options you have ticked Inc. Event/Attr Addresses to include the Address field.
So the Sentence Template code {note} is producing Anecdote note.
and the Report Options setting is producing The address was: Anecdote address.
If you do not want that, then untick the Inc. Event/Attr Addresses option.
If the Sentence Template codes become {note} {address} they produce Anecdote note. Anecdote address. and the Report Options setting for Inc. Event/Attr Addresses is sensibly ignored, otherwise the Address would get listed twice.
If you remove the Address field value, then of course it is not included in either of the above alternatives.
In the Narrative Report Options you have ticked Inc. Event/Attr Addresses to include the Address field.
So the Sentence Template code {note} is producing Anecdote note.
and the Report Options setting is producing The address was: Anecdote address.
If you do not want that, then untick the Inc. Event/Attr Addresses option.
If the Sentence Template codes become {note} {address} they produce Anecdote note. Anecdote address. and the Report Options setting for Inc. Event/Attr Addresses is sensibly ignored, otherwise the Address would get listed twice.
If you remove the Address field value, then of course it is not included in either of the above alternatives.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
-
TMG_refugee
- Diamond
- Posts: 97
- Joined: 14 Nov 2015 15:44
- Family Historian: V7
Re: Sentence generated in Narrative
Thank you tatewise.
I tried this and it solved the problem.
It is so simple if you know the product well. I will learn and I am just starting to move data from RM7. I would like to get it all correct the first time if possible since I did not when moving from TMG to RM7. Good opportunity to clean up my past mistakes.
This is precisely why I like FH6 - its flexibility.
I tried this and it solved the problem.
It is so simple if you know the product well. I will learn and I am just starting to move data from RM7. I would like to get it all correct the first time if possible since I did not when moving from TMG to RM7. Good opportunity to clean up my past mistakes.
This is precisely why I like FH6 - its flexibility.