1
我用jQuery克隆表单中的一个字段。Web2py jQuery克隆
$('#table_catalogues')
.clone()
.attr('id','table_catalogues_'+i2l)
.appendTo('#table_invoices_catalogues__row')
但web2py中不会产生这些领域,你不能看到他们在源 和发送数据时,我觉得比如:
form.vars.catalogues = [1,2,3]
其实我觉得这很好,但有这
Field(
'catalogues',
db.catalogues,
requires=IS_IN_DB(db(db.catalogues.user_id==auth.user_id)(db.catalogues.useable==True),
'catalogues.id',
'%(catalogue_name)s'
),
给我麻烦。当发送的形式,我总是得到这个错误:
Value is not in Database
我试图用IS_IN_SET()
并写到导出列表行的功能,但我得到这个错误:
Value is not allowed