* note text from custom event?

For users to report plugin bugs and request plugin enhancements; and for authors to test new/new versions of plugins, and to discuss plugin development (in the Programming Technicalities sub-forum). If you want advice on choosing or using a plugin, please ask in General Usage or an appropriate sub-forum.
Post Reply
User avatar
Ron Melby
Megastar
Posts: 928
Joined: 15 Nov 2016 15:40
Family Historian: V6.2

note text from custom event?

Post by Ron Melby »

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
note
note.text
note.text>

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
tatewise
Megastar
Posts: 28414
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: note text from custom event?

Post by tatewise »

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
ToDoLocalNote.png (21.12 KiB) Viewed 1999 times
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Post Reply