rom:* web...@googlegroups.com [mailto:
> web...@googlegroups.com ] *On Behalf Of *António Ramos
> *Sent:* 28 January 2020 14:49
> *To:* web...@googlegroups.com
> *Subject:* Re: [web2py] Displaying only certain fields of choice with
> SQLFORM(...) update
>
>
>
> did you also
Thank you, I overlooked that.
On Tuesday, January 28, 2020 at 3:49:02 PM UTC+2, Ramos wrote:
>
> did you also tried writable=False
> When a field is marked with writable=False, the field is not shown in
> create forms, and it is shown readonly in update forms. If a field is
> marked as
)
if form.process().accepted:
…..
….
return dict(form=form)
From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of
António Ramos
Sent: 28 January 2020 14:49
To: web2py@googlegroups.com
Subject: Re: [web2py] Displaying only certain fields of choice
did you also tried writable=False
When a field is marked with writable=False, the field is not shown in
create forms, and it is shown readonly in update forms. If a field is
marked as writable=False and readable=False, then the field is not shown at
all, not even in update forms.
I did employ this method (db.quotation.beforeVat.readable=False!!! ) in my
controller but it didnt respond, its actually the first thing i tried! Its
just that i was hoping SQLFORM() may have some helpers as part of its
signature that i dont know about that I could use.
On Tuesday, January 28,
Look in the docs
http://web2py.com/books/default/chapter/29/07/forms-and-validators
in your controller before showing your form,
db.yourtable.yourfield.readable=False!!!
Em ter., 28 de jan. de 2020 às 10:29, mostwanted
escreveu:
> I was wondering if there is a way to show the SQLFORM()
6 matches
Mail list logo