* Custom Query - Include parameter in sub title

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
avatar
Seeker
Gold
Posts: 28
Joined: 02 Aug 2012 13:26
Family Historian: V7
Location: South Yorkshire

Custom Query - Include parameter in sub title

Post by Seeker » 31 Mar 2020 11:31

Hi

I've seen this post Custom queries (6716)
and tried this as a custom subtitle
=Individual(['QueryRoot'])

The query works well, but when I look at print preview the subtitle is just the text of the function.
Any ideas as to what may be wrong?
Seeker

FH 7.0.17.1 on Windows 10 Home

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

Re: Custom Query - Include parameter in sub title

Post by tatewise » 31 Mar 2020 11:54

In FH V6, the parameter name must now be enclosed in "double string quotes" as elsewhere in your Query.
e.g.
=Individual(["QueryRoot"])
or
=Name(["QueryRoot"]) should work too.

However, it does depend on the data type of the "QueryRoot" parameter being an Individual Record.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
Seeker
Gold
Posts: 28
Joined: 02 Aug 2012 13:26
Family Historian: V7
Location: South Yorkshire

Re: Custom Query - Include parameter in sub title

Post by Seeker » 31 Mar 2020 15:31

Many thanks. Both individual and name now work.
On my first attempt individual didn't work, so I tried name and that worked, so then I tried individual again and that then worked!
Seeker

FH 7.0.17.1 on Windows 10 Home

Post Reply