Expression for file roots wife
Posted: 04 Feb 2020 16:17
I have a query of type fact which is currently showing the Ahnentafel Number of the owner of the selected events (census) relative to myself (I'm file root).
Column expression =AhnentafelNumber(FileRoot(),GetRecord(%FACT%),1)
That works as expected.
I'd like to add a column to show the Ahnentafel Number relative to my wife (there would be a number on one or other, or both would be blank). Everything I've tried gives an error when I try to update. This is my latest attempt:
=AhnentafelNumber(getrecord(%CUR_FILE_ROOT.~SPOU[1]>%),GetRecord(%FACT%),1)
which gives the error "Invalid expression for the current query type.". Can someone give me the correct expression to achieve what I want please?
(If I add a column %CUR_FILE_ROOT.~SPOU[1]>% to correctly shows my wife so that is valid in the current query type)
Column expression =AhnentafelNumber(FileRoot(),GetRecord(%FACT%),1)
That works as expected.
I'd like to add a column to show the Ahnentafel Number relative to my wife (there would be a number on one or other, or both would be blank). Everything I've tried gives an error when I try to update. This is my latest attempt:
=AhnentafelNumber(getrecord(%CUR_FILE_ROOT.~SPOU[1]>%),GetRecord(%FACT%),1)
which gives the error "Invalid expression for the current query type.". Can someone give me the correct expression to achieve what I want please?
(If I add a column %CUR_FILE_ROOT.~SPOU[1]>% to correctly shows my wife so that is valid in the current query type)