* note text from custom event?

Writing and using plugins for Version 5 and above.
Post Reply
User avatar
Ron Melby
Posts: 732
Joined: 15 Nov 2016 15:40
Family Historian: V6.2

note text from custom event?

Post by Ron Melby » 29 Jun 2020 19:33

function matTAG(eptr)
-- local ptrNOTE = fhNewItemPtr()

local LBL = fhGetTag(eptr)

local NOTE = fhGetItemText(ptr, '~.' ..LBL .. '.NOTE>')

eptr contains 'EVEN-TODO'
ptr contains INDI record

I got to this function knowing this indi does have a TODO
everything else prints correctly, I cannot get the text in NOTE

*NB I have several iterations tried none working

I went thru the query to get the data tags, but I still get no text and no errors.

what gets an EVEN-e NOTE
or an ATTR-a NOTE?
FH V.6.2.7 Win 10 64 bit

User avatar
Posts: 22002
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK

Re: note text from custom event?

Post by tatewise » 29 Jun 2020 20:08

The .NOTE> data reference represents a link to a separate shared Note record.
The clue is the > which identifies a record to record link.

The local Note for any item is represented by the .NOTE2 data reference.

In the Query you, unfortunately, chose the Note Record> option instead of local Note:-
(BTW: My To Do is an Attribute.)

ToDoLocalNote.png (21.12 KiB) Viewed 989 times
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

Post Reply