Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Recursively open a new attribute of the same type, posted by Diogo Alves on Thu Apr 22 09:51:07 2010 
    icon2.gif   Re: Recursively open a new attribute of the same type, posted by Stefan Ritt on Thu Apr 22 12:29:05 2010 
       icon2.gif   Re: Recursively open a new attribute of the same type, posted by Diogo Alves on Fri Apr 23 08:32:10 2010 
          icon2.gif   Re: Recursively open a new attribute of the same type, posted by Stefan Ritt on Fri Apr 23 08:33:53 2010 
Message ID: 66793     Entry time: Thu Apr 22 12:29:05 2010     In reply to: 66792     Reply to this: 66795
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Question  OS: Linux  ELOG Version: 2.7.7 
Subject: Re: Recursively open a new attribute of the same type 

Diogo Alves wrote:

Hi,

I have a logbook which, among other things, contains these attributes:

Options Ingredient = Egg, Oil

Options Quantity = 2, 0.1L

Now, I would like to, every time I select an ingredient and respective quantity, that another Ingredient and Quantity field opens up for me to procede addind them.

I've searched in the documentation and found nothing related to this. Maybe I missed it. Is it possible to do this?

Also, is there a way to display 2 attributes in the same row? Messing with CSS is probably the only answer ... correct?

Recursive attributes are not possible. All you can do is to define a certain number (like Ingredient1, Ingredient2, Ingredient3) and use Conditional Attributes to show them using the "Show Attributes Edit = ..." option.

To display two attributes in the same row, use 

Format <attribute> = 1

for the second attribute.

ELOG V3.1.5-fe60aaf