[web2py] Re: SQLFORM factory field width is less than the text on IE8, works fine on FF

2013-10-31 Thread Paolo Caruccio
By applying Server-side DOM and parsing ( http://web2py.com/books/default/chapter/29/05/the-views?search=DOM#parent-and-siblings) you could use: my_select = form.element('select[name=TestField]') my_select_parent = my_select.parent my_select_parent['_style'] ='width:400px;' Il giorno giove

[web2py] Re: SQLFORM factory field width is less than the text on IE8, works fine on FF

2013-10-30 Thread Sarbjit
Thanks for reply. Well, this issue that I am observing is not specific to my system only, I tried it on two other systems in IE8 and all of them were having the same issue. Anyways, I was able to get the exact width in IE, if I added a width of 400px to TD element containing the SELECT. So,

[web2py] Re: SQLFORM factory field width is less than the text on IE8, works fine on FF

2013-10-30 Thread Paolo Caruccio
Unfortunately I can't repeat your issue. In my enviroment all works fine (see attached images).

[web2py] Re: SQLFORM factory field width is less than the text on IE8, works fine on FF

2013-10-30 Thread Sarbjit
Sorry, I didn;t noticed that the pictures were not visible, I have uploaded them again. I have tried cleaning the cache of IE and reloaded the page, but I am getting the same results. Do I need to try something else? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - h

[web2py] Re: SQLFORM factory field width is less than the text on IE8, works fine on FF

2013-10-30 Thread Sarbjit
Internet Explorer (8.0) Firefox -- Resources: - http://web2py.com - http://web2py.com/book (

[web2py] Re: SQLFORM factory field width is less than the text on IE8, works fine on FF

2013-10-30 Thread Paolo Caruccio
I followed your istructions but the width of the select control is the same in both the browsers IE8 and FF (300px according to line 32 of web2py.css in car_sales/static/css folder) Please try to change the value in the above mentioned css rule, clean the browsers cache, reload the page and see

Re: [web2py] Re: SQLForm Factory

2013-06-24 Thread Tom Russell
Ah yes both readable and writable have to be defined. Thanks again On Mon, Jun 24, 2013 at 6:12 PM, Anthony wrote: > Try writable=False. > > > On Monday, June 24, 2013 6:04:43 PM UTC-4, Tom Russell wrote: > >> Thanks for the tip. >> >> I did set one field to not be readable like this: >> >> Fie

Re: [web2py] Re: SQLForm Factory

2013-06-24 Thread Anthony
Try writable=False. On Monday, June 24, 2013 6:04:43 PM UTC-4, Tom Russell wrote: > > Thanks for the tip. > > I did set one field to not be readable like this: > > Field('alternatepid', label='Alternate PID', readable=False), > > but it still shows on my form. > > Should'nt be there should it? >

Re: [web2py] Re: SQLForm Factory

2013-06-24 Thread Tom Russell
Thanks for the tip. I did set one field to not be readable like this: Field('alternatepid', label='Alternate PID', readable=False), but it still shows on my form. Should'nt be there should it? Thanks. On Mon, Jun 24, 2013 at 1:57 PM, Anthony wrote: > db.patient(fields=['first_name']) > > N

Re: [web2py] Re: SQLForm Factory

2013-06-24 Thread Anthony
db.patient(fields=['first_name']) No, the above isn't web2py syntax -- don't know where you saw that. As I mentioned, to control which fields are shown, you can set the readable and writable attributes of the fields (check the book), or you can list individual fields instead of entire tables:

Re: [web2py] Re: SQLForm Factory

2013-06-24 Thread Tom Russell
I tried doing the specific fields like: form=SQLFORM.factory(db.patient(fields=['first_name']), db.emergencycontacts, db.dependents, formstyle = 'table3cols') but that just throws an error saying no tables selected. I guess what I am trying to do is set certain fields to be show for each table an

[web2py] Re: SQLForm Factory

2013-06-24 Thread Anthony
You can set the readable and writable attributes of the fields, or .factory() can take a list of specific fields rather than entire tables. Anthony On Monday, June 24, 2013 11:15:28 AM UTC-4, Tom Russell wrote: > > If I have a form factory with 3 tables, how would I define the fields I > wanted

[web2py] Re: SQLFORM factory with multiple correlated tables

2012-05-15 Thread csantos
Update: This feature is actually documented in http://web2py.com/book/default/chapter/07#One-form-for-multiple-tables, what a shame I didn't see it earlier... Regards On Sunday, May 13, 2012 9:30:41 PM UTC-3, csantos wrote: > > Hi, > Suppose I have two tables, with a one-to-one relationship: >

[web2py] Re: SQLFORM factory field name problem

2011-03-01 Thread JmiXIII
Does not work on 1.92.1 but works with trunk. Thanks On 1 mar, 15:56, Massimo Di Pierro wrote: > I am using trunk and I cannot reproduce this problem. > > On Feb 28, 4:11 pm, rāma wrote: > > > SQLFORM factory field name with underscore doesn't submit properly in > > the below case: > > > SQLFORM

[web2py] Re: SQLFORM factory field name problem

2011-03-01 Thread Massimo Di Pierro
I am using trunk and I cannot reproduce this problem. On Feb 28, 4:11 pm, rāma wrote: > SQLFORM factory field name with underscore doesn't submit properly in > the below case: > > SQLFORM.factory(Field('fieldname', - Submit OK > > SQLFORM.factory(Field('select_fieldname', - Submit failed

[web2py] Re: SQLFORM factory field name problem

2011-03-01 Thread JmiXIII
I'm facing the pb I suppose : Here is my models : db.define_table("Poste", Field("Poste", "string", notnull=False, default=None)) db.define_table("Article", Field("CodeArticle","string", notnull=True, default=None), Field("Designation","string", notnull=True, default=None)) db.def