Works fine thank you
Congratulation for your framework and the service provided via the
google-group

On 15 mar, 16:21, mdipierro <mdipie...@cs.depaul.edu> wrote:
> There is this in base.css
>
> input.string {
>     width: 420px;
>
> }
>
> textarea.text {
>     width: 420px;
>     height: 200px;
>
> }
>
> That is why the _size is ignored. You can remove the code in base.css
> or use css, instead of _size.
>
> On Mar 15, 10:18 am, JmiXIII <sylvn.p...@gmail.com> wrote:
>
> > You're right this a string field , but when I tried to use first
> > [_size] to format it like the other fields... but it does not work,
> > the field is always the same length. I have the same pb with another
> > string field. I am rendering them in a table with no attrivutes, so I
> > do not think that matter. I'm using SQLite.
>
> > Here is my model
>
> > db.define_table("LigneOF",
> >     SQLField("OF", "integer"),
> >     SQLField("Date","date", default=None),
> >     SQLField("Equipe","integer", requires=IS_IN_SET(['1','2','3'])),
> >     SQLField("Cdebut","integer", requires=IS_LENGTH(6)),
> >     SQLField("Cfin","integer", requires=IS_LENGTH(6)),
> >     SQLField("Qrebuts","integer", requires=IS_LENGTH(6)),
> >     SQLField("Rques","string"))
>
> > and the controller :
>
> >     Form2=SQLFORM(db.LigneOF,fields=['Date' ,'Equipe', 'Cdebut',
> > 'Cfin','Qrebuts','Rques'],hidden=dict(OF=CodeOF),submit_button='Sauver')
> >     Form2.vars.OF=CodeOF
> >     for champs in ['Date' ,'Cdebut', 'Cfin','Qrebuts','Rques']:
> >         Form2.element(_name=champs)['_size']=9
> >     if Form2.accepts(request.vars):
> >         response.flash = 'Données saisies'

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to