How to get from witnessed fact to the original fact?
Posted: 21 Mar 2022 13:09
Hi
I'm extracting Facts for each Individual using the fhIndGetFactList function, including their witness and timeline facts.
I'm struggling to see how, for a witness fact, I can get to the original Fact data that was witnessed.
For example: There is a Fact item A for Joe Bloggs witnessing the marriage of John Doe and Mary Foobar, and a Fact item B for John Doe marrying Mary Foobar. Given that I have the pointer for A, how can I get the pointer for B ?
I tried the Witness fields of the witness Fact, but these are blank (maybe because there was no witness to the witnessing and/or no way to record that?!)
Queries based on Fact (event or attribute) don't return Witness (or timeline) facts, so I can't prototype it in Query dialogue before coding it.
(I could load all Facts for everyone and then search for references to the Joe Bloggs but a bit resource heavy for thousands of individuals.)
Hoping that someone knows what function/expression would just get me to the original fact without effort!!
(BTW This also applies to Timeline facts and I'm hoping it's the same answer!)
Thanks in anticipation
Talln
(Extracting data for a custom website.)
I'm extracting Facts for each Individual using the fhIndGetFactList function, including their witness and timeline facts.
I'm struggling to see how, for a witness fact, I can get to the original Fact data that was witnessed.
For example: There is a Fact item A for Joe Bloggs witnessing the marriage of John Doe and Mary Foobar, and a Fact item B for John Doe marrying Mary Foobar. Given that I have the pointer for A, how can I get the pointer for B ?
I tried the Witness fields of the witness Fact, but these are blank (maybe because there was no witness to the witnessing and/or no way to record that?!)
Queries based on Fact (event or attribute) don't return Witness (or timeline) facts, so I can't prototype it in Query dialogue before coding it.
(I could load all Facts for everyone and then search for references to the Joe Bloggs but a bit resource heavy for thousands of individuals.)
Hoping that someone knows what function/expression would just get me to the original fact without effort!!
(BTW This also applies to Timeline facts and I'm hoping it's the same answer!)
Thanks in anticipation
Talln
(Extracting data for a custom website.)