Thanks Leonel.

That's is working well.

Regards


El martes, 7 de octubre de 2014 16:50:27 UTC-5, José Eloy escribió:
>
> Hello!
>
> Is it possible to implement a SQLFORM.factory deletable field? I can't to 
> use the normal SQLFORM because I'm using keyed tables.
>
> The SQLFORM.factory I'm using is:
>
>    form= SQLFORM.factory(
>         Field('nombre', requires=[IS_NOT_EMPTY(), IS_UPPER(), 
> IS_NOT_IN_DB(db2, 'unidades.nombre')]),
>         Field('descripcion', label="Descripción", requires=IS_UPPER()),
>         Field('tipo_unidad', requires=IS_IN_SET(unidades_list), default= 
> tipo_unidad, unique=True),
>         Field('operador', requires=IS_IN_SET(operarios_list), 
> default=operador_unidad, unique=True),
>         submit_button = 'Aceptar')
>
> I'd like to implement the deletable=true functionality, it means, that 
> appears the deletable checkbox and if it is marked to delete the record.
>
> Is this possible? How can I do this?
>
> Regards.
>
> P. D. Sorry for my english, is not very well.
>
>

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