Are you trying to set defaults values?
See http://web2py.com/book/default/chapter/07#Pre-populating-the-form
you were close, it is:
form.vars.name = 'fieldvalue'
On Sep 27, 3:27 pm, Matt Broadstone wrote:
> On Tue, Sep 27, 2011 at 12:32 PM, Anthony wrote:
> > You can use SQLFORM.factory and s
On Tue, Sep 27, 2011 at 12:32 PM, Anthony wrote:
> You can use SQLFORM.factory and still have complete control over the form
> layout/appearance --
> see http://web2py.com/book/default/chapter/07#Custom-forms.
> But if you want to access any of the SQLFORM widgets independently, they are
> of the
You can use SQLFORM.factory and still have complete control over the form
layout/appearance --
see http://web2py.com/book/default/chapter/07#Custom-forms.
But if you want to access any of the SQLFORM widgets independently, they are
of the form SQLFORM.widgets.[field type].widget --
see http://
On Tue, Sep 27, 2011 at 11:49 AM, Anthony wrote:
> In Field(), represent defaults to None -- you have to specify a represent
> function of your own.
> Anthony
>
Ah, I see. Is there a way to leverage the representations defined in
SQLFORM.factory for this? SQLFORM.factory worked to a certain degre
In Field(), represent defaults to None -- you have to specify a represent
function of your own.
Anthony
On Tuesday, September 27, 2011 11:46:58 AM UTC-4, Matt wrote:
>
> On Tue, Sep 27, 2011 at 11:41 AM, Anthony wrote:
> > Do you need the field's widget or it's represent (they're two different
On Tue, Sep 27, 2011 at 11:41 AM, Anthony wrote:
> Do you need the field's widget or it's represent (they're two different
> things)? Note, the represent attribute is a function/callable (usually a
> lambda) that takes a value (and optionally a record), so if you want to use
> it directly, you hav
Do you need the field's widget or it's represent (they're two different
things)? Note, the represent attribute is a function/callable (usually a
lambda) that takes a value (and optionally a record), so if you want to use
it directly, you have to call it and pass a value to it.
{{=A.B.represent(
7 matches
Mail list logo