Hi Nathan,
if you have an other grid or etemplate in a cell of a nextmatch
row, it
uses it’s own row-count.
What you can do is explicitly passing the content to the nested
grid or
template, eg. use $row as name for the grid or name-space for the
template, then you have the attributes of that row available in the
nested template (without the ${row} prefix, eg. what is
${row}[attribute] outside, would become just attribute in the nested
grid or etemplate).
Ralf
Thanks, that’s what I thought.
I’m using transaction[" . ($row+1) ."] in the nextmatch row, then
referring to the attribute inside:
etemplate row contains etemplate transaction, Options is transaction
[" . ($row+1) ."]
transaction displays a header, and contains etemplate line, Options
is lines
line displays each line, using the normal ${row}[amount] style
reference.
The data looks kind of like:
Array
(
[transaction] => Array
(
[1] => Array
(
[trans_no] => 162
[trans_date] => 2007-07-17
[trans_type] => 6
[lines] => Array
(
[1] => Array
(
[line_no] => 1
[account] => 110000
[amount] => 0.00
[formatted_debit] =>
[formatted_credit] =>
[narrative] => Payment Received
)
[0] => Array
(
[line_no] => 0
[account] => 104000
[amount] => 0.00
[formatted_debit] =>
[formatted_credit] =>
[narrative] => Payment Received
)
)
)
[2] => Array
(
[trans_no] => 161
[trans_date] => 2007-07-17
[trans_type] => 0
[lines] => Array
(
[1] => Array
(
[line_no] => 1
[account] => 120100
[amount] => 0.00
[formatted_debit] =>
[formatted_credit] =>
[narrative] => BLT-112118
garbaged - 1
)
[0] => Array
(
[line_no] => 0
[account] => 509000
[amount] => 0.00
[formatted_debit] =>
[formatted_credit] =>
[narrative] => BLT-112118
garbaged - 1
)
)
)
…
Only the first transaction is displayed, however.
The other transactions get a
, one for each transaction that is
supposed to be shown, but the
only contains !
Nathan Gray
nathan at goarctic dot com
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers