def do_what_timmie_asks():
rows=db(db.sometable.id>0).select()
db.sometable.id.represent=lambda id: DIV(id,INPUT
(_type='checkbox',_name='check%i'%id))
form=FORM(SQLTABLE(rows),INPUT(_type='submit'))
if form.accepts(request.vars):
pass # or so something not sure what you want to do
return dict(form=form)
On May 18, 11:23 am, Timmie <[email protected]> wrote:
> Hello,
> I want to achieve the following:
>
> * Show all records or a search result of records as a table.
> * The first column of the table shall contain a checkbox.
> * The usere shall select those records, he/she is interested in by
> checking the boxes
> * The user shall click on: show details for selected which would
> update the selection accordingly.
>
> I found this PHP code:http://www.webbysoft.com/babelkit/php/bk_demo.php
>
> How would I start to develop such a functionality with web2py?
>
> Thanks,
> Timmie
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---