My array structure below:

I am working it under nextmatch table.

$rows = array(
 [0] => array(
   [tbl_inside] = array(
    [0] = array(
     [col1] = "column_1",
     [col2] = "column_2",
     [col3] = "column_3",
    ),
    [1] = array(
     [col1] = "column_1",
     [col2] = "column_2",
     [col3] = "column_3",
    ),
   ),
 ),
 [1] => array(
   [tbl_inside] = array(
    [0] = array(
     [col1] = "column_1",
     [col2] = "column_2",
     [col3] = "column_3",
    ),
    [1] = array(
     [col1] = "column_1",
     [col2] = "column_2",
     [col3] = "column_3",
    ),
   ),
 )
);

The table inside the nextmatch row is not appearing.

-Ki
 
----------------Original message-----------------
From: "Ralf Becker-2 [via EGroupware]" [[hidden email]]
To: Ki Setargilop [[hidden email]]
Date: Thu, 3 Apr 2014 01:48:11 -0700 (PDT)
----------------------------------------------------------

Hi Ki,

Am 03.04.14 10:11, schrieb Ki Setargilop:
> 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.

Just removed surrounding grid from my Example, but there is one in
working code I copied it from.

$row is always from current grid!

(I gave grid an id="apps" to use $content['apps'] and not just $content,
but that's more to ease parsing changes later then necessity.)

Ralf

> ----------------Original message-----------------
> From: "Ralf Becker-2 [via EGroupware]" [[hidden email]
> </user/SendEmail.jtp?type=node&node=3996982&i=0>]
> To: Ki Setargilop [[hidden email]
> </user/SendEmail.jtp?type=node&node=3996982&i=1>]
> 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] </user/SendEmail.jtp?type=node&node=3996977&i=0>
>>
>> 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] </user/SendEmail.jtp?type=node&node=3996977&i=1>
>> https://lists.sourceforge.net/lists/listinfo/egroupware-developers
>>
>> *signature.asc* (916 bytes) Download Attachment
>> <http://egroupware.219119.n3.nabble.com/attachment/3996977/0/signature.asc>
>>  
>> ------------------------------------------------------------------------
>> 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
>> <http://egroupware.219119.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> ------------------------------------------------------------------------
> Gil T. Poligrates
> Web Developer
> [hidden email] </user/SendEmail.jtp?type=node&node=3996982&i=2>
>
>
>
>
> ------------------------------------------------------------------------
> View this message in context: Re: Nested tables in eTemplate2
> <http://egroupware.219119.n3.nabble.com/Nested-tables-in-eTemplate2-tp3996971p3996982.html>
> Sent from the egroupware-developers mailing list archive
> <http://egroupware.219119.n3.nabble.com/egroupware-developers-f278587.html>
> at Nabble.com.
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> eGroupWare-developers mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/egroupware-developers
>

--
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-tp3996971p3996986.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.