Hi Ralf,

Your example is only just one table. How about a table inside of that table?
I am worried of the id="{row}[var]" in the second table because the {row} returns the row of the parent row not the row of the table inside.

----------------Original message-----------------
From: "Ralf Becker-2 [via EGroupware]" [[hidden email]]
To: Ki Setargilop [[hidden email]]
Date: Wed, 2 Apr 2014 23:45:52 -0700 (PDT)


Am  03.04.14  04:17,  schrieb  Ki  Setargilop:
>  Hi,
>  How  to  create  nested  tables  with  dynamic  rows  in  the  new  etemplate?
>  Thanks.

Same  way  as  with  old  eTemplate:

<grid id="apps" overflow="auto" height="200">
      <appicon align="center"  src="$row_cont[appname]"/>
      <checkbox label="$row_cont[appname]" id="${row}[run]"/>
      <button label="ACL" id="button[$row_cont[appname]]" image="edit"/>

The above grid displays a list of applications with an icon, a checkbox
and a button for each application in the list:

$content['apps'] = array(
        array('appname' => 'addressbook', 'run' => true),
        array('appname' => 'calendar', 'run' => false),

Ralf  Becker
Director  Software  Development

Stylite  AG

Morschheimer  Strasse  15  |  Tel.  +49  6352  70629  0
D-67292  Kirchheimbolanden  |  Fax.  +49  6352  70629  30

Email:  [hidden email]

www.stylite.de  |  www.egroupware.org

Managing  Directors:  Andre  Keller  |  Ralf  Becker  |  Gudrun  Mueller
Chairman  of  the  supervisory  board:  Prof.  Dr.  Birger  Leon  Kropshofer

VAT  DE214280951  |  Registered  HRB  31158  Kaiserslautern  Germany


eGroupWare-developers mailing list
[hidden email]

signature.asc (916 bytes) Download Attachment
If you reply to this email, your message will be added to the discussion below:
To unsubscribe from Nested tables in eTemplate2, click here.

Gil T. Poligrates
Web Developer
[hidden email]

View this message in context: Re: Nested tables in eTemplate2
Sent from the egroupware-developers mailing list archive at Nabble.com.