* Ancestral Sources - Remove Flag Support?

AS allows faster and more convenient creation of source records for Family Historian.
User avatar
PyreneesPirate
Famous
Posts: 144
Joined: 06 Feb 2009 20:30
Family Historian: V7
Location: Montamat, SW France

Re: Ancestral Sources - Remove Flag Support?

Post by PyreneesPirate » 18 Dec 2020 18:20

Oh I forgot, Headstone is burial of course and I use the Twin and Will icons.

WW1, Emigrated, More work to required (perhaps I can change this to Research Notes in FH7), Adopted, Living and Private, I tend to use colours or different borders.

Hope this helps

User avatar
PyreneesPirate
Famous
Posts: 144
Joined: 06 Feb 2009 20:30
Family Historian: V7
Location: Montamat, SW France

Re: Ancestral Sources - Remove Flag Support?

Post by PyreneesPirate » 18 Dec 2020 19:18

OK I have managed with your help to Remove the Flags for all the Census entries via the Named Lists and Record Flags option and also from the Diagram boxes, the Expressions seem to be working in their place.

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

Re: Ancestral Sources - Remove Flag Support?

Post by tatewise » 18 Dec 2020 20:00

Excellent. You will never need to manage Census Flags ever again, because as soon as you add a Census Event then its Icon will appear on Diagrams providing you have an Expression for that year.

At some later date, you may obtain Census Records from other countries such as Canada that have similar Census years.
If your Census Icons are specifically for the UK, then the Expressions will need amending to differentiate countries.
However, we can cross that bridge when we come to it.

Some record Flags may never be replaced by Expressions, such as Living, Private, Twin & WW1.

The record flags Adopted, Baptism, Emigrated & Headstone can be replaced by Expressions for %INDI.ADOP%, %INDI.BAPM%, %INDI.EMIG% & %INDI.BURI% assuming each Flag is associated with those facts.

The Birth/Marriage/Death Record and Certificate flags are a bit more complex.
The technique often used is to check the Source record Type for the first Citation against the Birth/Marr/Death event.
e.g.
=IsTrue( %INDI.BIRT.SOUR>_TYPE% = "Birth Certificate" )
=IsTrue( %INDI.DEAT.SOUR>_TYPE% = "Death Record" )
But there are many other possibilities.
e.g.
=IsTrue( Exists(%INDI.BIRT.SOUR%) and not(%INDI.BIRT.SOUR>_TYPE% = "Birth Certificate") )
i.e. The Birth event has a citation but the Source record Type is not Birth Certificate
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
PyreneesPirate
Famous
Posts: 144
Joined: 06 Feb 2009 20:30
Family Historian: V7
Location: Montamat, SW France

Re: Ancestral Sources - Remove Flag Support?

Post by PyreneesPirate » 18 Dec 2020 21:15

Thanks Mike, great info.

OK I never though I'd start to understand Expressions, but I am taking small steps forward, thank you. It looks a very powerful part of the program. I recognise a bit from the Query option, is that right?

I have Birth Record, Marriage Record and Death Record.....I would be happy to set the Icons BR, MR and DR if there was any date / year / quarter in the respected Birth, Marriage and Death date field.

Birth Cert, I will almost certainly have a Source attached for this , same with Marriage Cert and Death Cert.

Nearly there, any ideas on these last 6 items....

I was thinking, is there an Expression which says Source has a text string Certificate Birth, Certificate Marriage and Certificate Death to set the linked BC, MC and DC Icons?

Thanks PP

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

Re: Ancestral Sources - Remove Flag Support?

Post by tatewise » 18 Dec 2020 21:52

Yes, the same Expression concepts apply all over the program. See Understanding Expressions.

Are you saying you want to check for "Certificate Birth" appearing anywhere in a Source record because it is not guaranteed to appear in any particular field but will exist somewhere?

=ContainsText( %INDI.BIRT.SOUR>%, "Certificate Birth" ) should do that for Birth.
=ContainsText( %INDI.DEAT.SOUR>%, "Certificate Death" ) should do that for Death.
=ContainsText( %CUR_FAMS>MARR.SOUR>%, "Certificate Marriage" ) should work for Marriage and is a bit more tricky because the current Family record is involved.

For the BMD Record cases, the Expression must test for a Date but also exclude the cases above.

