* Reference part of repository name
Reference part of repository name
My memory is failing me. I need to get part of the repository name in a source template. I guessed {%SOUR.~RP-ARCHIEF>%} or {%SOUR.~RP-ARCHIEF.NAME>%} would do the trick. But FH thinks differently. What am I missing?
- tatewise
- Megastar
- Posts: 27088
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Reference part of repository name
Simply use {ArChief} or whatever by using the << Add > Add Field Code option in the Source Template Definition Editor.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Re: Reference part of repository name
I would like to, but MidText({Archief},3) didn't work.
Re: Reference part of repository name
I can get to the Custom id using {%SOUR.~RP-ARCHIEF>REFN%}. But now I need part of the name.
- tatewise
- Megastar
- Posts: 27088
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Reference part of repository name
Ah! You forgot to mention that you wanted to apply a function to the Repository Name.
The clue is in your Custom Id data reference %SOUR.~RP-ARCHIEF>REFN%
So the Repository Name data reference is %SOUR.~RP-ARCHIEF>NAME%
To use a function it must be enclosed in the curly brackets like this where the equals prefix is crucial:
{=MidText(%SOUR.~RP-ARCHIEF>NAME%,3)}
The clue is in your Custom Id data reference %SOUR.~RP-ARCHIEF>REFN%
So the Repository Name data reference is %SOUR.~RP-ARCHIEF>NAME%
To use a function it must be enclosed in the curly brackets like this where the equals prefix is crucial:
{=MidText(%SOUR.~RP-ARCHIEF>NAME%,3)}
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Re: Reference part of repository name
Thanks Mike!
- tatewise
- Megastar
- Posts: 27088
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Reference part of repository name
Actually {=MidText(%SOUR.~RP-ARCHIEF%,3)} works just as well because %SOUR.~RP-ARCHIEF% defaults to the Name.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry