* Looping Index notation more widely supported

Requests that have been moved to the Wish List, or deemed to need no further action
Post Reply
User avatar
GladToBeGrey
Famous
Posts: 115
Joined: 26 Oct 2004 09:16
Family Historian: V7
Location: Dorset, UK

Looping Index notation more widely supported

Post by GladToBeGrey » 30 Jan 2008 10:08

The 'Looping Index' notation should be supported by data references in ALL situations where a field/record can legitimately be repeated in the gedcom file.

For example, it is legitimate to have more than one NOTE attached to a DEAT, but %INDI.DEAT.NOTE2[1+] only picks up the first occurence (as does simply NOTE2), rather than looping through all occurences.  

NOTE2[2] will explicitly pick up the second, NOTE2[3] the third etc etc. Oddly, NOTE2[1] always seems to be changed by FH back to be simply NOTE2.  Why?

ID:2728

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

Looping Index notation more widely supported

Post by Jane » 30 Jan 2008 12:39

I can why you want this, can you confirm where you are looking for this? I suspect looping in Queries is covered by the Query by Event Item.

Does this not already work on diagrams? On reports I suspect looping is done automatically?
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
GladToBeGrey
Famous
Posts: 115
Joined: 26 Oct 2004 09:16
Family Historian: V7
Location: Dorset, UK

Looping Index notation more widely supported

Post by GladToBeGrey » 30 Jan 2008 14:25

I cant find any reference to 'Query by Event' anywhere? Not sure to what you refer?

I had a situation where I had a DEAT event with multiple local NOTEs. Using =GetLabelledText(%.....NOTE2%,['Label']) in an Individual query (there are no Event queries) to locate a given labelled text string only ever checked the first NOTE; if the item I wanted was in the 3rd (say), it was never returned unless I coded a seperate column for Note, Note[2], Note[3], note[4] etc.

The looping syntax would allow the text to be returned using a single column with a function like

=GetLabelledText(%INDI.DEAT.NOTE2[1+]%,['Label'])

regardless of how many NOTEs there were and which NOTE instance it was actually located in.

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

Looping Index notation more widely supported

Post by Jane » 30 Jan 2008 16:09

This one for the multiple returned lines.
http://www.fhug.org.uk/wishlist/wldispl ... lwlref=285
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
GladToBeGrey
Famous
Posts: 115
Joined: 26 Oct 2004 09:16
Family Historian: V7
Location: Dorset, UK

Looping Index notation more widely supported

Post by GladToBeGrey » 04 Feb 2008 13:27

Excellent; I've voted 5 for it! Perhaps that, mine and this - http://www.fhug.org.uk/cgi-bin/index.cg ... y&num=2742 - should be combined.

Post Reply