[web2py] Re: Dropdown not created using SQLFORM inspite of using references

2017-07-06 Thread Anthony
To get the default dropdown, you must specify the "format" argument when defining the db.room table. Anthony On Thursday, July 6, 2017 at 3:14:12 PM UTC-4, Prashant Tanksali wrote: > > Hi, > > This is my database definition: > > db.define_table('room',Field('room_size','integer',requires=IS_NOT_

[web2py] Re: Dropdown lists cascade in Crud form

2017-04-12 Thread Massimo Di Pierro
Please do not use crud nobody has supported them in ages. replace return dict(form=crud.create(db.Person, message=T("The person was created!" ))) with return dict(form=SQLFORM(db.Person).process(message_onsuccess=T("The person was created!"))) On Sunday, 9 April 2017 14:52:46 UTC-5, Winter Kry

[web2py] Re: Dropdown doesn't show on response.menu

2016-05-17 Thread anamarie06431
Thank you. And such a helpful group. Is it a good idea to mix stupid css with bootstrap or other way around or always have to maintain one standard? On Tuesday, May 17, 2016 at 1:33:53 AM UTC-4, Dave S wrote: > > > > On Monday, May 16, 2016 at 8:49:35 PM UTC-7, anamar...@gmail.com wrote: >> >> T

[web2py] Re: Dropdown doesn't show on response.menu

2016-05-17 Thread Niphlod
it isn't showing submenus beyond the 2nd level. And face it, mobiles suck at nested menus. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received t

[web2py] Re: Dropdown doesn't show on response.menu

2016-05-16 Thread Dave S
On Monday, May 16, 2016 at 8:49:35 PM UTC-7, anamar...@gmail.com wrote: > > Thank you sir, I started to get familiar with layout.html. Are you saying > we create a layout using random.html instead? But isn't that all the jqury > and link menu will need to be included? Is there a layout availabl

[web2py] Re: Dropdown doesn't show on response.menu

2016-05-16 Thread anamarie06431
Thank you sir, I started to get familiar with layout.html. Are you saying we create a layout using random.html instead? But isn't that all the jqury and link menu will need to be included? Is there a layout available using stupid css? On Monday, May 16, 2016 at 7:32:26 PM UTC-4, Massimo Di Pie

[web2py] Re: Dropdown doesn't show on response.menu

2016-05-16 Thread Massimo Di Pierro
I cannot stop recommending this instead: http://mdipierro.github.io/stupid.css/themes/random.html On Saturday, 14 May 2016 17:04:26 UTC-5, DenesL wrote: > > Bootstrap 3 does not support menu depths beyond level 2. > See > https://groups.google.com/forum/#!searchin/web2py/menu|sort:relevance/web2

[web2py] Re: Dropdown doesn't show on response.menu

2016-05-14 Thread 'DenesL' via web2py-users
Bootstrap 3 does not support menu depths beyond level 2. See https://groups.google.com/forum/#!searchin/web2py/menu|sort:relevance/web2py/UkIV84MuE6w/QtJtfQkyAwAJ On Saturday, May 14, 2016 at 4:45:34 PM UTC-4, anamarie06...@gmail.com wrote: > > Question from a new user. I defined the response.me

Re: [web2py] Re: Dropdown

2015-08-04 Thread Dave S
On Monday, August 3, 2015 at 9:00:45 PM UTC-7, reddyreddy wrote: > > But, how can I access it. > > Tablename.myfield is giving None. > > > How are you populating your table? Appadmin, importing a csv, importing into the database using it's import tools, or just filling out a (web2py) form for

Re: [web2py] Re: Dropdown

2015-08-03 Thread Chaitu P
But, how can I access it. Tablename.myfield is giving None. On Aug 3, 2015 10:32 PM, "Anthony" wrote: > Field('myfield', requires=IS_IN_SET(['Yes', 'No'])) > > > On Monday, August 3, 2015 at 9:52:32 PM UTC-4, reddyreddy wrote: >> >> Hello all, >> >> I want to create a dropdown field in databas

[web2py] Re: Dropdown

2015-08-03 Thread Anthony
Field('myfield', requires=IS_IN_SET(['Yes', 'No'])) On Monday, August 3, 2015 at 9:52:32 PM UTC-4, reddyreddy wrote: > > Hello all, > > I want to create a dropdown field in database with 'yes' and 'no' options. > Can any one pleaseee let me know how can I do this. > > > Chaitanya > > -- Resourc

[web2py] Re: Dropdown

2015-05-26 Thread 黄祥
not sure, i get it what you want, perhaps you can use jquery or show_if. ref: http://web2py.com/books/default/chapter/29/07/forms-and-validators#Conditional-fields http://web2py.com/books/default/chapter/29/11/jquery-and-ajax#Conditional-fields-in-forms best regards, stifan -- Resources: - http:

Re: [web2py] Re: Dropdown lists

2015-01-28 Thread Richard Vézina
Forget the most important, I got my second one in june... :) On Wed, Jan 28, 2015 at 9:39 AM, Richard Vézina wrote: > no times... I am alone supporting lab data management for 200+ employees > startup... And in my personel life, I buy a new house this year and > renovate it from basement to sec

Re: [web2py] Re: Dropdown lists

2015-01-28 Thread Richard Vézina
no times... I am alone supporting lab data management for 200+ employees startup... And in my personel life, I buy a new house this year and renovate it from basement to second floors, starting with a new drain around the basement earlier last summer (of course, this is done now)... :-P On Tue, J

Re: [web2py] Re: Dropdown lists

2015-01-27 Thread Niphlod
it seems that you're rather "full" of issues and ideas but "empty" on the attempts side. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received thi

Re: [web2py] Re: Dropdown lists

2015-01-27 Thread Richard Vézina
TDD may be easier with angularjs... I would say... Richard On Tue, Jan 27, 2015 at 5:05 PM, Richard Vézina wrote: > Yes, that is another issue... > > I am thinking more and more to learn Angularjs more then what I really > know or start using Ractive.js that seems have easier learning curve...

Re: [web2py] Re: Dropdown lists

2015-01-27 Thread Richard Vézina
Yes, that is another issue... I am thinking more and more to learn Angularjs more then what I really know or start using Ractive.js that seems have easier learning curve... web2py component is great, but I feel really limited in developping complex "form" like user interraction for complex data m

Re: [web2py] Re: Dropdown lists

2015-01-27 Thread Niphlod
testing html generation is one-now-more-than-ever-shrinking-part of testing an app. In this particular case, you won't have noticed a thing: the important bits were/are played by javascript interaction. On Tuesday, January 27, 2015 at 10:38:49 PM UTC+1, Richard wrote: > > I would test the fact

Re: [web2py] Re: Dropdown lists

2015-01-27 Thread Richard Vézina
I would test the fact that html generated work properly, I guess Selenium is the only way, but if I can interact with html object from python with someting like HTMLTestRunner ( http://tungwaiyip.info/software/HTMLTestRunner.html)... I never had time to think about test cases worth doing over gener

Re: [web2py] Re: Dropdown lists

2015-01-27 Thread Derek
You are wrong. If you need to test your views, you would have to use some kind of testing tool like Selenium, of course. However, you should not be generating views within the controllers, they have separate functions. It makes no sense. Besides, what are you going to test, the generation of the

Re: [web2py] Re: Dropdown lists

2015-01-27 Thread Richard Vézina
Also, consider tools like SQLFORM.grid(), it's generate everything... Richard On Tue, Jan 27, 2015 at 2:13 PM, Richard Vézina wrote: > Derek, > > I understand your point, but from the testing point of view, the only > option remaining for testing view is Selenium HQ which is slow, so if you > w

Re: [web2py] Re: Dropdown lists

2015-01-27 Thread Richard Vézina
Derek, I understand your point, but from the testing point of view, the only option remaining for testing view is Selenium HQ which is slow, so if you want to be able to test your controller that depend a lot of the view, what I can only see is to limit as much as possible the view to unpack web2p

Re: [web2py] Re: Dropdown lists

2015-01-27 Thread Omi Chiba
Thank you for your feedback! I found " onchange="jQuery('#model_name').empty();" this is unnecessary operation for my purpose so it's removed! On Tue, Jan 27, 2015 at 11:19 AM, Derek wrote: > What I mean by 'you are mixing your view with your controller' is that you > are using your controller

[web2py] Re: Dropdown lists

2015-01-27 Thread Derek
What I mean by 'you are mixing your view with your controller' is that you are using your controller to build HTML that will be used as-is. You should never create HTML in your controllers, leave that to the views. The whole point of MVC is that each part has a very specific purpose. Don't creat

[web2py] Re: Dropdown lists

2015-01-27 Thread Derek
Well, where do I start? It looks like you are a victim of copy and paste coding. Delete your two functions and start over again. That said, you are mixing your view with your controller, please don't do that. I would suggest you use this web2pyslice as a starting point. (yes, I wrote it) http:

[web2py] Re: dropdown text too long

2015-01-13 Thread Omi Chiba
Maybe this link help? http://eedle.com/2013/12/21/word-wrap-break-word-css-for-long-text-options-in-drop-down-select-lists/ -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Re

[web2py] Re: dropdown text too long

2015-01-13 Thread Alex Glaros
problem is the item row of text is wider than the whole page, so would like data row to wrap. So making combo box wider doesn't help. there's no way to apply CSS to the actual data values is there? I suppose an alternative is to make the dropdown in html view and have controller transmit and w

[web2py] Re: dropdown text too long

2015-01-13 Thread Leonel Câmara
You can use CSS to make the select combo box wider. Another alternative is to use radio buttons instead. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) ---

[web2py] Re: dropdown text too long

2015-01-13 Thread Alex Glaros
There's only about 10 items in the dropdown list should I just copy and paste the items in html in the view so users can see what the full text looks like? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code

[web2py] Re: dropdown menu repopulate from database

2013-12-23 Thread Anthony
If you want the dropdown list to be updated without a page refresh, you'll have to make an Ajax call to retrieve the updated list and replace the HTML inside the UL with the new list. Anthony On Thursday, December 19, 2013 7:16:08 AM UTC-5, Yebach wrote: > > Hello > > I have the following quest

[web2py] Re: Dropdown list in form

2013-12-13 Thread Warrick
Thanks guys, Both worked! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web

[web2py] Re: Dropdown list in form

2013-12-12 Thread Massimo Di Pierro
I am not sure I fully understand but the problem is that Field('training_id', label=T('Training Status'), requires=IS_IN_DB(db,db.training.id,'%(type)s')), is meant to be a reference but it is not defined as such, replace it with Field('training_id','reference trainin

[web2py] Re: Dropdown list in form

2013-12-12 Thread Jim S
I'd try changing your battle_log def to: db.define_table('battle_log', Field('battle_date', type='date', label=T('Battles Date')), Field('battles', type='integer', label=T('Battles'), requires=IS_IN_SET(['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10']

[web2py] Re: Dropdown field not being accepted

2011-07-02 Thread Happy Rob
Thanks for the ideas, I'm looking at the source code now. On Jul 1, 6:15 pm, Bruno Rocha wrote: > Here is a modified versionhttps://bitbucket.org/rochacbruno/surveycloud > > Bug fixes > Auth included > No more cpuckle > Powertables > Smart reports > > http://zerp.ly/rochacbruno > Em 30/06/2011 23

Re: [web2py] Re: Dropdown field not being accepted

2011-07-01 Thread Bruno Rocha
Here is a modified version https://bitbucket.org/rochacbruno/surveycloud Bug fixes Auth included No more cpuckle Powertables Smart reports http://zerp.ly/rochacbruno Em 30/06/2011 23:59, "pbreit" escreveu: > Everything above the "if form.accepts()" is run each time the submit button > is pressed

[web2py] Re: Dropdown field not being accepted

2011-06-30 Thread pbreit
Everything above the "if form.accepts()" is run each time the submit button is pressed. I can't think of the best way to implement this off-hand. It does seem like you could do it all in one controller. There's a pretty old survey app which might give you some ideas: http://www.web2py.com/appli