[web2py] Re: SQLFORM.grid edit form pre populate field

2013-12-06 Thread Ivo
that's exatly how far I got :) I want to get db.authuser.value and apply it to a corresponding field in the edit form function of SQLFORM.grid. The problem is the last part not the first. thanks for the thread reference by the way. On Friday, December 6, 2013 4:17:20 PM UTC+1, 黄祥 wrote: > > i thi

[web2py] Re: SQLFORM.grid edit form pre populate field

2013-12-06 Thread 黄祥
i think you can achieve it by simply doing : db.auth_user.value assumption you have the field name value in your auth_user table. for reference, please take a look at : https://groups.google.com/forum/#!topic/web2py/9H5ANdSzzVU best regards, stifan -- Resources: - http://web2py.com - http://web

[web2py] Re: SQLFORM.grid edit form pre populate field

2013-12-06 Thread Ivo
Hi Stifan I'm trying to retrieve the contents of auth.settings.extra_fields['auth_user']= [ Field('value') ] I hope that clarifies it a bit :) sorry if I'm unclear; still learning to code and thus how to properly formulate my questions in an understandable way On Friday, December 6, 201

[web2py] Re: SQLFORM.grid edit form pre populate field

2013-12-06 Thread 黄祥
> > value = auth.user.value > i'm not sure what do you want to retrieve in here. if you want to retrieve the value of current user id, i think you can achieve it using : current_user_id = auth.user_id best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentati