ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
69332
|
Wed Mar 24 22:09:56 2021 |
| Andreas Luedeke | andreas.luedeke@psi.ch | Request | Linux | All | V3.1.4 | Re: Request: make $text available for "subst" |
Hi Stefan,
no problem: if I just strip all newlines from the $text field (in HTML you use <br> anyway, the newline has no function apart from whitespace), and my multiline attribute is fine to go.
I do not intend to make the attribute editable: it is just used for display. Because that allows me to create the attribute either from free text or from combining other fields - depending on conditional attributes.
As a special feature you could strip all newlines beforehand, when providing the $text for subst statements.
Cheers, Andreas
Stefan Ritt wrote: |
Sure, attributes can be shown multi-line, but they cannot be stored in the elog internal database. The database is a very old design and only allows for single line attributes. Just look at a YYMMDDa.log file and you will see that. I would have to change the database format to somethign more advanced like XML, but that would take me a couple of weeks or months.
Soooorrryy! ;-)
Andreas Luedeke wrote: |
While the input widget of text attributes is a single line, they can easily be multi-line in the display - when you use HTML at least.
And of course the user can parse the text field and generate a single line, if he wants to.
If you leave it to me, I'll create wonderful applications to that feature :-)
Please? ;-)
Stefan Ritt wrote: |
$text is the full body text and can go over many lines. Since attributes are restricted to single lines, it's not possible to substitute them with the body text.
Stefan
Andreas Luedeke wrote: |
Hi Stefan,
I've just tried to read the $text with subst into another field and failed.
It looks like $text is only available for the execution of shell scripts in the "execute new|edit|delete = <script>" command.
Could that be added? I can think of a multitude of applications:
- In my case I want to fill an attribute X either with free text or generated from other fields. The list view will show just X and not how it was generated.
- I could fill an attribute automatically with the character length of the text.
- I could parse the text in a shell script and set other attributes according to the content.
Thank you for considering it.
Cheers, Andreas
|
|
|
|
|
69371
|
Mon Jun 14 18:06:06 2021 |
| Andreas Luedeke | andreas.luedeke@psi.ch | Comment | Linux | All | V3.1.4 | Re: Request: make $text available for "subst" |
I should tell that I found a simpler way to achieve the same:
I suppress the "text" field and use a single line text input field instead.
The single line input in "free text" modes just contains "<br>" : I would have had to use those in the text field anyway.
Andreas Luedeke wrote: |
Hi Stefan,
no problem: if I just strip all newlines from the $text field (in HTML you use <br> anyway, the newline has no function apart from whitespace), and my multiline attribute is fine to go.
I do not intend to make the attribute editable: it is just used for display. Because that allows me to create the attribute either from free text or from combining other fields - depending on conditional attributes.
As a special feature you could strip all newlines beforehand, when providing the $text for subst statements.
Cheers, Andreas
Stefan Ritt wrote: |
Sure, attributes can be shown multi-line, but they cannot be stored in the elog internal database. The database is a very old design and only allows for single line attributes. Just look at a YYMMDDa.log file and you will see that. I would have to change the database format to somethign more advanced like XML, but that would take me a couple of weeks or months.
Soooorrryy! ;-)
Andreas Luedeke wrote: |
While the input widget of text attributes is a single line, they can easily be multi-line in the display - when you use HTML at least.
And of course the user can parse the text field and generate a single line, if he wants to.
If you leave it to me, I'll create wonderful applications to that feature :-)
Please? ;-)
Stefan Ritt wrote: |
$text is the full body text and can go over many lines. Since attributes are restricted to single lines, it's not possible to substitute them with the body text.
Stefan
Andreas Luedeke wrote: |
Hi Stefan,
I've just tried to read the $text with subst into another field and failed.
It looks like $text is only available for the execution of shell scripts in the "execute new|edit|delete = <script>" command.
Could that be added? I can think of a multitude of applications:
- In my case I want to fill an attribute X either with free text or generated from other fields. The list view will show just X and not how it was generated.
- I could fill an attribute automatically with the character length of the text.
- I could parse the text in a shell script and set other attributes according to the content.
Thank you for considering it.
Cheers, Andreas
|
|
|
|
|
|
609
|
Thu Jul 15 22:01:55 2004 |
| Stefan Ritt | stefan.ritt@psi.ch | Request | Linux | Windows | 2.5.3. | Re: Request: limit size of attachments |
> Is it possible to add a flag in the configuration file, to specify the
> maximum size of an attachment?
I implemented a "max content length = xxx" flag, which defaults to 10MB. If an
attachment is larger, an error gets displayed. The problem is that elogd can
only send the error message to the browser *after* it received the whole
request, so it has to "drain" the 240 MB first, which could take quite some
time on a slow connection.
Alternatively, I can cut the connection to the browser immediately, since the
HTTP header contains the content length after the first ~500 bytes, but in
that case the browser only shows a message box "Document contains no data"
which gives the user noe clue of what's wrong.
Anyhow the biggest problem of elog in high stress environments is that it's
single threaded. So if someone issues a search in a large logbook, it could
take some time, in which elog cannot respond to other requests. Maybe I will
find time in the future to make elog multithreaded, but certainly not in the
near future. |
65849
|
Wed Apr 23 11:51:06 2008 |
| Stefan Ritt | stefan.ritt@psi.ch | Request | | | Re: Request: elog as a "web service" ? (xml / soap) |
Willem Koster wrote: |
We're using elog as our CMDB, but now management wants us to employ "web services" and I fear going to another tool (elog is fitting the admins like a glove, so we'd rather keep it)
Is it possible to configure elog to be able to run as a web-service ? (basically getting xml-output according to a specific (SOAP) schema instead of html output)
|
At the moment no support for a Web Service is planned. |
1232
|
Thu Jul 7 04:47:09 2005 |
| Gary Clayson | imppster@gmail.com | Request | All | 2.5.8 | Re: Request: can the comment for a log book be put in the status bar on hover |
Tim Iskander wrote: | We have several logbooks running here with somewhat cryptic names. The comment field for the
logbook describes its intent well enough, so the thought was that the comment could show up in the
status bar (or tooltip) when you hover over the logbook name in the tabs at the top of the page.
___ yea 
___ nea 
/Tim |
I wonder if there is any way to use the javascript 'window.status' method to accomplish this. It would be a nice addition when there are many logbooks.
Gary ;-> |
1239
|
Thu Jul 7 21:48:31 2005 |
| Stefan Ritt | stefan.ritt@psi.ch | Request | All | 2.5.8 | Re: Request: can the comment for a log book be put in the status bar on hover |
Tim Iskander wrote: | We have several logbooks running here with somewhat cryptic names. The comment field for the
logbook describes its intent well enough, so the thought was that the comment could show up in the
status bar (or tooltip) when you hover over the logbook name in the tabs at the top of the page. |
_X_ yea 
___ nea 
I added a tooltip to the logbook showing the comment field. The status bar is a bit difficult since it requires Javascript and is not supported by all browsers. But I hope the tooltip is good enough. The modification is in CVS, you can try it at the forum.
- Stefan |
1243
|
Fri Jul 8 13:32:56 2005 |
| Tim Iskander | tim.iskander@criticallink.com | Request | All | 2.5.8 | Re: Request: can the comment for a log book be put in the status bar on hover |
Stefan Ritt wrote: |
Tim Iskander wrote: | We have several logbooks running here with somewhat cryptic names. The comment field for the
logbook describes its intent well enough, so the thought was that the comment could show up in the
status bar (or tooltip) when you hover over the logbook name in the tabs at the top of the page. |
_X_ yea 
___ nea 
I added a tooltip to the logbook showing the comment field. The status bar is a bit difficult since it requires Javascript and is not supported by all browsers. But I hope the tooltip is good enough. The modification is in CVS, you can try it at the forum.
- Stefan |
I like it!
thanks...
/Tim |
2077
|
Mon Nov 13 20:22:02 2006 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Windows | 2.6.2-1748 | Re: Report printing |
Eric Krise wrote: | Is there a way to print a summary of all (or selected) log books on a scheduled basis, say like every morning @ 7:00 am? I would like a printed copy of our daily logs (24 hr period). Thanks Eric |
You can obtain the last 24hr period with the parameter last=1. Following command will return this last day for the forum
http://midas.psi.ch/elogs/Forum/?printable=1&last=1
Now you need to set up some script which calls this once a day and then convinces the browser to print that page. But I have no idea how to perform this.
Another option is to print the xxxxxxa.log files of the elogd server directly. There is already one file per day, and the original reason for that is exactly what you ask for: You can print each day directly. Now you need a script which searched for the last day and prints that. |