dimoss
Well-Known Member
Hi,
I am using the Php Events List plugin using the following code inside onLoadDat to autonumber the records of a list:
The 'fab_list_able_28_repeat___no' is a single field hidden which is used only for diplaying the row number.
Everything is fine and works as expected.
However I cannot find a way do not numbering rows when the value in the field fab_list_able_28_repeat___wl_raw is 'NER' or 'WDL'
In other words I am trying to have a conditional numbering.
Any ideas are appreciated.
Thanks.
I am using the Php Events List plugin using the following code inside onLoadDat to autonumber the records of a list:
PHP:
$rownum = $model->limitStart;
$data = $args[0]->data;
foreach ($data as $group) {
foreach ($group as $row) {
$rownum++;
$row->fab_list_able_28_repeat___no = $rownum;
$row->fab_list_able_28_repeat___no_raw = $rownum;
}
}
Everything is fine and works as expected.
However I cannot find a way do not numbering rows when the value in the field fab_list_able_28_repeat___wl_raw is 'NER' or 'WDL'
In other words I am trying to have a conditional numbering.
Any ideas are appreciated.
Thanks.