Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 225 of 806  Not logged in ELOG logo
ID Date Icon Author Author Emaildown Category OS ELOG Version Subject
  66181   Tue Jan 27 16:01:09 2009 Reply Stefan Rittstefan.ritt@psi.chQuestionWindowslast oneRe: Is it possible to generate an ID with a particular format ?

 

Franck C wrote:

Hi,

I want to know if it is possible to display an ID with this format: YYYY-XXXX where YYYY is the current year and XXXX a sequential number from 0001 to 9999 ?

ID Display = 2009$message id

could be fine but the year is hard coded and there are no 0 before the number.

Can you help me ?

Thanks a lot 

 

You cannot make this with the ID, but you can create an additional attribute which will show exactly this behavior. Have a look under

subst <attribute> = %Y-####

in the documentation. 

  66186   Mon Feb 2 09:46:24 2009 Reply Stefan Rittstefan.ritt@psi.chQuestionWindows2.7.5-2168Re: Incrementation of attribute is not functioning, help needed to fix this.

 

Guido Böing wrote:

I appear to be doing something wrong or not..
In my configuration I use an incrementation of a certain attribute (Melding)
For some weird reason it won't increment in this place, while it does in another place...

Below is my configuration (at least the part that gives me headaches..)

[Onderhoud Diversen]
Theme = default

Attributes = Melding, Auteur, Type, Planning, Categorie, Status, Onderwerp
Options Type = Preventief, Regulier, Nav Storing, Overig
Options Categorie = SensorProbes, Overig
Options Status = Wachtend, Gepland, In behandeling, Update, Afgerond
Type Planning = date
Extendable Options = Categorie, Status
Required Attributes = Auteur, Type, Unit-Lokatie, Status
Page Title = ELOG - $onderwerp
Reverse sort = 1
Quick filter = Date, Type, Status
Preset Melding= DIVOH: %d%m%y-####
Subst on edit Auteur = $long_name
List Display = ID, Melding, Datum, Status, Auteur, Type, Planning, Categorie, Onderwerp
Summary lines = 0
Display Email recipients = 0
Email All = aapie@sukkeltje.com
Use Email Subject = $Melding, $Onderwerp - $Status
Style Status In behandeling = background-color:red
Style Status Update = background-color:orange
Style Status Afgerond = background-color:lime
Login user = person1, person2

 

I tried your configuration and got the attribute incrementing correctly:

Capture.png 

so I'm a bit at a loss, too. Maybe your browser caches the old page, so try a "Reload" on your browser or clear your cache. Maybe your logbook contains some weird entries which make the incementing break. Try this configuration with an empty logbook. Certainly the configuration options are correct.

  66187   Mon Feb 2 10:08:17 2009 Reply Stefan Rittstefan.ritt@psi.chQuestionWindows2.7.5-2130Re: Error Message in HTML or Java Script alert

 

Carsten Elftmann wrote:

 

Stefan Ritt wrote:

 

Carsten Elftmann wrote:
I have there a problem with the error message at required attributes.
 
I have two logbooks with identical settings,
in one the errror message appears as Javascript Alert,
in the other one as html-page, and after using the back button the entered text disapear.
Same I have in this forum.

 

Can you describe what you exactly enter in this forum to produce the error so that I can reproduce it?

 

 I could not produce this error here again, so I work on that:

There was a attribute with Type = Date, Preset = $Date.

This added following js code

  for (var i=0 ; i<document.form1.y0.value.length ; i++)
if ((document.form1.y0.value.charAt(i) < "0" ||
document.form1.y0.value.charAt(i) > "9")) { break }
This cause in following error 
Fehler: document.form1.y0 is undefined
Quelldatei: http://elog1.bkitech.de/Test-Maengelbericht/?cmd=Neu
Zeile: 16
After that error none js will be executed. After remarking the Type line, all work well.

 

I tried with following minimal configuration file:

Attributes = D, Author, Subject
Type D = Date
Preset D = $Date

and it worked fine. The form contains a field:

Year: <input type="text" size=5 maxlength=5 name="y0">

