ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
579
|
Fri Jul 9 19:17:03 2004 |
| Ulrich Trüssel | ulrich.truessel@familienhund.ch | Request | All | 2.5.3 | Re: Formatting parameters for attributes | Thank you Stefan! Just was out of the office for some days.
There ar 2 questions in addition:
1. Is there a possiblity to fix the position of the attribut fields if they are in
the same line? As. ex. if one attribute is empty or contain a very short value it may
be possible that the position of the following atrributes in the line are moving to
the left, if the value is very long, they move to the right side. This make it
sometime not easy to read the informations, specially if the user browses trough some
entries, the picture the eyes are scanning is changing.
2. Did I understand you right, that tis will not work while editing? I would like to
put this to the wish list for a uppcoming version (not very importand, but VERY nice
to have), that it may be possible to use Format in the new and edit mode too, because
it is somtimes more comfortable to have some attributes grouped locically in one line
or to have a overview over all attributes on one screen without scrolling while editing.
ELOG has e very big flexibility and I'm amazed how fast and stable it's running under
Linu xas well as under Windows! - I love it! :-)
Ueli
> > I have some problems of understanding how the "Format <attribute>" parameter
> > is working. It may be, that there was a similar question in the forum, but I
> > didn't find it. I'm sorry if I come back with an old question.
> >
> > I would like to have 2two attributes in the same line. As ex. PersonName,
> > PersonCity.
> >
> > If I understand the handbook correctly, it should be posslible with "Format
> > <attribute> = 1". However, I'm not able to use the "Format <attribute>"
> > correctly because I do not understand how to use it correctly in the cfg file.
> >
> > Is there a possibilty of an example by Stafan or does anybody else already
> > use this feature successfuly and is able to post a example here?
>
> This forum uses that feature. As you can see, if you display a single entry, the
> author, subject etc. are on a single line. This is achieved with
>
> Format Author = 1
> Format Author email = 1
> Format Category = 1
> Format OS = 1
> Format ELOG Version = 1
>
> Note that in the entry form, each attribute is on a separate line no matter what
> the format specifiers are. The single line option only works for the display page. |
582
|
Mon Jul 12 10:36:22 2004 |
| Stefan Ritt | stefan.ritt@psi.ch | Request | All | 2.5.3 | Re: Formatting parameters for attributes | > 1. Is there a possiblity to fix the position of the attribut fields if they are in
> the same line? As. ex. if one attribute is empty or contain a very short value it may
> be possible that the position of the following atrributes in the line are moving to
> the left, if the value is very long, they move to the right side. This make it
> sometime not easy to read the informations, specially if the user browses trough some
> entries, the picture the eyes are scanning is changing.
Yes there is a possibility. In the format option, you can specify two CSS names, one for the
attribute and one for it's value. The default ones are "attribname" and "attribvalue". Just
make new ones by copying these two, renaming it to something like xxxname and xxxvalue where
"xxxx" is the name of the attribute. You find that in the file themes/default/default.css.
They contain a field called "width:" which can be changed:
.typename {
width:150px; <-- must be changed
background-color:#CCCCFF;
border:1px solid #0000FF;
border-top:1px solid white;
border-left:1px solid white;
padding:3px;
}
By having separate classes for all attributed, you can change their width separately,
accomplishing hopefully what you need.
> 2. Did I understand you right, that tis will not work while editing? I would like to
> put this to the wish list for a uppcoming version (not very importand, but VERY nice
> to have), that it may be possible to use Format in the new and edit mode too, because
> it is somtimes more comfortable to have some attributes grouped locically in one line
> or to have a overview over all attributes on one screen without scrolling while editing.
I will put this on the wishlist.
Stefan |
583
|
Mon Jul 12 11:03:10 2004 |
| Ulrich Trüssel | ulrich.truessel@familienhund.ch | Request | All | 2.5.3 | Re: Formatting parameters for attributes | Thank you Stefan!
1. Will help in the real hard cases!
2. Great! Specially editing adresses or some stutus overviews will be easier with a compleate
overview!
> > 1. Is there a possiblity to fix the position of the attribut fields if they are in
> > the same line? As. ex. if one attribute is empty or contain a very short value it may
> > be possible that the position of the following atrributes in the line are moving to
> > the left, if the value is very long, they move to the right side. This make it
> > sometime not easy to read the informations, specially if the user browses trough some
> > entries, the picture the eyes are scanning is changing.
>
> Yes there is a possibility. In the format option, you can specify two CSS names, one for the
> attribute and one for it's value. The default ones are "attribname" and "attribvalue". Just
> make new ones by copying these two, renaming it to something like xxxname and xxxvalue where
> "xxxx" is the name of the attribute. You find that in the file themes/default/default.css.
> They contain a field called "width:" which can be changed:
>
> .typename {
> width:150px; <-- must be changed
> background-color:#CCCCFF;
> border:1px solid #0000FF;
> border-top:1px solid white;
> border-left:1px solid white;
> padding:3px;
> }
>
> By having separate classes for all attributed, you can change their width separately,
> accomplishing hopefully what you need.
>
> > 2. Did I understand you right, that tis will not work while editing? I would like to
> > put this to the wish list for a uppcoming version (not very importand, but VERY nice
> > to have), that it may be possible to use Format in the new and edit mode too, because
> > it is somtimes more comfortable to have some attributes grouped locically in one line
> > or to have a overview over all attributes on one screen without scrolling while editing.
>
> I will put this on the wishlist.
>
> Stefan |
67997
|
Wed Jun 10 11:52:47 2015 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | All | 3.1 | Re: Formatting multiple datetime entries |
Edmund Hertle wrote: | Hey
in one of my measurement logbooks I'm using two datetime entries (for start and end time of a measurement). The entries are created automatically by the measurement script.
Attributes = Time Start, Time End
Type Time Start = datetime
Type Time End = datetime
Time format = %H:%M:%S
For better visual appearance I would like to only display the time on the two additional datetime fields but keep the full date and time on the standard date field. Using the "Time format" option will influence all three at once.
Is there an option to do something like the time format for individual attributes (similar to the syntax of adding comments etc)?
Example:Attributes = Time Start, Time End
Type Time Start = datetime
Type Time End = datetime
Time format Time Start = %H:%M:%S
Time format Time End = %H:%M:%S
|
Ok, implemented in the current version. |
67999
|
Wed Jun 10 12:48:41 2015 |
| Neal Grafton | neal.grafton@stfc.ac.uk | Question | All | 3.1 | Re: Formatting multiple datetime entries |
Stefan Ritt wrote: |
Edmund Hertle wrote: | Hey
in one of my measurement logbooks I'm using two datetime entries (for start and end time of a measurement). The entries are created automatically by the measurement script.
Attributes = Time Start, Time End
Type Time Start = datetime
Type Time End = datetime
Time format = %H:%M:%S
For better visual appearance I would like to only display the time on the two additional datetime fields but keep the full date and time on the standard date field. Using the "Time format" option will influence all three at once.
Is there an option to do something like the time format for individual attributes (similar to the syntax of adding comments etc)?
Example:Attributes = Time Start, Time End
Type Time Start = datetime
Type Time End = datetime
Time format Time Start = %H:%M:%S
Time format Time End = %H:%M:%S
|
Ok, implemented in the current version. |
I can use that....
Also, is there a way of automatically displaying the difference in Hrs mins between Time start and Time End? |
68000
|
Wed Jun 10 12:52:48 2015 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | All | 3.1 | Re: Formatting multiple datetime entries |
Neal Grafton wrote: |
Also, is there a way of automatically displaying the difference in Hrs mins between Time start and Time End? |
Nope. The only way to do that is to use a scrip on the server (see elog:67876 for example), or use JavaScript. With "Top Text = <file>" you can "sneak in" some JavaScript code which massages the DOM tree and computes everything you want.
/Stefan |
68001
|
Wed Jun 10 12:56:58 2015 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | All | 3.1 | Re: Formatting multiple datetime entries |
Neal Grafton wrote: | Also, is there a way of automatically displaying the difference in Hrs mins between Time start and Time End? |
I guess you want to do some more complex calculations, like adding the running times, etc. This goes beyond the scope of elog. You can however export elog entries as a CSV file and import it in a spreadsheet program and do there all calculations you want.
/Stefan |
68002
|
Wed Jun 10 13:00:07 2015 |
| Neal Grafton | neal.grafton@stfc.ac.uk | Question | All | 3.1 | Re: Formatting multiple datetime entries |
Stefan Ritt wrote: |
Neal Grafton wrote: | Also, is there a way of automatically displaying the difference in Hrs mins between Time start and Time End? |
I guess you want to do some more complex calculations, like adding the running times, etc. This goes beyond the scope of elog. You can however export elog entries as a CSV file and import it in a spreadsheet program and do there all calculations you want.
/Stefan |
Thanks Stefan
Neal |
|