• 3407 views
  • 0 comments
  • loading...

Returns a list of records

Returns a list of records selected from the table.

crud.select(table, query, fields, orderby, limitby, headers, **attr)

Attributes / Arguments

 DAL table or a tablename the method should act on

Query is the query to be used to select records.

fields is a list of fields to be selected.

orderby determines the order in which records should be selected

limitby determines the range of selected records that should be displayed

headers is a dictionary with the table header names.


Examples

loading...

Sources / Reference

" web2py Book Chapter 7: Forms and Validatators" is licensed under Creative Common License BY-NC-ND 3.0


Comments

loading...

Powered by
Web2py

Hosted on
www.pythonanywhere.com
(affiliated link)