Search found 1085 matches

by ColeValleyGirl
14 Aug 2019 14:03
Forum: General Usage
Topic: More query queries
Replies: 7
Views: 372

More query queries

This is a follow-up to https://www.fhug.org.uk/forum/viewtopic.php?f=32&t=17011# (Query on a parameter that can be present or not). I'm now able to construct a query with optional parameters when the parameter value is text. Ideally, I want also to include the capability to restrict results to items...
by ColeValleyGirl
13 Aug 2019 16:19
Forum: Plugin Discussions
Topic: sorting tables by v
Replies: 54
Views: 1108

Re: sorting tables by v

So I suspect the War + Name + whatever key is too focussed and not general purpose enough.
There will (perhaps) be an analogy that works, given a particular dataset. But yes, if somebody does not want to extrapolate and use a helpful library, I'll bow out.
by ColeValleyGirl
13 Aug 2019 15:24
Forum: Plugin Discussions
Topic: sorting tables by v
Replies: 54
Views: 1108

Re: sorting tables by v

Mike, you're assuming that your assumptions work ;) Key the table on the concatenation of the individual+war (so unique, unless the individual served more than once in the same war, in which case there may be some way of distinguishing their service that Ron will know -- maybe add service dates?), w...
by ColeValleyGirl
13 Aug 2019 14:03
Forum: Plugin Discussions
Topic: sorting tables by v
Replies: 54
Views: 1108

Re: sorting tables by v

I suspect Helen may be thinking of textually indexed dictionary tables, that don't have a defined order. Helen is thinking of the generic case for tables, as none of them have a defined order. If you use table.insert without specifying a position , it adds the new entry at the end of the table, but...
by ColeValleyGirl
13 Aug 2019 13:39
Forum: Plugin Discussions
Topic: sorting tables by v
Replies: 54
Views: 1108

Re: sorting tables by v

You need to stop thinking of 'a position' 'being set to anything'. There is not a pointer for the current position, or indeed any 'current position'. There are only a set of entries that you can access via their key. And if you need to insert another, table.insert adds it -- but you can't know where...
by ColeValleyGirl
13 Aug 2019 12:12
Forum: Plugin Discussions
Topic: sorting tables by v
Replies: 54
Views: 1108

Re: sorting tables by v

When you insert a new item, it advances to insert it.
by ColeValleyGirl
12 Aug 2019 12:36
Forum: Plugin Discussions
Topic: sorting tables by v
Replies: 54
Views: 1108

Re: sorting tables by v

Ron, while you're having a think, look at https://stevedonovan.github.io/Penlight ... on.md.html#
by ColeValleyGirl
11 Aug 2019 09:27
Forum: General
Topic: Who Do You Think You Are - Whitehalls
Replies: 11
Views: 473

Re: Who Do You Think You Are - Whitehalls

