Can you show your code? It is not clear why you can't use the "keepvalues" 
argument. Please explain the workflow in more detail.

On Tuesday, November 1, 2016 at 10:45:45 AM UTC-4, Richard wrote:
>
> Hello,
>
> I have an high customized SQLFORM.factory() form... I set default value 
> for the update form for which I have no problem with values types as they 
> get out of the database... But in case I want to emulate keepvalue feature 
> with this form I need to pass value to request.vars which I need to set as 
> default... The problem is that all value are string when I get them and I 
> need to populate many fields and would greatly prefer not have to handle 
> each fields manually one by one but instead do it dynamically so if I had 
> field to the table I don't have to add it... So I am searching a way to 
> convert appropriately value for each field type... I could use the approach 
> proposed in the answer accepted hear : 
> http://stackoverflow.com/questions/7402573/use-type-information-to-cast-values-stored-as-strings
>
> I there surely such a thing in the web2py internal... I thought 
> _filter_fields() would do it, but it only filter field that are member of a 
> table, it doesn't act over the value of the field... I thought of using 
> requires/validator, but I am not sure how to use them.
>
> Thanks
>
> Richard
>
>
>
>

-- 
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