Re: Configure default time range in 'Find', posted by Eoin Butler on Thu Jan 22 17:04:03 2015
|
This looks like exactly what I wanted, thanks!
Stefan
Ritt wrote:
I added a new optoin "Show last default = <days>", where |
Re: Configure default time range in 'Find', posted by David Pilgram on Thu Jan 22 17:32:16 2015
|
If my coding had been up to it, I would have done this and submitted... thanks Stefan.
Stefan
Ritt wrote:
I added a new optoin "Show last default = <days>", where |
Re: Configure default time range in 'Find', posted by David Pilgram on Sun Mar 15 16:41:49 2015
|
Hi Stefan,
There's one pre-set value you forgot to include in this, which is the genuinely required "Show last all time". I archive
many logbooks by years, and so for the year 2005 (say), searching by anything other than all time will always bring up zero results. And it gets |
Re: Configure default time range in 'Find', posted by David Pilgram on Sun Mar 15 17:53:44 2015
|
Law of unintended consequences came into play. If you use 0, then on the results page it says "Restricted search to last 0 Days".
So that also needs tweeking, and that's really put my c coding (or lack of it) to the test. But I've changed that phrase to "Unrestricted
search" followed by blank for when the parameter "last" is 0. |
Re: Configure default time range in 'Find', posted by Andreas Luedeke on Mon Mar 16 07:16:56 2015
|
Hi David,
isn't the empty string "" doing already exactly what you want to achieve with "Show last all time"?
It
is at least in my logbook.
Cheers
Andreas
David Pilgram wrote:
Hi Stefan, |
Re: Configure default time range in 'Find', posted by David Pilgram on Mon Mar 16 13:51:11 2015
|
Hi Andreas,
Yes, the empty string does exactly that, in the drop down menu, but before my changes, I could not set it to be the default setting in the configuration
file. In an archived logbook, it's perfectly possible for "all time" to be the only sensible value. I tried "Show last default |
Re: Configure default time range in 'Find', posted by Andreas Luedeke on Tue Mar 17 07:04:44 2015
|
Hi David,
I was confused because one normally does not need to include a line in the configuration to set a default value. A default
is exactly what you get if you don't specify anything in the configuration
But I think I've figured it out: you were overriding the default in the global section for all logbooks and |
Re: Configure default time range in 'Find', posted by Stefan Ritt on Tue Mar 24 15:49:28 2015
|
Show last default = 0
always worked, even in my original code. It was just not documented. I added that.
Andreas |