WDYTYA is not a genealogy programme -- strange as it may seem to those of us who research Family History as a hobby, there is not an audience for programmes showing the (to most people, tedious) process of research. (It might have started off showing a little more of the process, but I suspect that ...
by ColeValleyGirl
09 Aug 2019 15:48
Forum: General Usage
Topic: Query on a parameter that can be present or not
Replies: 7
Views: 299

Re: Query on a parameter that can be present or not

Unfortunately, the values are unconstrained so Jane's idea is a better fit in this instance. I'm now trying to include an optional parameter (keywords) in the fact's value; and another set of keywords anywhere in the fact's note. After which I shall be trying to do comparison options between a data ...
by ColeValleyGirl
09 Aug 2019 11:46
Forum: General Usage
Topic: Query on a parameter that can be present or not
Replies: 7
Views: 299

Re: Query on a parameter that can be present or not

OK, I think I've solved it:
Screenshot 2019-08-09 12.44.23.jpg
Screenshot 2019-08-09 12.44.23.jpg (53.3 KiB) Viewed 216 times
However, I can't have a default value for the parameters doing it this way -- is there any way round it?
by ColeValleyGirl
09 Aug 2019 10:20
Forum: General Usage
Topic: Query on a parameter that can be present or not
Replies: 7
Views: 299

Re: Query on a parameter that can be present or not

Still working away at this, trying to generate a query that takes multiple parameters, each of which can be specified or default to all. My logic is (roughly): Add if Parm1 is matched. Add if Parm1 is *all. Add if Parm2 is matched. Add if Parm2 is *all. ... Until a result set has been created that m...
by ColeValleyGirl
08 Aug 2019 15:51
Forum: General Usage
Topic: Query on a parameter that can be present or not
Replies: 7
Views: 299

Query on a parameter that can be present or not

I suspect I know the answer to this, but the hive mind may know better. I would like to create a query that will prompt a user for a value (for some labelled text, say "Day"), but allow the user to not specify the parameter and default to items with all values of Day, including none. Is there a way ...
by ColeValleyGirl
05 Aug 2019 12:26
Forum: Plugin Discussions
Topic: Question for Mike Tate about Encoder code
Replies: 11
Views: 284

Re: Question for Mike Tate about Encoder code

I think I'll wrap the encoding, BOM and newline handling up in a couple of UTF16 file handling routines so that everything elsewhere in my plugins is 8-bit clean.
by ColeValleyGirl
05 Aug 2019 07:59
Forum: Plugin Discussions
Topic: Question for Mike Tate about Encoder code
Replies: 11
Views: 284

Re: Question for Mike Tate about Encoder code

That's what I suspect, Mike, but is it worth going through all my code and code snippets making that change and retesting everything? If I don't do it all at once, my memory will let me down and something will break down the line... Given that just "\n" works in everything else, I might let sleeping...
by ColeValleyGirl
05 Aug 2019 05:19
Forum: Plugin Discussions
Topic: Question for Mike Tate about Encoder code
Replies: 11
Views: 284

Re: Question for Mike Tate about Encoder code

Because when I originally tried it way back at the beginning of this saga, it didn't appear to be handling the newline characters properly. I'll take another look.
by ColeValleyGirl
04 Aug 2019 18:28
Forum: Plugin Discussions
Topic: Question for Mike Tate about Encoder code
Replies: 11
Views: 284

Re: Question for Mike Tate about Encoder code

Sorted -- thanks Mike. For anyone playing along at home, the final code I've ended up with is: pl = require("pl.import_into") stringx= require("pl.stringx") utils = require("pl.utils") ConfiguredFactFile = fhGetContextInfo("CI_APP_DATA_FOLDER").."\\Fact Types\\Custom\\"..gcstrPluginName..".fhf" func...
by ColeValleyGirl
04 Aug 2019 17:21
Forum: Plugin Discussions
Topic: Question for Mike Tate about Encoder code
Replies: 11
Views: 284

Re: Question for Mike Tate about Encoder code

A bit of context -- I'm updating the Research Planner plugin to allow users to customise the fields included when 'Tasks' are created, either within the Planner or within FH by creating a 'Task' fact. So I can't use a fixed-content file but have to build it up based on the options the users choose.
by ColeValleyGirl
04 Aug 2019 16:59
Forum: Plugin Discussions
Topic: Question for Mike Tate about Encoder code
Replies: 11
Views: 284

Re: Question for Mike Tate about Encoder code

If viewed within the Lua editor embedded in FH, it looks like this: tblConvertedLines => (table #31) [1] => "[" [2] => "V" [3] => "V" [4] => "C" [5] => "I" [6] => "[" [7] => "N" [8] => "T" [9] => "E" [10] => "R" [11] => "L" [12] => "A" [13] => "T" [14] => "F" [15] => "F" [16] => "F" [17] => "F" [18]...
by ColeValleyGirl
04 Aug 2019 14:27
Forum: Plugin Discussions
Topic: Question for Mike Tate about Encoder code
Replies: 11
Views: 284

Question for Mike Tate about Encoder code

I'm trying to use function StrUTF8_UTF16(strText) but am having problems. Is the parameter strText supposed to be a single UTF8 'character'? I was assuming not, as StrUtf8toUtf16 (which is called by StrUTF8_UTF16 ) takes a single character. However, this code doesn't return what I expect. function U...
by ColeValleyGirl
30 Jul 2019 15:35
Forum: General Usage
Topic: Making one comprehensive chart
Replies: 7
Views: 471

Re: Making one comprehensive chart

Is 280 the total number of people in your tree or the total number of ancestors (which may be much smaller)? 280 is a very small number for everyone, but if you've gone 9/10 generations back without including anyone without ancestors, you will have between 256 and 512 ancestors. Knowing which is the...
by ColeValleyGirl
30 Jul 2019 10:13
Forum: General Usage
Topic: Comparing trees without merging them
Replies: 19
Views: 675

Re: Comparing trees without merging them

I think it might work if you actually wanted to do a merge in stages (rather than just compare and make the changes manually).
by ColeValleyGirl
30 Jul 2019 09:12
Forum: General Usage
Topic: Comparing trees without merging them
Replies: 19
Views: 675

Re: Comparing trees without merging them

Yes, but I don't see the advantage of doing it that way over my approach?
by ColeValleyGirl
30 Jul 2019 08:46
Forum: General Usage
Topic: Comparing trees without merging them
Replies: 19
Views: 675

Re: Comparing trees without merging them

The technique I've adopted is to open my 'main' project A in one window and a copy of project B I want to compare in another. I've set up a custom diagram with conditional box colours based on two flags: ReviewedNoAction and NewDataFoundToCheck and display this for Project B, and then in project A d...
by ColeValleyGirl
30 Jul 2019 06:03
Forum: General Usage
Topic: Comparing trees without merging them
Replies: 19
Views: 675

Re: Comparing trees without merging them

FH has it's own comparison feature built in... but you have to do the whole thing at one sitting (you can't save and resume where you left off) which is why I'm looking for an alternative -- I can't carve out several hours of time to go through it in one go.