Mind I think it should be possible to do:
auto =
SQLFORM.widgets.autocomplete(request,db.Person,id_field=db.Person.id<http://db.person.id/>
)
db.define_table('Person', Field('name'), format='%(name)s')
db.define_table('Relation', Field('name',db.Person), ('contact',db.Person))
db.Relation.name.widget=auto
db.Relation.contact.widget=auto
On Tuesday, 29 January 2013 05:36:53 UTC-6, DenesL wrote:
>
>
> You have found a bug.
>
> The problem is that identical field names are being generated in the form
> for both Relation fields:
> <input autocomplete="off" class="string" id="Relation_contact"
> name="_autocomplete_Person_name_aux" ...
> <input autocomplete="off" class="string" id="Relation_name"
> name="_autocomplete_Person_name_aux" ...
> <input id="_autocomplete_Person_name_auto" name="name" type="hidden"
> value="" />
> <input id="_autocomplete_Person_name_auto" name="contact" type="hidden"
> value="" />
>
>
>
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.