controller:
 ....
 ....   
    rows = 
db(query).select(db.table.id,db.table.field,orderby=~db.table.published,limitby=((page-1)*items_per_page,
 
page*items_per_page))
    pages = UL([A(str(p), 
_href=URL('default','acquisitions_ajax',args=[str(p)])) for p in 
range(1,total_pages+1)], _class='test', _id=0)
    return (rows,pages) # here is my problem
 
    #return(rows) -works ; return (pages) also works. but return(rows,pages) 
not

view: 
{{=SELECT( _id='c', _name="c", 
_onChange="ajax('"+URL(r=request,f='acquisitions_ajax')+"', ['c'], 
'target')", *[OPTION('selectoption',_value="200")] + 
[OPTION(category.category_title, _value=category .id) for category in 
categories])}} 

<div id="target"></div>

so, fi if i use return dict(rows=rows,pages=pages) it returns generic.html
i think this is very easy, but i dont know how tot do this. can u help?


Reply via email to