Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   filter with or operation/TIME DURATION CALCULATION , posted by dev on Wed Jan 21 02:15:12 2015 
    icon2.gif   Re: filter with or operation/TIME DURATION CALCULATION , posted by Andreas Luedeke on Thu Jan 22 08:35:23 2015 
Message ID: 67758     Entry time: Thu Jan 22 08:35:23 2015     In reply to: 67757
Icon: Reply  Author: Andreas Luedeke  Author Email: andreas.luedeke@psi.ch 
Category: Question  OS: All  ELOG Version: 3.3 
Subject: Re: filter with or operation/TIME DURATION CALCULATION  

 

dev wrote:

1.I HAVE A ELOG BOOK WITH TWO ATTRIBUTE 'FROM' &'TO'. I WANT TO USE A FILTER WHICH WILL SEARCH FOR A VALUE  IN BOTH ATTRIBUTE .KINDLY HELP ME.

2. HOW TO CALCULATE THE TIME DURATION  AUTOMATICALLY BASED ON TWO ATTRIBUTES 'START TIME' AND 'STOP TIME' .

1a. If you go to the "Find" form, you can add filters on several attribute. The URL of the result page can be bookmarked: this is your filter.

1b. If you define quick filters on FROM and TO, then you can enter filters on both.

2. If you start elogd with the -x option, then you can execute scripts in the "subst" and "subst on edit" commands. Within those shell scripts you can use $START TIME and $STOP TIME to calculate the attributes value. Look for the "Subst" command in the documentation.

ELOG V3.1.5-fe60aaf