Re: Configure default time range in 'Find', posted by David Pilgram on Mon Jan 19 17:17:32 2015
|
Hi there, In the "Find" page, I changed the default of the "Show last" drop down box in the Entry Date section from the (unstated)
"All time" to "Day", and added back in an "All Time" option at the very bottom. This gives a default of searching the
last day, and one has to think and select the period of time to search back on. |
Re: Configure default time range in 'Find', posted by David Pilgram on Tue Jan 20 00:58:58 2015
|
It has just occurred to me that you may also have to check the non-English files, (./resorces/eloglang_xxxx) as this change introduces a new term "All
time" that would need translation into the other lexicons.
|
Re: Configure default time range in 'Find', posted by Stefan Ritt on Thu Jan 22 16:30:07 2015
|
I added a new optoin "Show last default = <days>", where one can pre-set the "Show last" drop-down box. I think this is a good
idea, so now people can configure their elog to a certain default in this parameter. Of course all settings in the Find page are AND'ed together, so
if one restricts the search to tha last week, but then looks for a date more in the past, the result will be zero by definition. The change is in the GIT |
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, |