Page 1 of 1
How to create local/embedded note?
Posted: 17 Jan 2012 17:53
by TSG
Can anyone tell me how to create a local/embedded NOTE as part of a plug-in? If I do, for example:
local ptrNOTE = fhCreateItem('NOTE', ptrSOUR)
fhSetValueAsText(ptrNOTE, 'Some notes in here')
The NOTE is create as an empty *link* with no text.
The same thing happens if I try to create a local multimedia object.
Is this a bug or am I doing something wrong?
ID:5821
How to create local/embedded note?
Posted: 17 Jan 2012 18:10
by PeterR
The following should work OK:
Code: Select all
ptrNOTE = fhCreateItem('NOTE2', ptrSOUR)
This issue is mentioned under
Modified Gedcom Tags on the Plugin Help page
The Family Historian API.
How to create local/embedded note?
Posted: 17 Jan 2012 18:17
by TSG
Brilliant! Many thanks

How to create local/embedded note?
Posted: 17 Jan 2012 18:44
by Jane
I would not recommend creating 'local' media, especially in a project environment, although it's supported, it's not the recommended option and it's better to create media records and then attach the media records to the item you are creating.
How to create local/embedded note?
Posted: 18 Jan 2012 09:12
by TSG
I realise that local multimedia are not recommended but I was assured that they would continue to be supported and they better suite my method and organisational structure for source documents.
How to create local/embedded note?
Posted: 18 Jan 2012 09:59
by Jane
Yes they are supported, but if you are creating a plugin for the store, you might want to consider allowing both methods.
How to create local/embedded note?
Posted: 18 Jan 2012 10:10
by TSG
Ah I see your point - no worries - I am just creating my own private plug-ins to improve the data entry