* Family Group Sheets: another bug?

Homeless Posts from the old forum system
Locked
avatar
SabineS
Diamond
Posts: 67
Joined: 11 Jan 2005 14:17
Family Historian: None

Family Group Sheets: another bug?

Post by SabineS » 17 May 2012 11:43

Hi,

having happily re-upgraded to V5 once again, I find that there is another detail that does not work as before.

I used to define specific lines for up to four or five marriages in the 'Family Member Main Item' section, and label them as 'Show if not empty'.

Now there does not seem to be any more difference between 'Show if not empty' and 'Show even if empty' - in both cases, the lines are shown even if that person does not have a marriage entry at all.

As this is sort of a nuisance (and I do NOT want to re-downgrade to V4 once again, as I did when the first bug appeared), can anybody confirm that this really is a bug?

Sabine
Image

ID:6247

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

Family Group Sheets: another bug?

Post by Jane » 17 May 2012 12:03

Can you post the whole expression line text, it looks as if you don't have any conditioning on the 'with' brackets etc.

If you add ifexists functions to those I suspect this will make the line blank at the moment it contains with, = and (

avatar
SabineS
Diamond
Posts: 67
Joined: 11 Jan 2005 14:17
Family Historian: None

Family Group Sheets: another bug?

Post by SabineS » 17 May 2012 12:18

For the second marriage, for example, the line looks like this:

with %INDI.~SPOU[2]>NAME[1]% (=LifeDates2(%INDI.~SPOU[2]>%)), %INDI.FAMS[2]>MARR[1].DATE:COMPACT%, %INDI.FAMS[2]>MARR[1].PLAC%

It worked until V4, without any ifexists functions.

Sabine

avatar
SabineS
Diamond
Posts: 67
Joined: 11 Jan 2005 14:17
Family Historian: None

Family Group Sheets: another bug?

Post by SabineS » 17 May 2012 12:18

... and the printout then should look like this:

with Anna Maria HEIN (1718-1802), 3 Feb 1739, Eppelborn, D-66571

Sabine

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

Family Group Sheets: another bug?

Post by Jane » 17 May 2012 13:23

I have just put that code into V4 and it is working the same on V4 as it is on V5, eg showing with ( -

If you use this it will work

Code: Select all

=combinetext('with ',%INDI.~SPOU[2]>NAME[1]%,'',,)
=combineText('(',LifeDates2(%INDI.~SPOU[2]>%),')'), 
%INDI.FAMS[2]>MARR[1].DATE:COMPACT%, 
%INDI.FAMS[2]>MARR[1].PLAC%

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

Family Group Sheets: another bug?

Post by tatewise » 17 May 2012 13:45

As a matter of interest, are you using the same Custom Report in V5 as you did in V4, or have you re-entered the Expression into V5 from memory?

Interestingly, your Expression works OK in FH V3.0.1.

avatar
SabineS
Diamond
Posts: 67
Joined: 11 Jan 2005 14:17
Family Historian: None

Family Group Sheets: another bug?

Post by SabineS » 26 May 2012 20:32

Sorry, I was out of town for most of the week. Thank you for the suggestions!

I think I re-entered the code from memory.

LifeDates2 doesn't work in this context, but LifeDates does.

For the second marriage, the code now looks like this:
=combinetext('with ',%INDI.~SPOU[2]>NAME[1]%,' ','') =combinetext('(',LifeDates(%INDI.~SPOU[2]>%),') ','') =combinetext('[IRN ',RecordId(%INDI.~SPOU[2]>%),']','') =combinetext(', ',%INDI.FAMS[2]>MARR[1].DATE:COMPACT%,'',''), =combinetext('',%INDI.FAMS[2]>MARR[1].PLAC%,'','')

Sort of clumsy, but it works; Jane, I think I made some mistakes entering your version, so I tried this one, and I was content having it working ... The marriages are shown only when there really are marriages - which is what I wanted.

I had another funny effect in the Family Group Sheet. The 'record' heading went like this:
%FAM.HUSB[1]>NAME[1]:SURNAME%, %FAM.HUSB[1]>NAME[1]:GIVEN_ALL%n%FAM.WIFE[1]>NAME[1]:SURNAME%, %FAM.WIFE[1]>NAME[1]:GIVEN_ALL%n[=RecordID(%FAM%)]

, resulting in as the first lines of the report:
DOE, John
MILLER, Elsie
[FRN 12345]

Now the funny effect was that the last ] always disappeared when I closed the program and re-opened it; the code in the 'record' heading always ended with the ), i.e. the last letter was missing. I also tried other variations, like putting the FRN in without the brackets, but then even the FRN itself disappeared.

I don't know why, and it doesn't seem logical, but it helped to add another n after the ], like this:
%FAM.HUSB[1]>NAME[1]:SURNAME%, %FAM.HUSB[1]>NAME[1]:GIVEN_ALL%n%FAM.WIFE[1]>NAME[1]:SURNAME%, %FAM.WIFE[1]>NAME[1]:GIVEN_ALL%n[=RecordID(%FAM%)]n

It doesn't show, and nothing is deleted when I close and re-open the program.

I very dearly love this software, but sometimes you really need a lot of time to get it doing what you want it to do ...

Sabine

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

Family Group Sheets: another bug?

Post by tatewise » 26 May 2012 20:53

Just as a matter of interest, why do you not use:

%FAM.HUSB>NAME:SURNAME_FIRST%n%FAM.WIFE>NAME:SURNAME_FIRST%n[=RecordID(%FAM%)]

which is much more compact.

avatar
SabineS
Diamond
Posts: 67
Joined: 11 Jan 2005 14:17
Family Historian: None

Family Group Sheets: another bug?

Post by SabineS » 27 May 2012 08:58

@Tatewise:

You are right; I hadn't thought of that. SURNAME_FIRST does the trick, too.

And I re-tried Jane's date and place version for the multiple marriages, and it works, too; the line now looks like this (for the second marriage):
=combinetext('with ',%INDI.~SPOU[2]>NAME[1]%,' ','') =combinetext('(',LifeDates(%INDI.~SPOU[2]>%),') ','') =combinetext('[IRN ',RecordId(%INDI.~SPOU[2]>%),'], ','') %INDI.FAMS[2]>MARR[1].DATE:COMPACT%, %INDI.FAMS[2]>MARR[1].PLAC%

Sabine

Locked