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
* Looping Index notation more widely supported
- GladToBeGrey
- Famous
- Posts: 115
- Joined: 26 Oct 2004 09:16
- Family Historian: V7
- Location: Dorset, UK
- Jane
- Site Admin
- Posts: 8441
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Looping Index notation more widely supported
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?
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."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
- GladToBeGrey
- Famous
- Posts: 115
- Joined: 26 Oct 2004 09:16
- Family Historian: V7
- Location: Dorset, UK
Looping Index notation more widely supported
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.
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.
- Jane
- Site Admin
- Posts: 8441
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Looping Index notation more widely supported
This one for the multiple returned lines.
http://www.fhug.org.uk/wishlist/wldispl ... lwlref=285
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."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
- GladToBeGrey
- Famous
- Posts: 115
- Joined: 26 Oct 2004 09:16
- Family Historian: V7
- Location: Dorset, UK
Looping Index notation more widely supported
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.