which contains the name "y0" and therefore produced no error. Can you try with that configuration and see which difference to your configuration causes the error to appear?

  66190   Wed Feb 4 19:34:35 2009 Reply Stefan Rittstefan.ritt@psi.chRequestLinux2.7.5Re: frequent crashes on SL4
> Hi, All.  Ever since upgrading from an old ELOG release on an aging windows machine to the latest version on Scientific Linux 4 (RHEL4), and 
> greatly increasing its use, we have seen frequent crashes of elogd.  This has become very disruptive to operations, and any help would be greatly 
> appreciated.  We are using Apache (running on the same machine as elogd) to secure ELOG using https as per the Administrator's Guide.

Just follow

https://midas.psi.ch/elog/faq.html#19

Crashes with attached images are getting reported more and more these days, but so far I was not able to reproduce it. Maybe it's related to ImageMagic 
somehow, in which case disabling this feature might give some insight. To do so, you have to modify elogd.c and recompile. Change

   /* check for ImageMagick */
   my_shell("convert -version", str, sizeof(str));
   image_magick_exist = (strstr(str, "ImageMagick") != NULL);


to

   /* check for ImageMagick */
   image_magick_exist = 0;
  66193   Fri Feb 6 10:58:14 2009 Reply Stefan Rittstefan.ritt@psi.chQuestionWindows2.7.5Re: Options Category : User\Admin
Kim Rosmo wrote:

Hi :)

First i have to say that i love this exelent program,

and that it saved me Hours of trouble using it ^^

Thanks Stefan Ritt :)

 

Now.. here is my problem :P

 

1. I was wondering if there is a possibility to have separate 'Options Category'..  One for Admin and one for User?

    If it is possible, can i have an example?

This is unfortunately not possible. All users see the same options. 

Kim Rosmo wrote:

2. How can i arrange pictures in the main window, f.eks 1 picture in center, to the right or wherever i want?

You can put the pictures in a table, and align the table cells accordingly. Here is an example:

 elog.png  elog.png

 

Now you can make the border invisible by setting "border=0". This however can only be done in the HTML mode, so you have to switch using the top left icon "Show HTML source code" and then manually edit the code. This requires some basic HTML knowledge. The result will look like this:

 elog.png  elog.png
  66195   Fri Feb 6 11:46:18 2009 Reply Stefan Rittstefan.ritt@psi.chQuestionWindows2.7.5Re: Options Category : User\Admin
Kim Rosmo wrote:

Thanks for a fast reply :)

Its a lot of html tutorials on the net, so i think i will make it with the tables ^^

Regarding the 'Options Category' I can live with it... I have removed edit mode in User, so only Admin can delete or edit.

One last question.. Background color possible?  (Not Style)

Only through style (that's what style is for, anyhow). 

  66204   Thu Feb 12 16:43:53 2009 Reply Stefan Rittstefan.ritt@psi.chQuestionLinux2.7.5-2130Re: Internal error, no valid header!

 

ermirza erekose wrote:

I got this error message when trying to upload 17K text file as attachment.  Any idea why ? It's a fresh installed elog and not much configuration done yet.

 

No, no idea. I usually put several MB attachments into elogs without problems. Can you try with the demo logbook https://midas.psi.ch/elogs/Linux+Demo/. Maybe you have an old version of elog? 

  66205   Thu Feb 12 16:54:27 2009 Reply Stefan Rittstefan.ritt@psi.chQuestionLinux2.7.5Re: Attachments

 

Steve Williamson wrote:

Also, on attachments, if I click on the attachment icon (paperclip) on the list page the URL encodes "/" as "%2f", e.g.

http://xxx.xxx.xxx.xxx:8080/Change_Log/..%2FChange_Log%2F090205_123135%2FCHANGE_CONTROL_NOTICE_050209.doc and I get the following error:

"Invalid URL: Change_Log/..%2FChange_Log%2F090205_123135%2FCHANGE_CONTROL_NOTICE_050209.doc" .  If I then change all occurrences of "%2f" to "/" the link works.

 

You have an old version of elog, this bug has been fixed some time ago. Have a look for example at https://midas.psi.ch/elogs/Linux+Demo/.

If you click on a peperclip there, the attachment is shown correctly. 

ELOG V3.1.5-3fb85fa6