Search found 328 matches
- 23 Mar 2021 14:58
- Forum: General Usage
- Topic: Everything gone after Windows blue screen
- Replies: 8
- Views: 1631
Re: Everything gone after Windows blue screen
I read the KB item and understand the structure, but what I find odd (to say the least) is that the file structure is completely intact, all the files exist and seem ok. But when opening the project, all persons, families, sources etc. are gone. Which set me thinking that just one little piece of re...
- 23 Mar 2021 14:26
- Forum: General Usage
- Topic: Everything gone after Windows blue screen
- Replies: 8
- Views: 1631
Re: Everything gone after Windows blue screen
Yes, I've been too long in IT to not backup and backup again... and again. :) I was just wondering if this kind of mysterious breakup between the 'project' and all the data (that is still there) has happened to anybody else. And, one never knows, maybe someone knows how to 'flip the switch' and ever...
- 23 Mar 2021 13:47
- Forum: General Usage
- Topic: Everything gone after Windows blue screen
- Replies: 8
- Views: 1631
Everything gone after Windows blue screen
This morning I had a (nowadays rare) blue screen event. After starting up FH and opening the project I was working on everything was gone. The .ged file seemed intact, so it probably has something to do with the .fh_proj file? Does anybody know an easy way to fix this, or is the solution restoring t...
- 20 Mar 2021 20:31
- Forum: Plugin Technical Support & Development
- Topic: Change source template
- Replies: 22
- Views: 5982
Change source template
Attached is a plugin that changes the template of selected sources from A to B. The user selects A and B and is the shown a mapping window to specify which field of A goes to which field of B. When all fields have been mapped, the user selects the sources to change and the plugin will make the reque...
- 17 Mar 2021 16:18
- Forum: Plugin Technical Support & Development
- Topic: Can a plugin call a plugin?
- Replies: 31
- Views: 6094
Re: Can a plugin call a plugin?
You've got a point.
I'll try to make it work first and then, if it works as expected, try a few real world scenario's.
Thanks for the ideas and keeping my thinking as uncluttered as possible (which, as my assures me, is a challenge
).
I'll try to make it work first and then, if it works as expected, try a few real world scenario's.
Thanks for the ideas and keeping my thinking as uncluttered as possible (which, as my assures me, is a challenge
- 17 Mar 2021 11:56
- Forum: Plugin Technical Support & Development
- Topic: Can a plugin call a plugin?
- Replies: 31
- Views: 6094
Re: Can a plugin call a plugin?
Helen, following your list: 1. Yes. 1.1. How are we going to provide the user with dummy (example) versions of B1 and B2? 1.2 One way I can think of is extract them from A where they can be implemented to create a full functioning (default) A. 1.3 This assumes a kind of Companion Library (CL) manage...
- 16 Mar 2021 18:16
- Forum: Plugin Technical Support & Development
- Topic: Can a plugin call a plugin?
- Replies: 31
- Views: 6094
Re: Can a plugin call a plugin?
Companion Libraries... a novel and interesting concept. Let's see if I understand it from a users perspective. 1. The user downloads plugin A from the store and 'enriches' it by specifying that e.g. API 1 of plugin A should call the users own plugin B1 and API 2 of A should call B2. 2. The user can ...
- 16 Mar 2021 15:11
- Forum: Plugin Technical Support & Development
- Topic: Can a plugin call a plugin?
- Replies: 31
- Views: 6094
Re: Can a plugin call a plugin?
To conclude (and check before walking down a dead end street :)), I could start testing the following scenario: 1. Create a plugin A with some data and functions. This A would potentially be in the store. 2. Create a plugin B (name 'B'). This B would usually be in the users project. 3. Somewhere in ...
- 16 Mar 2021 14:15
- Forum: Plugin Technical Support & Development
- Topic: Can a plugin call a plugin?
- Replies: 31
- Views: 6094
Re: Can a plugin call a plugin?
@Mike I had al look at the Install Library Modules published Plugin. It says: This plugin will not be updated for and will not run in FH V7 as the library modules are now installed by FH . Do I understand it right that under FH7 it's not possible (anymore) to create your own set of 'utility' functio...
- 16 Mar 2021 11:50
- Forum: Plugin Technical Support & Development
- Topic: Can a plugin call a plugin?
- Replies: 31
- Views: 6094
Re: Can a plugin call a plugin?
@Mike I've read the load(...) and loadfile(...) definitions and get the impression that they may be too complex for the (what I regard) simple things I have in mind. If the module solution of Helen can do the job it looks easier. But, better two options then none at all. :) @Helen The idea of using ...
- 15 Mar 2021 21:41
- Forum: Plugin Technical Support & Development
- Topic: Can a plugin call a plugin?
- Replies: 31
- Views: 6094
Re: Can a plugin call a plugin?
@Mike What details do you have in mind? I also thought about reading the user provided script from file, do some checking as to format and conventions etc. and then run it (preferably in a way that I can catch user errors; can be done in Lua, I hope?). Is that a viable course of action? @Helen Yes, ...
- 15 Mar 2021 18:09
- Forum: Plugin Technical Support & Development
- Topic: Can a plugin call a plugin?
- Replies: 31
- Views: 6094
Can a plugin call a plugin?
Suppose I have a plugin (A) that does some things that require substantial FH function and data structure knowledge. Yet the overall function of the plugin also encompasses relatively easy (read straight forward Lua) code (B) that should typically be provided by the user (e.g. because of a specific ...
- 14 Mar 2021 16:24
- Forum: Plugin Technical Support & Development
- Topic: Sample plugin for converting sources to use templates
- Replies: 16
- Views: 5498
Re: Sample plugin for converting sources to use templates
Just read the posts about converting generic sources to templated ones. If still needed, my conversion plugin may be used as a kind of prototype. It's specific for my setup of V6 generic sources but structured in a way to make clear what the project dependent parts are and which code is generic (sho...
- 11 Mar 2021 13:01
- Forum: Plugin Technical Support & Development
- Topic: Howto fh.getParam with childupdate
- Replies: 10
- Views: 2730
Re: Howto fh.getParam with childupdate
It works!
Thanks very much Helen!
Thanks very much Helen!
- 11 Mar 2021 10:50
- Forum: Plugin Technical Support & Development
- Topic: Howto fh.getParam with childupdate
- Replies: 10
- Views: 2730
Re: Howto fh.getParam with childupdate
Helen, I'm completely lost. I made a very simple test script that is expected to do nothing more than depending on a name in the top list, change the entries in the bottom list. As soon as I change the top list I get the lua error and when I exit this, FH quits. Either I don't understand the paramet...
- 10 Mar 2021 20:40
- Forum: Plugin Technical Support & Development
- Topic: Howto fh.getParam with childupdate
- Replies: 10
- Views: 2730
Re: Howto fh.getParam with childupdate
I think I have removed some inconsistencies, but still can't get it to work; it still ends with a lua error when I select a different item in list 1 (tNotMappedText). Every hint on this - for me new - use of Lua and fh.getParam is highly apricated. The getParam statement is now: local fpar = fh.getP...
- 10 Mar 2021 18:28
- Forum: Plugin Technical Support & Development
- Topic: Howto fh.getParam with childupdate
- Replies: 10
- Views: 2730
Re: Howto fh.getParam with childupdate
Forgot to include the update function.
function doNewMatch(tCanMatch, value)
--
-- Updates matching fields for new value in old fields list in getParam
if value then
tCanMatch = getMatch(tNewFields, value)
end
local tCanMatchText = getDisplayText(tCanMatch)
return tCanMatchText
end
function doNewMatch(tCanMatch, value)
--
-- Updates matching fields for new value in old fields list in getParam
if value then
tCanMatch = getMatch(tNewFields, value)
end
local tCanMatchText = getDisplayText(tCanMatch)
return tCanMatchText
end
- 10 Mar 2021 18:25
- Forum: Plugin Technical Support & Development
- Topic: Howto fh.getParam with childupdate
- Replies: 10
- Views: 2730
Re: Howto fh.getParam with childupdate
I don't see it. Got a lua error and it hangs: ... Files (x86)\Family Historian\Program\Lua\fhUtils.fh_lua:181: attempt to call a table value (field 'childUpdate') stack traceback: ... Files (x86)\Family Historian\Program\Lua\fhUtils.fh_lua:181: in upvalue 'updateChild' ... Files (x86)\Family Histori...
- 10 Mar 2021 17:36
- Forum: Plugin Technical Support & Development
- Topic: Howto fh.getParam with childupdate
- Replies: 10
- Views: 2730
Re: Howto fh.getParam with childupdate
Thanks Helen, I understand the example but can't seem to get it working with two lists. Question, where does the argument place come from? Maybe it's not meant to be possible, but the idea is to have a list 1 (type = 'LIST') and based on a selection of the user in list 1 change te contents of list 2...
- 10 Mar 2021 16:35
- Forum: Plugin Technical Support & Development
- Topic: Howto fh.getParam with childupdate
- Replies: 10
- Views: 2730
Howto fh.getParam with childupdate
I am trying to use fh.getParam to update list 2 depending on a selection in list 1. From the help on getParam I understand that this should be possible by using the childUpdate and child options. But I must be doing something wrong because my childUpdate function doesn't get called. A working exampl...
- 10 Mar 2021 13:47
- Forum: Plugin Technical Support & Development
- Topic: Would it be possible to rename a metafield
- Replies: 9
- Views: 2425
Re: Would it be possible to rename a metafield
@Adrian The first version of my plugin to change the source template of existing sources only changed the link to the template. The result is that all identical fields are available in the newly templated source and the ones that are not defined in the new template are only accessible via the all ta...
- 09 Mar 2021 21:59
- Forum: Plugin Technical Support & Development
- Topic: Would it be possible to rename a metafield
- Replies: 9
- Views: 2425
Would it be possible to rename a metafield
I am trying to find an easy way to change the source template of an existing source without ending up with undefined fields. By just changing the template link no data is lost. Fields with the same shortcut stay as they are. But the other ones end up as undefined and can only be retrieved through th...
- 09 Mar 2021 20:40
- Forum: Plugin Technical Support & Development
- Topic: Creating a metafield
- Replies: 2
- Views: 1270
Re: Creating a metafield
Thanks Mike!
- 09 Mar 2021 20:23
- Forum: Plugin Technical Support & Development
- Topic: Creating a metafield
- Replies: 2
- Views: 1270
Creating a metafield
I am experiencing a serious case of code blindness. I have a piece of code and am trying to add a metafield to an existing source like this (p is the pointer to the source): px = fhGetItemPtr(p,'SOUR.~NM-PERSOON') -- works as expected xx = fhGetValueAsText(px) -- also ok pz = fhCreateItem('SOUR.~NM-...
- 08 Mar 2021 11:07
- Forum: Plugin Technical Support & Development
- Topic: fh.getParam question
- Replies: 30
- Views: 5537
Re: fh.getParam question
Helen, thanks for testing. I used it on sources with their template fields populated and the data was not thrown away but kind of hidden. I then used the source records overview and from there had access to all data to cut/paste it. The best proof that data is not thrown away is by changing a record...