[web2py] Re: list:string and Update form

2011-06-13 Thread Oscar
I used the following: record = db(db[main_data.settings.table_name_products].id == product_id).select() form.element(_id = "op_products_type")[0] = record[0].type Regards, Oscar. On 12 jun, 01:33, Oscar wrote: > Hi, > > I have a model using a list:string field called type. > > Validation for

[web2py] Re: list:string and Update form

2011-06-13 Thread Oscar
No problem I already solved the issue. Regards, Oscar. On 12 jun, 01:33, Oscar wrote: > Hi, > > I have a model using a list:string field called type. > > Validation for type field: > IS_IN_SET({'finished':T('Finished'),'service':T('Service')}, > zero=T("-- Choose Type Of The Product --"))), >