Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
how_to:understanding_data_references [2018/07/05 12:04] tatewise [Introduction] |
how_to:understanding_data_references [2019/10/10 11:43] tatewise [Sentence Template Data References] |
||
---|---|---|---|
Line 121: | Line 121: | ||
^ %CUR_FILE_OWNER% | File Owner nearly everywhere | | ^ %CUR_FILE_OWNER% | File Owner nearly everywhere | | ||
^ %CUR_FILE_HEADER% | File Header nearly everywhere | | ^ %CUR_FILE_HEADER% | File Header nearly everywhere | | ||
+ | Narrative Sentence Templates:\\ | ||
+ | ^ %CUR_PRIN% | First or current principal for the fact | | ||
+ | ^ %CUR_PRIN2% | Second or other principal for the Family fact | | ||
+ | ^ %CUR~WITN% and %CUR~WITN>% | Current witness | | ||
Contextual data references behave like ordinary data references, in that you can expand them to refer to any detail of the record in question. For example, **%CUR_SPOU>SEX%** refers to the sex of the Individual's current spouse, and **%CUR_FILE_ROOT.SEX%** refers to the sex of the current file root. | Contextual data references behave like ordinary data references, in that you can expand them to refer to any detail of the record in question. For example, **%CUR_SPOU>SEX%** refers to the sex of the Individual's current spouse, and **%CUR_FILE_ROOT.SEX%** refers to the sex of the current file root. | ||
Line 132: | Line 136: | ||
Typically the data reference is enclosed in curly brackets and its context is the current fact, e.g. **{%FACT.PHON%}** refers to the fact phone number. | Typically the data reference is enclosed in curly brackets and its context is the current fact, e.g. **{%FACT.PHON%}** refers to the fact phone number. | ||
- | To refer to witness details from a witness sentence template requires the use of the **=GetContextItem()** function, and its context codes: | + | To refer to witness details from a witness sentence template requires the use of the **%CUR~WITN%** contextual data reference shown above.\\ |
- | ^ WITNESS | Refers to the Witness Individual record | | + | ^ {%CUR~WITN>NAME:GIVEN%} | Returns the Witness record forename | |
- | ^ WITNESS_LINK | Refers to the link to the current Witness | | + | ^ {%CUR~WITN.NOTE2%} | Returns the Witness role local Note | |
- | e.g. | + | |
- | ^ {=GetFieldText(GetContextItem(WITNESS),"%~.NAME:GIVEN%")} | Returns the Witness record forename | | + | |
- | ^ {=GetFieldText(GetContextItem(WITNESS_LINK),"%~.NOTE2%")} | Returns the Witness link role Note | | + | |
===== Related Pages ===== | ===== Related Pages ===== |