Page 1 of 1

Accessing source by name instead of number

Posted: 24 Jan 2016 12:28
by shoshk
Hi All,

I have cited, for the purpose of this example, the Social Security Death Index for the death fact of a number of people. In my citation, I copy the information from the index; each line is labeled.

I want to build a query which displays this information in a tabular format. After I get this working, my husband wants similar queries for GRO Birth, Death and Marriage indexes.

I don't have a problem extracting the text from the citation. (GetLabeledText)

But, I don't know how to specify the relevant source in the "source array." In one case it might be the first source. In another, it could be the fifth.

I seem to remember that there was a way to access the array using names. Is this correct? Or am I just being hopeful?

Thanks,
Shoshana

Re: Accessing source by name instead of number

Posted: 24 Jan 2016 13:00
by tatewise
Unfortunately, there is no easy solution to that with a Query.
It has to use the instance number of the Citation SOUR[1] to SOUR[5].
You would either have to have five columns, one per instance, or a quite complex Expression that tested if SOUR[1]>TITL = "Social Security Death Index" else if SOUR[2]>TITL = "Social Security Death Index" and so on.

A Plugin can cope better with such things and there may be one in the Plugin Store that will work for you or could be adapted. Have a look at List All Citations for a Source and Where Used Record Links.