* How to create local/embedded note?
How to create local/embedded note?
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
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
- PeterR
- Megastar
- Posts: 1129
- Joined: 10 Jul 2006 16:55
- Family Historian: V7
- Location: Northumberland, UK
How to create local/embedded note?
The following should work OK:This issue is mentioned under Modified Gedcom Tags on the Plugin Help page The Family Historian API.
Code: Select all
ptrNOTE = fhCreateItem('NOTE2', ptrSOUR)Peter Richmond (researching Richmond, Bulman, Martin, Driscoll, Baxter, Hall, Dales, Tyrer)
How to create local/embedded note?
Brilliant! Many thanks 
- Jane
- Site Admin
- Posts: 8442
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
How to create local/embedded note?
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.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
How to create local/embedded note?
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.
- Jane
- Site Admin
- Posts: 8442
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
How to create local/embedded note?
Yes they are supported, but if you are creating a plugin for the store, you might want to consider allowing both methods.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
How to create local/embedded note?
Ah I see your point - no worries - I am just creating my own private plug-ins to improve the data entry