Oooooh! So when I use exposes on say 10 out of 20 fields then
{{=form}} will only show those 10 fields and leave the other 10 alone
- that would be good with the checkbox issue. How do I format my
output then so =form does do its own table format? Is this what
sqlform() does?
On Fri, Nov 21, 2008 at 2:00 PM, mdipierro <[EMAIL PROTECTED]> wrote:
>
> yes.
>
> rationale:
>
> T2 does a lot of stuff for you. db.table.exposes tells T2 which fields
> you want in forms. If you don't it assumes all fields. Yet you are
> manually extracting one field from the form object and placing only
> that one into the HTML form. web2py has no way of knowing that you are
> displaying only {{=form[0][0][1]}} instead of {{=form}}. You have to
> tell it that.
>
> Massimo
>
> On Nov 21, 2:55 pm, "Wes James" <[EMAIL PROTECTED]> wrote:
>> I'm don't know why that is evil (would you explain?). Anyway, I'm
>> using that to iterate through all the check boxes (and also place
>> other components) on the page manually - so I can format their
>> placement how I want.
>>
>> So the exposes will fix the checkbox issue?
>>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---