* Function problem in sentences

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
Post Reply
User avatar
Robert Jacobs
Famous
Posts: 111
Joined: 21 Mar 2015 18:03
Family Historian: V7
Location: Ellensburg, Washington, U.S.A.
Contact:

Function problem in sentences

Post by Robert Jacobs » 07 Feb 2022 18:11

I must be doing something so spectacularly obvious that I don't see it. I'm trying out some functions in sentence templates and I can't get them to work:

{individual} was remembered as the {=Parentage(%INDI%)}

returns only "He was remembered as the."

This is an example; I know there are other ways to get the result, but why does the function fail?

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

Re: Function problem in sentences

Post by tatewise » 07 Feb 2022 18:23

Sentence Templates operate in the context of the current %FACT% and so %INDI% has no meaning.
You need to use the Contextual Data Reference %CUR_PRIN%.
See the FHUG Knowledge Base Understanding Data References and the FH Help page Understanding Data References under Contextual Data References.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Robert Jacobs
Famous
Posts: 111
Joined: 21 Mar 2015 18:03
Family Historian: V7
Location: Ellensburg, Washington, U.S.A.
Contact:

Re: Function problem in sentences

Post by Robert Jacobs » 07 Feb 2022 18:25

Thanks, Mike. RTFM all over again . . . :)

Post Reply