On Sep 17, 2010, at 6:25 AM, mdipierro wrote:
>
> ERRATA:
>
> I like to define
>
> def HiddenField(*a,**b):
> a['writable']=b['readable']=False
> return Field(*a,**b)
I *think* you mean:
b['writable']=b['readable']=False
>
> and use
>
> db.defiend_table('mytable',Field('name'),HiddenField('manager'))
and db.define_table(...
>
> On Sep 17, 8:22 am, mdipierro <[email protected]> wrote:
>> I like to define
>>
>> def HiddenField(*a,**b):
>> a['writable']=b['readable']=False
>>
>> and use
>>
>> db.defiend_table('mytable',Field('name'),HiddenField('manager'))
>>
>> On Sep 17, 6:07 am, "Martin.Mulone" <[email protected]> wrote:
>>
>>> To hide a field:
>>> Field('out','boolean',writable=False,readable=False)
>>
>>> And computed fields in
>>> book:http://web2py.com/book/default/chapter/06#Computed-Fields
>>
>>> On 17 sep, 05:58, Fabio Alessandro Locati <[email protected]> wrote:
>>
>>>> Hi,
>>>> I'm trying to make a form with a hidden field, but I haven't found the way
>>>> to do it :(.
>>
>>>> I have a table:
>>>> db.define_table('partners',
>>>> Field('name','string'),
>>>> Field('out','boolean'))
>>
>>>> I want to ask to the user the name of the partner and, based on the name of
>>>> the page, the value of 'out'. I was thinking into making two different
>>>> pages
>>>> one that has - at code level - out=1 and the other one that had out=0. How
>>>> can I do this, without showing to the user the existence of the 'out'
>>>> field?
>>
>>>> Thanks :)
>>
>>