* [Wish List Request 636] Named List programmable access

For Wish List Requests that have either (a) been progressed to the Wish List; or (b) been classified as duplicates, or as redundant because the requirement is already satisfied within FH and/or plugins; or (c) closed because it wasn't possible to arrive at a clear specification of the request within 15 months of it being raised.
Post Reply
User avatar
tatewise
Megastar
Posts: 28436
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

[Wish List Request 636] Named List programmable access

Post by tatewise »

Problem:

Currently, there are no data references or functions that access Named Lists apart from the three functions =HasNoteInList(...), =IsInList(...) and =IsLinkedFromList(...) which only return a boolean result.
There are no programmable mechanisms for automatically adding records to a list, removing records from a list, and managing list properties such as list and record local note text.

By contrast, Record Flags are not only supported by the =HasFlag(...) function but also have data references %INDI._FLGS...% that allow them to be added and removed by plugins.

Proposal:

Named Lists should have data references &/or functions to support adding records, removing records, managing list properties such as local notes and list order, and creating/deleting Named Lists.
The objectives include:
  1. Allow the Named List local note text to be retrieved in Expressions just like any other Notes.
  2. Allow the Named List member record local note text to be retrieved in Expressions just like other Notes.
  3. Allow the Named List records, local notes, and other properties to be fully managed by plugins.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
ColeValleyGirl
Megastar
Posts: 5509
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: Named List programmable access

Post by ColeValleyGirl »

I'd vote for this.
User avatar
Mark1834
Megastar
Posts: 2519
Joined: 27 Oct 2017 19:33
Family Historian: V7
Location: South Cheshire, UK

Re: Named List programmable access

Post by Mark1834 »

I raised this with CP back in July last year. Their response then was It is true that for historical reasons, named lists are not currently handled like most data in your projects. We are considering changing the way they are handled to make them more consistent with other data in an FH project. If we do that, this would also make them accessible to plugins.

It feels like the sort of change that wouldn't happen until FH7.1 or FH8, but I would certainly vote for it in the meantime. It's been 5 months since FH7.0.22 was released, so maybe we won't have too long to wait before we find out...
Mark Draper
User avatar
tatewise
Megastar
Posts: 28436
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Named List programmable access

Post by tatewise »

Without prejudicing what CP may implement, I think each Named List should become a new record type.
They currently use a custom _LIST tag in the Header record.
So the new Named List record type could be represented in GEDCOM as 0 @L9@ _LIST
It would have a TEXT tag for the Named List Note and other tags to hold options like Keep Current List Order.
It would hold multiple instances of any other record tags INDI, FAM, NOTE, etc, to hold links to the members.
Each of those tags would have a NOTE subsidiary tag for the member's local Note text.

Then the data reference %_LIST.INDI[3].NOTE2% would refer to the 3rd Individual record member's Note.

Furthermore, since they are standard GEDCOM record links, the Links count for each record would include Named List membership, which they currently do not!
A consequence of those currently omitted Links counts is that records which are members of a Named List, but otherwise unconnected, will be deleted from exported GEDCOM and by the Split Tree Helper if the option to delete with no links to them is chosen. Should this problem be raised as a separate Wish List Request?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
tatewise
Megastar
Posts: 28436
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Named List programmable access

Post by tatewise »

Wish List Ref 636 Named List programmable access has been created.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
ColeValleyGirl
Megastar
Posts: 5509
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: Named List programmable access

Post by ColeValleyGirl »

A bit hasty, Mike? Less than a week isn't much time for discussion.
User avatar
tatewise
Megastar
Posts: 28436
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Named List programmable access

Post by tatewise »

I felt that 3 key players supporting it and being on CP list already was justification enough.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
ColeValleyGirl
Megastar
Posts: 5509
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: Named List programmable access

Post by ColeValleyGirl »

I'd have liked some time to consider your suggested implementation, which may not form part of the Wish List item itself but is linked from it. I don't think you've paid enough attention to the UI implications.
User avatar
tatewise
Megastar
Posts: 28436
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Named List programmable access

Post by tatewise »

To be honest, I did not pay any attention to UI implications, because CP have probably already resolved them and IMO the current UI is perfectly adequate so why change it.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
ColeValleyGirl
Megastar
Posts: 5509
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: Named List programmable access

Post by ColeValleyGirl »

tatewise wrote: 05 Mar 2024 13:27 To be honest, I did not pay any attention to UI implications, because CP have probably already resolved them and IMO the current UI is perfectly adequate so why change it.
I agree, but by making Named Lists a new record type, they'd either have to appear in the Records Window in addition to the Named List pane, which could be a source of confusion, or be the only Record type that didn't appear in the Records Window, which could be a source of different confusion.

We hear lots of complaints about the FH UI being inconsistent; introducing a new Record type with a different UI wouldn't improve that.

On a procedural point, if somebody posts a substantive contribution to a Wish List discussion after somebody has expressed support, I don't think it can be assumed that support is still in place.
User avatar
tatewise
Megastar
Posts: 28436
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Named List programmable access

Post by tatewise »

I take your point and apologise :oops:
My objective was to clear Wish List entries quickly but perhaps too quickly.

CP could presumably let users choose whether to keep the old Named Lists pane or add a Records Window tab.
However, the Add to Current List button for adding Records (in bulk) to a Named List relies on a Records Window tab being open alongside the Named Lists pane. So that UI would probably need to be retained anyway.

It is similar to Media records that have a Records Window tab and a Media Window UI as well, or Place records that have a Records Window tab and a Map Window as well.

Many new users often don't realise that a tab can exist for every record type, so not having a tab for Named Lists would not be so inconsistent.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
ColeValleyGirl
Megastar
Posts: 5509
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: Named List programmable access

Post by ColeValleyGirl »

You're right that some record types already have two UI windows. It would probably be easier for new users if they didn't but that's another discussion.

I don't think we can rely on user ignorance to make the UI make sense :)
User avatar
Mark1834
Megastar
Posts: 2519
Joined: 27 Oct 2017 19:33
Family Historian: V7
Location: South Cheshire, UK

Re: Named List programmable access

Post by Mark1834 »

I hope they don’t use Media as a template - I still find the dual routes in horribly confusing.

My feeling is that the original posting summarised what was wanted clearly, and later discussion drifted into suggesting how. CP will have the best view of how to balance the needs of the tiny minority of users who write plugins, the extra facilities it will potentially give to plugin users, but without complicating the UI for the large number of punters who don’t use any plugins. That probably needs their detailed knowledge of FH’s internal structure, which is closed to users.
Mark Draper
User avatar
ColeValleyGirl
Megastar
Posts: 5509
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: Named List programmable access

Post by ColeValleyGirl »

Mark1834 wrote: 05 Mar 2024 20:22 I hope they don’t use Media as a template - I still find the dual routes in horribly confusing.

My feeling is that the original posting summarised what was wanted clearly, and later discussion drifted into suggesting how. CP will have the best view of how to balance the needs of the tiny minority of users who write plugins, the extra facilities it will potentially give to plugin users, but without complicating the UI for the large number of punters who don’t use any plugins. That probably needs their detailed knowledge of FH’s internal structure, which is closed to users.
Yes!!!!
Post Reply