Some persons in my database have no surname.
When using {Persoon:REVERSE} in my template title field, I end up with a starting comma.
I Thought to fix that by prefixing it with: {=NotExistsText(%SOUR.~NM-PERSOON>NAME:SURNAME%, "NN")}.
But something must be wrong since it's not accepted. Help is very much appreciated!
* Replacing missing surname in source title
- tatewise
- Megastar
- Posts: 27087
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Replacing missing surname in source title
The problem is =NotExistsText( ... ) requires an unqualified data reference, so qualifier :SURNAME is not supported.
Use the =TextIf( ..., "NN") function instead:
{=TextIf( %SOUR.~NM-PERSOON>NAME:SURNAME% = "", "NN" )}
Use the =TextIf( ..., "NN") function instead:
{=TextIf( %SOUR.~NM-PERSOON>NAME:SURNAME% = "", "NN" )}
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Re: Replacing missing surname in source title
@Mike
I replaced the Not Exist with TextIf but still get the error. Any ideas?
I replaced the Not Exist with TextIf but still get the error. Any ideas?
- tatewise
- Megastar
- Posts: 27087
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Replacing missing surname in source title
Maybe it does not need the NAME tag as it is already a Name meta-field so try:
{=TextIf( %SOUR.~NM-PERSOON:SURNAME% = "", "NN" )}
{=TextIf( %SOUR.~NM-PERSOON:SURNAME% = "", "NN" )}
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Re: Replacing missing surname in source title
Yes, that's it.
Thanks Mike!
Thanks Mike!