Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon1.gif   Configure default time range in 'Find', posted by Eoin Butler on Fri Jan 16 13:41:18 2015 
    icon2.gif   Re: Configure default time range in 'Find', posted by Stefan Ritt on Fri Jan 16 14:29:58 2015 
       icon2.gif   Re: Configure default time range in 'Find', posted by Eoin Butler on Mon Jan 19 11:09:31 2015 
          icon3.gif   Re: Configure default time range in 'Find', posted by David Pilgram on Mon Jan 19 17:17:32 2015 
             icon4.gif   Re: Configure default time range in 'Find', posted by David Pilgram on Tue Jan 20 00:58:58 2015 
                icon2.gif   Re: Configure default time range in 'Find', posted by Stefan Ritt on Thu Jan 22 16:30:07 2015 
                   icon2.gif   Re: Configure default time range in 'Find', posted by Eoin Butler on Thu Jan 22 17:04:03 2015 
                   icon2.gif   Re: Configure default time range in 'Find', posted by David Pilgram on Thu Jan 22 17:32:16 2015 
                   icon2.gif   Re: Configure default time range in 'Find', posted by David Pilgram on Sun Mar 15 16:41:49 2015 
                      icon2.gif   Re: Configure default time range in 'Find', posted by David Pilgram on Sun Mar 15 17:53:44 2015 
                      icon5.gif   Re: Configure default time range in 'Find', posted by Andreas Luedeke on Mon Mar 16 07:16:56 2015 
                         icon2.gif   Re: Configure default time range in 'Find', posted by David Pilgram on Mon Mar 16 13:51:11 2015 
                            icon2.gif   Re: Configure default time range in 'Find', posted by Andreas Luedeke on Tue Mar 17 07:04:44 2015 
                               icon2.gif   Re: Configure default time range in 'Find', posted by Stefan Ritt on Tue Mar 24 15:49:28 2015 
Message ID: 67835     Entry time: Tue Mar 24 15:49:28 2015     In reply to: 67827
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Comment  OS: All  ELOG Version:
Subject: Re: Configure default time range in 'Find' 

Show last default = 0

always worked, even in my original code. It was just not documented. I added that.

Andreas Luedeke wrote:
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 wink
But I think I've figured it out: you were overriding the default in the global section for all logbooks and wanted to get back to the default for a particular logbook.
Then another simple solution would have been to remove the line in the global section and add it just in those logbook configurations, where you actually need it.
Anyway, it is good that one can now set the default in the configuration; I agree that this should always be possible.
Cheers
Andreas
David Pilgram wrote:

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 =  " and various other variants, with no success in getting what I actually required.  Also, in the documentation, there was no mention of a way to set the default as "all time", just a list of number of days (week (7), month (31), year (364) etc), which also led me to believe that it was not possible with the existing code.

I've sent an email to Stefan giving my coding changes for information.

ELOG V3.1.5-fe60aaf