Common problem:  I want to select a foreign key from a large dataset
(ten thousand contact names and addresses).

The functionality required is:

1. If foreign key is empty or null,  show an input box (ideally with
ajax auto-complete) which allows the related contact to be selected.
Once selected,  the foreign key is saved (and point 2 applies).

2. If the foreign key is not null,  look-up a contact id and show some
of the contact's fields. Display a button to clear the contact id (so
that point 1 applies).

I have already made a start using the Wiki example given in the book
(pgs 74-75).  However,  I am hoping there is another example somewhere
from which I might learn more.

Thanks in advance for any pointers.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@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