Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 366 of 808  Not logged in ELOG logo
    icon2.gif   Re: Preset reply date to nothing, posted by Stefan Ritt on Tue Dec 12 15:45:48 2006 
> How do I preset the reply date to an empty box(es)?
> 
> In 2.5.x it worked as
> 
> Preset on reply Plan Date = ""
> 
> gave me an empty date, which is what I wanted. Now in 2.6.3 I get some date in there (...1969) and have to
> manually set it to empty again ?
> 
> Thanks

I fixed that in SVN revision 1777 again, so it will be included in the next release.
    icon2.gif   Re: Preset of a drop-down box entry with a "%" character, posted by Stefan Ritt on Mon Feb 19 11:29:03 2007 

Tobias Bagger wrote:
How do I preset a drop-down box entry which contains a % character?


The problem was that '%' is used in auto-generated preset tags like XYZ-%Y-%b-### (see documentation). I made the auto-generation a bit more clever such that it only tries to interprete any '%' if there is any '#'. The fix is in elog version 2.6.4.
    icon2.gif   Re: Preset Text?, posted by Stefan Ritt on Tue Apr 10 10:08:33 2012 
> Hi Stefan,
> 
> I'm having a problem with 'Preset Text' now behaving differently in the latest release (2.9.1)?
> My config file for example has always had: 'Preset Text = This is a test.', previously 'This is a test' was put
> verbatim into the text area, now it seems to think whatever follows 'Preset Text =' is always a file and I end
> up with 'File <i> This is a test. <i> cannot be found'?
> 
> I did notice a 'Print warning if "preset text" file cannot be found' line in the latest release notes, does this
> now mean wherever I have used the method above I will now need to make a text file to match?
> 
> I'm using them embedded in conditional attributes if that makes any difference?
> 
> Thanks for your help.

Thanks for reporting this bug. I fixed it in SVN revision 2447.
    icon2.gif   Re: Preset Text, posted by Andreas Luedeke on Sat Aug 9 06:40:35 2014 

mike cianci wrote:

Sorry for the novice question, but can anyone tell me where the ".txt" document is suppose to reside for the "Preset text" statement to find it? I have a "test.txt" document in the "Template" file but all "Preset text = test.txt" does is print "test.txt" in the comment section.

Thanks,  Mike

I always chose the safe solution: I provide the full path to the document. For example (under Linux):

Preset text = /usr/local/elog/logbooks/inc/test.txt

 
English (auto-detected) » English
 
 
English (auto-detected) » English
 
    icon2.gif   Re: Preset Text, posted by Andreas Luedeke on Sun Aug 24 15:06:37 2014 

mike cianci wrote:

I have stripped my config file down to one command:   "Preset text = \\ssoelog\elog\templates\test2.txt"

If I type the path "\\ssoelog\elog\templates\test2.txt" into my browser I see the contents of the file, which is the word  "YES"

But when I open a "New" page in ELOG the command returns:    " \\ssoelog\elog\templates\test2.txt"

Could it have anything to do with the fact that I am using Version 2.7.5

Well, I only know that the following config file works fine for me on Linux:

 
English (auto-detected) » English
 

[test]
Attributes = xx
Preset text = /tmp/xx

with the file /tmp/xx containing "test: ignore". When opening a new entry, then the text "test: ignore" is written in the editors text area.

I'm using Version 2.9.2

My suggestion: download the latest Windows Version and try again.

    icon2.gif   Re: Preset Date and Time, posted by Stefan Ritt on Fri Jun 15 18:54:10 2007 

David Egolf wrote:
Is there a way to have the preset date and time and add a set additional time? I do Preventative maintenance and want to add a default 30 days or 90 days to the preset date and time in a datetime field.


No, this is not possible. You have to use the build in calendar to set the correct date. But since you can flip months with a button, this should be straight forward.
    icon2.gif   Re: Preloading Options or Moptions from a text file or CSV, posted by Stefan Ritt on Wed May 6 21:30:13 2015 
> Title says all :)
> 
> Is it possible to preload Options or Moptions from a text file or CSV instead of being load from the elogd.conf ?
> 
> Thanks :)

Quick and simple answer: No.

But please explain me what your case is. Maybe this can be done differently.
    icon2.gif   Re: Preloading Options or Moptions from a text file or CSV, posted by Francois Cloutier on Thu May 7 02:25:16 2015 
> > Title says all :)
> > 
> > Is it possible to preload Options or Moptions from a text file or CSV instead of being load from the elogd.conf ?
> > 
> > Thanks :)
> 
> Quick and simple answer: No.
> 
> But please explain me what your case is. Maybe this can be done differently.

That's clear :)

So basically, I have a list of 5-10 workers. I'll have to choose one for each entry I make into the logbook. But these workers will change from time to time 
(students) and I don't want the staff to manipulate the config file manually..("Extendable options" is not an option as I will get to many "Darth Vader" entry for 
sure..)

I asked if I could populate that option box from another logbook attribute and Andreas told me only possible via external scripts. 
https://midas.psi.ch/elogs/Forum/67877

I investigate a little but I found that :

a) I couldn't make shell command to execute while elogd was running as a service (I'm running windows and $shell was just returning weird stuff ); shell script was 
working only when I launch elogd.exe from a command line:

-elogd as a Service running the following : Subst Infographiste = $shell(dir c:\) 
will return : Shell execution not enabled via -x flag

-modifying the Windows Service to add "-X" and running the following :Subst Infographiste = $shell(dir c:\) 
will return : a empty attribute

-running elogd "-x" from a command line, the following : Subst Infographiste = $shell(dir c:\) 
will return : the dir result..

(I also tried to change under witch user the service was running..)

b) I just couldn't figure how to build that script....

But that would be so nice ! I can see so many situations where I could use such a scenario (loading options from another logbook or from a txt/csv file 
somewhere...)

Thanks,

:)
ELOG V3.1.5-3fb85fa6