* fhGetContextInfo('CI_APP_MODE') Returns?

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

fhGetContextInfo('CI_APP_MODE') Returns?

Post by tatewise » 01 Oct 2011 12:43

The Plugin Help on the FH API Funcion fhGetContextInfo('CI_APP_MODE') says it:

Returns one of the following:
'Project Mode'
'Gedcom Mode'
'Gedcom Mode (new)'

The first value is obviously related to V4/V5 Project Mode, and the last two to V3 standalone GEDCOM mode.
However, it does not explain the distinction between the last two values, nor the circumstances that cause them to be returned.

ID:5490
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Jane
Site Admin
Posts: 8441
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

fhGetContextInfo('CI_APP_MODE') Returns?

Post by Jane » 01 Oct 2011 17:12

The second one is a new gedcom file (eg 1 created from File/Gedcom Tasks/New which has not been saved and therefore has no name.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
tatewise
Megastar
Posts: 27080
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

fhGetContextInfo('CI_APP_MODE') Returns?

Post by tatewise » 02 Oct 2011 11:52

I have updated the Let Standalone Gedcom Use Project Commands plugin to take account of this explanation.
Perhaps the Plugin API Help needs this this explanation to be added.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
tatewise
Megastar
Posts: 27080
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

fhGetContextInfo('CI_APP_MODE') Returns?

Post by tatewise » 17 Dec 2011 21:08

The V5.0.0.3 Help has been improved and so this problem has been fixed.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

Post Reply