I’ve done lots of nextmatch widgets, and they all work, except
one. When clicking any part of the widget (category, search,
num_rows, arrows), it submits to the callback function (as provided
in the etemplate->exec function) instead of calling the get_rows
function (as provided in the nextmatch array).
It gets the data, but only the first page using default settings.
I can’t filter, I can’t change the number of rows returned, and I
can’t get to the next page of results. When I try, the form is
submitted and the nextmatch is reset.
The nextmatch array:
$data[‘nextmatch’] = array(
‘sales_category_id’ => $category_id,
‘get_rows’ =>
‘perp_orders.bo_perp_orders.get_sales_category_stock’,
‘template’ => ‘perp_orders.sales_category_edit.row’,
‘cat_app’ => ‘perp_inventory’,
‘no_filter’ => true,
‘no_filter2’ => true
);
This may be a Monday morning thing, but I can’t think of anything
different that would cause this to happen. Can anyone think of
anything?
Took me a month, off and on but it turns out the problem was an Ajax
select widget located after the nextmatch widget was canceling the
nextmatch’s request to loop.
The nextmatch would set $loop to true, ajax_select_widget would set
it to false, and the callback function would get called.
To make ajax_select_widget play nice with other widgets:
$extension_data[‘required’];
Just for the record…
Nathan Gray
nathan at goarctic dot com
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers