I have a flag called FindaGrave. Is there an expression I can use that will check this Flag if there is a Burial Event listed?
Also, for a different challenge; I am using the following expression to list a Census year if there is a Census Fact entered:
%INDI.CENS[YEAR=1850].DATE:YEAR%
and this expression to list a Population Register year if there is an Pop. Register Fact entered:
%INDI._ATTR-POP_REGISTER_NL[YEAR=1850].DATE:YEAR%
Is it possible to combine the two expressions to show the year if either one or the other Fact occurs?
Thank You!
* Expressions and Flag Questions
- tatewise
- Megastar
- Posts: 27078
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Expressions and Flag Questions
Yes:
=IsTrue( Exists(%INDI._FLGS.__FINDAGRAVE%) and Exists(%INDI.BURI%) )
=CombineText( , %INDI.CENS[year=1850].DATE:YEAR%, , %INDI._ATTR-POP_REGISTER_NL[year=1850].DATE:YEAR% )
=IsTrue( Exists(%INDI._FLGS.__FINDAGRAVE%) and Exists(%INDI.BURI%) )
=CombineText( , %INDI.CENS[year=1850].DATE:YEAR%, , %INDI._ATTR-POP_REGISTER_NL[year=1850].DATE:YEAR% )
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Re: Expressions and Flag Questions
Thank you Mike.
I must be doing something wrong, because I get a warning that says "Data Reference is invalid, or not valid for this context".
I'm suppose to be plugging these into the Data Reference field for the Flag on the first one and in the Census Data Reference field for the other. Is that correct?
I must be doing something wrong, because I get a warning that says "Data Reference is invalid, or not valid for this context".
I'm suppose to be plugging these into the Data Reference field for the Flag on the first one and in the Census Data Reference field for the other. Is that correct?
- Attachments
-
- Census & Pop. Register.PNG (103.54 KiB) Viewed 337 times
-
- FindaGrave.PNG (134.6 KiB) Viewed 337 times
- tatewise
- Megastar
- Posts: 27078
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Expressions and Flag Questions
Sorry, I thought you wanted Expressions that would work in a Query or Records Window Column or Report or Diagram.
It is a good idea to specify the context in which you want to use such things.
They are totally unsuitable for customising Property Box fields because (strangely) they only allow Data References and not any Expressions or Functions.
You can add the FindAGrave flag using %INDI._FLGS.__FINDAGRAVE% as you have for FamSearch.
The other items can only be entered as separate Data References.
It is a good idea to specify the context in which you want to use such things.
They are totally unsuitable for customising Property Box fields because (strangely) they only allow Data References and not any Expressions or Functions.
You can add the FindAGrave flag using %INDI._FLGS.__FINDAGRAVE% as you have for FamSearch.
The other items can only be entered as separate Data References.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Re: Expressions and Flag Questions
I checked to make sure the expressions matched the Data References and tweaked the one expression to match my FINDAGR, and tried again, but I still get the same error. Any idea what I'm doing wrong? See below for updated expression and my Data References:
=IsTrue( Exists(%INDI._FLGS.__FINDAGR%) and Exists(%INDI.BURI%) )
=CombineText( , %INDI.CENS[year=1850].DATE:YEAR%, , %INDI._ATTR-POP_REGISTER_NL[year=1850].DATE:YEAR% )
=IsTrue( Exists(%INDI._FLGS.__FINDAGR%) and Exists(%INDI.BURI%) )
=CombineText( , %INDI.CENS[year=1850].DATE:YEAR%, , %INDI._ATTR-POP_REGISTER_NL[year=1850].DATE:YEAR% )
- Attachments
-
- My Data Ref.PNG (48.5 KiB) Viewed 316 times
Re: Expressions and Flag Questions
Sorry Mike, I think our posts were sent at the same time.
Okay, sorry about not specifying the final use.
, but now I have the expressions to use in the other areas, which will help out also.
Thank you very much!
Okay, sorry about not specifying the final use.
Thank you very much!