* property box caption problem

Homeless Posts from the old forum system
Locked
User avatar
BillH
Megastar
Posts: 2184
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

property box caption problem

Post by BillH » 18 Mar 2012 20:04

I use a customized caption for the property box.  It looks like this:

Individual: %INDI.NAME.NPFX% %INDI.NAME[1]:GIVEN% {%INDI.NAME.NICK%} %INDI.NAME[1]:MIDDLE% %INDI.NAME:SURNAME% %INDI.NAME.NSFX% [=RecordId()] [%INDI.NAME[1]:SOUNDEX%]

The problem I am having is that the Soundex code is no longer appearing in the caption.  All I get is the leading [ symbol.  This is what it looks like:

Image

I haven't changed this recently.  I just noticed it today.  I'm not sure if it is a beta 5 bug or not.  

Any ideas?

Thanks,

Bill

ID:6020

User avatar
Jane
Site Admin
Posts: 8442
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

property box caption problem

Post by Jane » 18 Mar 2012 21:09

If you shorted Individual to I: do you get any more text?

User avatar
tatewise
Megastar
Posts: 27088
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

property box caption problem

Post by tatewise » 18 Mar 2012 21:20

The same problem exists in FH V4.

It appears to be related to the number of Data References, because removing any one seems to correct the problem.

Interestingly, the more complex caption:

Individual:=CombineText(' ',%INDI.NAME.NPFX%,' ',' ')%INDI.NAME:GIVEN% =CombineText('{',%INDI.NAME.NICK%,'}','')%INDI.NAME:MIDDLE% %INDI.NAME:SURNAME%=CombineText(' ',%INDI.NAME.NSFX%,' ',' ')[=RecordId()] [%INDI.NAME:SOUNDEX%]

works just fine, and tidily eliminates redundant extra spaces, etc.

User avatar
BillH
Megastar
Posts: 2184
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

property box caption problem

Post by BillH » 18 Mar 2012 22:08

Jane - no change if I change 'Individual' to 'I'.

Mike - I really liked this option. I always hated the {} I got if there was no nickname. I tweaked it a bit so that I always have the right spacing even if there is no prefix, middle name, suffix, or nick name.  Here is what I came up with.

Individual:=CombineText(' ',%INDI.NAME.NPFX%,'','')=CombineText(' ',%INDI.NAME:GIVEN%,'','')=CombineText(' {',%INDI.NAME.NICK%,'}','')=CombineText(' ',%INDI.NAME:MIDDLE%,'','')=CombineText(' ',%INDI.NAME:SURNAME%,'','')=CombineText(' ',%INDI.NAME.NSFX%,'','') [=RecordId()] [%INDI.NAME:SOUNDEX%]  

Seems to work. I keep learning about new capabilities of FH and I'm sure I've only scratched the surface.

Thanks to both of you!

Bill

User avatar
tatewise
Megastar
Posts: 27088
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

property box caption problem

Post by tatewise » 19 Mar 2012 00:49

The original problem would appear to be a bug that is not related to the length or complexity of the Expression, nor the length of the resulting Caption.

[EDIT]
The same problem afflicts Diagram Text Scheme Item Templates.

Locked