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.


-Ki
 
----------------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)
----------------------------------------------------------

Hi,

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">
  <columns>
    <column/>
    <column/>
    <column/>
  </columns>
  <rows>
    <row>
      <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"/>
    </row>
  </rows>
</grid>

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
--
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]
https://lists.sourceforge.net/lists/listinfo/egroupware-developers

signature.asc (916 bytes) Download Attachment
 
If you reply to this email, your message will be added to the discussion below:
http://egroupware.219119.n3.nabble.com/Nested-tables-in-eTemplate2-tp3996971p3996977.html
To unsubscribe from Nested tables in eTemplate2, click here.
NAML

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.