Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 706 of 808  Not logged in ELOG logo
    icon2.gif   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
    icon2.gif   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.
    icon5.gif   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,
    icon2.gif   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
    icon2.gif   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
    icon2.gif   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
icon1.gif   Wikipedia Article deleted, posted by Sebastian Schenk on Thu Jan 19 15:28:16 2023 
Hello,

I noticed the wikipedia article of the ELOG got deleted
in November 2021.
    icon2.gif   Re: Wikipedia Article deleted, posted by Stefan Ritt on Thu Jan 19 17:00:37 2023 
I agree. I ahead ;-) I think it is not a good idea if the ELOG author pushes on that, but better someone else.

Best,
Stefan
ELOG V3.1.5-3fb85fa6