it's not a matter of read-only. Grid uses urls like
/app/controller/function/tablename/id
for many things. Imagine what happens when id is really something like
https://www.google.com/?gfe_rd=crei=mAjAVNLgGo2DcPzrgXAgws_rd=ssl#q=web2py;
...
--
Resources:
- http://web2py.com
-
id field in VIEW TABLE - is for view only - why I can't modufy view of id
field?
вторник, 20 января 2015 г., 23:08:03 UTC+3 пользователь Niphlod написал:
field_id MUST be a pkey, so an integer: there's no support for string-like
keys in grid, because it's used as an argument.
On Tuesday,
field_id MUST be a pkey, so an integer: there's no support for string-like
keys in grid, because it's used as an argument.
On Tuesday, January 20, 2015 at 6:15:21 AM UTC+1, Dmitry Ermolaev wrote:
I need that ID become URL on view info of this record - same as View field
понедельник, 25
I need that ID become URL on view info of this record - same as View field
понедельник, 25 августа 2014 г., 14:56:25 UTC+3 пользователь Anthony
написал:
What do you expect it to do, and what is happening instead?
On Monday, August 25, 2014 3:00:47 AM UTC-4, Dmitry Ermolaev wrote:
What do you expect it to do, and what is happening instead?
On Monday, August 25, 2014 3:00:47 AM UTC-4, Dmitry Ermolaev wrote:
SQLFORM.grid(db.pets,
field_id = db.pets.url,
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
i think you want to fetch data of particular row...Please use the
following code for the same
def myfunctionit_detail():
links = [lambda row:
A('Upload',_href=URL(default,myfunction,args=[row.id] ))]
query = ((db.tracker.id=0 ) )
grid = SQLFORM.grid(query=query,
6 matches
Mail list logo