Simple Math, posted by mike cianci on Mon Apr 13 07:26:39 2009
|
Sorry to bother you. I could see in past Forum entries that the question of "Simple Math" has come up before, although the answers were not all that simple.
Can you do simple math (i.e. attribute A + attribute B = attribute C) in ELOG ?
Thank you for putting up with my questions.
Mike |
Re: export the elog data, posted by Hal Proctor on Mon Apr 13 17:35:40 2009
|
Stefan Ritt wrote: |
urian bardulla wrote: |
Hi guys,
Is there any simple way to export the ELOG data in a more readable way, except copying the .log files????
Thank You in advance,
Urian.
|
Click on Find, then select Export to: ..., then click Search. I know it's a bit hidden, but this way one can restrict the subset of entries to be exported.
|
but that method does not export all the data, only the subject lines and category etc.
it does not export the body of the threads. |
Re: export the elog data, posted by Stefan Ritt on Tue Apr 14 07:43:56 2009
|
Hal Proctor wrote: |
Stefan Ritt wrote: |
urian bardulla wrote: |
Hi guys,
Is there any simple way to export the ELOG data in a more readable way, except copying the .log files????
Thank You in advance,
Urian.
|
Click on Find, then select Export to: ..., then click Search. I know it's a bit hidden, but this way one can restrict the subset of entries to be exported.
|
but that method does not export all the data, only the subject lines and category etc.
it does not export the body of the threads.
|
The CSV option does not export the body, since in CSV, only single line items are allowed. But both the XML and the RAW option exports also the body text. |
Re: Simple Math, posted by Stefan Ritt on Tue Apr 14 08:30:42 2009
|
mike cianci wrote: |
Sorry to bother you. I could see in past Forum entries that the question of "Simple Math" has come up before, although the answers were not all that simple.
Can you do simple math (i.e. attribute A + attribute B = attribute C) in ELOG ?
Thank you for putting up with my questions.
Mike
|
No, you can't. The only way is to export a logbook to CSV, then import it in a spreadsheet program, then do the math there. |
Re: Allow password change ???, posted by Stefan Ritt on Tue Apr 14 08:48:24 2009
|
Hal Proctor wrote: |
Hal Proctor wrote: |
How do you allow users to change password for a given logbook when the user keeps getting prompted for admin password to enter the change password feature?
I have Allow password change = 1 set global and at each logbook hoping that would work.
It allows them to change the password when and only when the user gets past the admin login when clicking CONFIG.
help
|
Thats what we get for having two people working on the install and configuration. LOL
When first creating and setting up the configs, we had Admin Password = xxxxx entered in each logbook config. Once we created a password list we no longer needed that entry.
This was why each user who had login credentials was being asked to provide the admin password when trying to change their password. 
|
I didn't get your point completely, so is this issue now resolved? |
Re: Allow password change RESOLVED???, posted by Hal Proctor on Tue Apr 14 15:18:11 2009
|
Stefan Ritt wrote: |
Hal Proctor wrote: |
Hal Proctor wrote: |
How do you allow users to change password for a given logbook when the user keeps getting prompted for admin password to enter the change password feature?
I have Allow password change = 1 set global and at each logbook hoping that would work.
It allows them to change the password when and only when the user gets past the admin login when clicking CONFIG.
help
|
Thats what we get for having two people working on the install and configuration. LOL
When first creating and setting up the configs, we had Admin Password = xxxxx entered in each logbook config. Once we created a password list we no longer needed that entry.
This was why each user who had login credentials was being asked to provide the admin password when trying to change their password. 
|
I didn't get your point completely, so is this issue now resolved?
|
Yes we had listed within each individual logbook config "Admin Password = xxxx". this was causing the admin login prompt when users wanted to change their own passwords. The "Admin Password =xxxxx" cannot reside on each logbook config when you use a password list and allow users to change their passwords. |
Multi Logook Login, posted by Hal Proctor on Tue Apr 14 15:26:14 2009
|
We have two logbooks, each with a different list of users.
The logbooks are open to all network users for read only.
A user with Write permisions logs into his designated logbook.
He then decides to view the other logbook, the one he does not have write permissions to by clicking on the tab to the other logbook.
He is immediately logged out of the logbook he has write permissions to.
He did not close his browser session, only clicked on the other logbook tab.
Is there Any way to keep that person logged into the logbook he has rights to without having the "keep me logged in Checkbox"?
Just like this site has Forum, Config Examples, etc.
Once you select another tab they are logged out of their logbook they just logged in to.
|
Re: Simple Math, posted by Erik Iverson on Tue Apr 14 17:57:56 2009
|
Stefan Ritt wrote: |
mike cianci wrote: |
Sorry to bother you. I could see in past Forum entries that the question of "Simple Math" has come up before, although the answers were not all that simple.
Can you do simple math (i.e. attribute A + attribute B = attribute C) in ELOG ?
Thank you for putting up with my questions.
Mike
|
No, you can't. The only way is to export a logbook to CSV, then import it in a spreadsheet program, then do the math there.
|
You can pass numerical attributes to an external command via "Execute new =...". This external command can then do the math and pass the result _back_ to the logbook either as a new entry or as an edit with the command-line client "elog".
For example, given a new entry with (numerical) attributes A and B, if you have
Execute new = add_them.pl $A $B $message id
in your elog.cfg file, then $A and $B will be passed to the add_them.pl perl script. Now have the perl script (or bc, or whatever you want to use) do the appropriate math and submit the result. For example, your perl script might include
$C=$A+$B
$D=$A*$B
elog -a C=$C ... -e "$message id" "Sum as edit"
elog -a D=$D ... "Product as new entry"
|