=IsTrue( Exists( %INDI.BIRT.DATE% ) and not( ContainsText( %INDI.BIRT.SOUR>%, "Certificate Birth" ) ) )
=IsTrue( Exists( %INDI.DEAT.DATE% ) and not( ContainsText( %INDI.DEAT.SOUR>%, "Certificate Death" ) ) )
=IsTrue( Exists(%CUR_FAMS>MARR.DATE%) and not( ContainsText(%CUR_FAMS>MARR.SOUR>%,"Certificate Marriage")))

I think I've got those Expressions correct but have not tested them.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
PyreneesPirate
Famous
Posts: 144
Joined: 06 Feb 2009 20:30
Family Historian: V7
Location: Montamat, SW France

Re: Ancestral Sources - Remove Flag Support?

Post by PyreneesPirate » 18 Dec 2020 22:39

Thanks again Mike,

I actually found the ContainsText string but still had the other string with it, so I either had all BC showing on all persons or none at all!!!

First three worked a treat.......

For the Birth record, I think I may have got it wrong.....if we use the Birth date target field and include the year, it puts the Birth record icon against all the people where their DOB has been calculated from a Census and could be wrong by a year or two. Is there a way of saying full date or qtr date only in the string?? Just asking :roll: If it's taking too much time then please let me know.

It's either that or I'll have to take a stab at converting quarter dates like Sept 1930 to 1 Sep 1930, then I would have a real date to go at.

Nearly there though.

Thanks again
PP

User avatar
PyreneesPirate
Famous
Posts: 144
Joined: 06 Feb 2009 20:30
Family Historian: V7
Location: Montamat, SW France

Re: Ancestral Sources - Remove Flag Support?

Post by PyreneesPirate » 19 Dec 2020 09:35

Ok Mike,

Five of the six work fine thank you very much, it's now down to the best way of interpreting the Birth Record.

I am thinking of designing a query on Birth date to show all the individuals without a proper date and possible attached source. But how do I design it so that Estimate Census years with a Census Source are not picked up on the query please?

What do you advise is the best route please?

Thanks
PP

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

Re: Ancestral Sources - Remove Flag Support?

Post by tatewise » 19 Dec 2020 11:41

I've got a bit lost with what you have achieved and the nature of the DOB problem.
You mentioned "use the Birth date target field and include the year" but none of my Expression involves the year.
They just test for the existence of any Date in any form.

I think you are saying you don't want an Icon when the DOB is only a Year but must involve at least a month or a quarter.
When you set such a Date is there no consistent type of Source Citation that could be identified using ContainsText?

If it needs to test for a Date with a Month or a Quarter (between date) then this should do it:

=IsTrue(((%INDI.BIRT.DATE:MONTH_NUMBER% > 0) or (%INDI.BIRT.DATE:XDATETYPE% = "between")) and Not(ContainsText(%INDI.BIRT.SOUR>%,"Certificate Birth",STD)))
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
PyreneesPirate
Famous
Posts: 144
Joined: 06 Feb 2009 20:30
Family Historian: V7
Location: Montamat, SW France

Re: Ancestral Sources - Remove Flag Support?

Post by PyreneesPirate » 19 Dec 2020 12:53

Genius Mike.....does the job spot on, I'm well pleased. I have now remove all flags on the main data sources. Will still use flags for Will and Twins etc.

A question......what is the best way of getting up to speed on the Expression facility....Manual, Online trial and error. Do you have to learn a programming style to use it?

Thanks very much again.

PP

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

Re: Ancestral Sources - Remove Flag Support?

Post by tatewise » 19 Dec 2020 13:11

Yes, all those methods :lol: It is a form of programming so you have to be precise.
Even I have to resort to trial & error and testing sometimes, which I needed to do for that complex DOB Expression.

Start with the KB Understanding Expressions article.
Expressions comprise two features: Data References and Functions.
See Understanding Data References and Understanding Functions articles.
All those articles have links into the FH v6 Help pages that are the technical reference.

There is a Data Reference Assistant via a button to the right of most Expression boxes; such as [...] or <<Insert.
That helps you compose valid Data References but there is nothing similar for Functions.

Do experiment as Expressions only extract information and never write anything so your data is safe.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

Post Reply