Re: [web2py] Re: Looking for a way to combine auto-complete with adding a non-existing item.

2012-11-06 Thread Bill Thayer
Gave it a try...no luck. --

Re: [web2py] Re: Looking for a way to combine auto-complete with adding a non-existing item.

2012-11-06 Thread Richard Vézina
I just try with SQLFORM and it works form = SQLFORM(db[request.args(0)], request.args(1)) Richard On Tue, Nov 6, 2012 at 11:27 AM, Bill Thayer bill.tha...@live.com wrote: Gave it a try...no luck. -- --

Re: [web2py] Re: Looking for a way to combine auto-complete with adding a non-existing item.

2012-11-05 Thread Richard Vézina
Hello Bill, SELECT OR ADD OPTION is begining to be old, I have been look at this last week and there is conflict between Bootstrap style and jQueyr UI style so the add botton beside the field is not working if boostrap is used in your form. I the coming weeks I will try to create a new

Re: [web2py] Re: Looking for a way to combine auto-complete with adding a non-existing item.

2012-11-05 Thread Bill Thayer
Thank youRichard. I've have exhausted everything I could think of to get it to work. --

Re: [web2py] Re: Looking for a way to combine auto-complete with adding a non-existing item.

2012-11-05 Thread Richard Vézina
I never try with SQLFORM.grid, maybe the form is a bit different than CRUD or SQLFORM one... Did you try the dummy app that I attach? Richard On Mon, Nov 5, 2012 at 11:44 AM, Bill Thayer bill.tha...@live.com wrote: Thank youRichard. I've have exhausted everything I could think of to get it

Re: [web2py] Re: Looking for a way to combine auto-complete with adding a non-existing item.

2012-11-05 Thread Richard Vézina
sorry, I thought I had attach a example app, but I didn't... Richard On Mon, Nov 5, 2012 at 12:15 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: I never try with SQLFORM.grid, maybe the form is a bit different than CRUD or SQLFORM one... Did you try the dummy app that I attach?

Re: [web2py] Re: Looking for a way to combine auto-complete with adding a non-existing item.

2012-11-05 Thread Bill Thayer
Now that is impressive. I did get it to work but not with SQLFORM or SQLFORM.smartgrid so that was a large part of my problem. When renderred in the view created by SQLGRID (clicking the ADD+ button) I would get the SQLFORM and the person fields were displayed with it's own submit button.

Re: [web2py] Re: Looking for a way to combine auto-complete with adding a non-existing item.

2012-11-05 Thread Bill Thayer
This widget wouldn't break appadmin? would it? These are the many unknown things that really frustrate me about web2py. I edited the models file to test my current troubles adding columns to tables that are already created. With your sample app, I was able to add the new table and then add

Re: [web2py] Re: Looking for a way to combine auto-complete with adding a non-existing item.

2012-11-05 Thread Richard Vézina
I don't think appadmin is taking care of widget... I don't follow you, are you talking that you add a column and the old entry are NULL? On Mon, Nov 5, 2012 at 2:48 PM, Bill Thayer bill.tha...@live.com wrote: This widget wouldn't break appadmin? would it? These are the many unknown things

Re: [web2py] Re: Looking for a way to combine auto-complete with adding a non-existing item.

2012-11-05 Thread Bill Thayer
Hi Richard, In short...for myself and future searches...This widget works in a straight up crud form but with SQLFORM it has different behavior. Whether or not it is the source of appadmin not storing values is yet to be determined. After my columns were successfully added, values were set to

Re: [web2py] Re: Looking for a way to combine auto-complete with adding a non-existing item.

2012-11-05 Thread Richard Vézina
ok, yes I think there is a issue... In my app it working, but in the dummy app it's not don't know why... Maybe with SQLFORM you need to set the formstyle to divs. Richard On Mon, Nov 5, 2012 at 3:42 PM, Bill Thayer bill.tha...@live.com wrote: Hi Richard, In short...for myself and future

Re: [web2py] Re: Looking for a way to combine auto-complete with adding a non-existing item.

2012-11-04 Thread Bill Thayer
I still haven't gotten this to work but do need this functionality desperatley. Anyone else have any luck? --

[web2py] Re: Looking for a way to combine auto-complete with adding a non-existing item.

2012-10-27 Thread Bill Thayer
If this works it will be very usefull Is there a way to modify myfunction so that it can be passed to onvalidate or oncreate fields of SQLFORM.grid? This is as close as I got but stiil get form validation error (value not in database) on the referenced field: add_wiki() is my myfunction()

[web2py] Re: Looking for a way to combine auto-complete with adding a non-existing item.

2012-05-14 Thread Remco K
Thank you very much, Anthony! This was exactly what i was looking for. Problem solved. Op vrijdag 11 mei 2012 19:07:32 UTC+2 schreef Anthony het volgende: Are you trying to auto-complete a reference field, and you want to be able to add new records to the referenced table? The built-in

Re: [web2py] Re: Looking for a way to combine auto-complete with adding a non-existing item.

2012-05-14 Thread Richard Vézina
I merge autocomplete with SELECT_OR_ADD_OPTION and name it : AutocompleteWidgetSelectOrAddOption It available here at the bottom of the thread : https://groups.google.com/forum/?fromgroups#!topic/web2py/9KamKgHKUwU Or I will create a web2py slice soon, I hope... Richard On Mon, May 14, 2012

Re: [web2py] Re: Looking for a way to combine auto-complete with adding a non-existing item.

2012-05-14 Thread Remco K
That would be nice. I think there are more people who can use this. 2012/5/14 Richard Vézina ml.richard.vez...@gmail.com I merge autocomplete with SELECT_OR_ADD_OPTION and name it : AutocompleteWidgetSelectOrAddOption It available here at the bottom of the thread :

Re: [web2py] Re: Looking for a way to combine auto-complete with adding a non-existing item.

2012-05-14 Thread Richard Vézina
I want to improve it before because I don't like the way the Select _OR_ADD_Otion works... It changes the select and options class name and it prevent the use of other jQuery plugin with the autocomplete widget... For example, I want to use my AutocompleteWidgetSelectOrAddOption and asmSelect or

[web2py] Re: Looking for a way to combine auto-complete with adding a non-existing item.

2012-05-11 Thread Anthony
Are you trying to auto-complete a reference field, and you want to be able to add new records to the referenced table? The built-in autocomplete widget doesn't handle that out of the box, but upon submission, you could check the request variables, and if the submitted value doesn't belong to