* Expressions in diagram boxes

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
stuartd
Platinum
Posts: 40
Joined: 30 Oct 2012 21:20
Family Historian: V7
Location: Cumbria

Expressions in diagram boxes

Post by stuartd » 16 Nov 2015 18:38

Whilst I found some posts that seem to relate to this problem, I couldn't find an exact answer to my situation; and reference to the knowledge base left me even more confused....
I have used expressions to place an icon if I have birth/marr/death certificates for individuals, and this used to work fine. The birth/death ones still work OK (in version6) but the marriage ones don't display.
The expression I use for birth certs is : =IsTrue(%INDI.BIRT.SOUR>_TYPE% = "certificate")
The equivalent for marriages is : =IsTrue(%FAM.MARR[1+].SOUR>_TYPE% = "certificate")
I would be grateful if someone can suggest why the latter isn't working anymore.
Kind regards, Stuart

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

Re: Expressions in diagram boxes

Post by tatewise » 16 Nov 2015 19:08

Yes, it is new Contextual Data References that you need to use as explained in how_to:understanding_data_references|> Understanding Data References and using the examples in how_to:understanding_expressions|> Understanding Expressions.

For your scenario I think the following should work:
=IsTrue( %CUR_FAMS>MARR.SOUR>_TYPE% = "certificate" )

You do not need the [1+] looping index unless you have multiple MARRiage Events per Family couple.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
stuartd
Platinum
Posts: 40
Joined: 30 Oct 2012 21:20
Family Historian: V7
Location: Cumbria

Re: Expressions in diagram boxes

Post by stuartd » 18 Nov 2015 21:23

Thanks for your prompt reply, Mike. Sorry to be slow in acknowledging this, been pre-occupied with domestic matters courtesy of high winds and lots of rain!
I thought that it had something to do with the new arrangements for expressions but couldn't quite get my head around the available information. Now that I can see the changes in my specific example, I'll go back and look again at the Knowledge Base and hopefully be able to make more sense of it this time.
As ever, your help is very much appreciated.
Stuart
Kind regards, Stuart

Post Reply