Yes, the easiest way is generally to set the default value of the field 
prior to creating the form.

On Tuesday, April 22, 2014 7:26:19 PM UTC-4, [email protected] wrote:
>
> Hi everyone,
>
> I am trying to make a form that mainly gets its data from a single table, 
> there are however 
>
> some fields that cannot be handled by SQLFORM. For instance I have in my 
> table a PostGIS
>
> geography field holding the position of a point that I would like to 
> update  using text fields for latitude 
>
> and longitude. After some reading and googling I figured a possible 
> solution would be to use the 
>
> SQLFORM.factory with a mix of fields coming from the model defined 
> database table and 'dummy' fields to
>
> be handled directly by the controller during the updates. I was wondering 
> if there is a way to populate the fields
>
> coming directly from the table in an automated way such as the one SQLFORM 
> would provide, and also how to 
>
> preload the remaining fields according to my logic (should I use the 
> dafault value property dinamically assigning the 
>
> required value?). Any suggestion is much appreciated. 
>
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to