[web2py] How can I add a scrollbar to a web2py dropdown menu

2017-10-05 Thread Michael Dunga
In my application I have a drop-down menu consisting of the names of all countries and I have realized that menu items that fall outside of the width of the screen are not viewable -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Sour

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

2017-07-06 Thread Prashant Tanksali
Hi, This is my database definition: db.define_table('room',Field('room_size','integer',requires=IS_NOT_EMPTY()), Field('room_nos','integer',requires=IS_NOT_EMPTY()), Field('building',requires=IS_IN_SET(['DH Hill','James B Hunt'])), Field('status',r

[web2py] Dropdown lists cascade in Crud form

2017-04-09 Thread Winter Kryz
Hello everybody, I have a table called Person Db.py db.define_table('Person', Field('last name', 'string',label='Last Name'), Field('First name', 'string',label='First Name'), Field('City','reference City',label='City', requires = IS_IN_DB(db,db.C

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

2016-05-14 Thread anamarie06431
Question from a new user. I defined the response.menu as following and the dropdown doesn't show in inventory response.menu = [ (T('Home'), False, URL('default', 'index'), [ (T('shopping'),False,URL('default','make_list')), (T('List'),False,URL('default','store_item')), (T(

[web2py] Dropdown

2015-08-03 Thread reddyreddy
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 -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.c

[web2py] Dropdown

2015-05-26 Thread KevC
I have a problem. I´m working with a dropdown, when I choose a option it get a FORM, and I have a field for all forms. If I choose a option my fields erase. I wanna get that variable. What can I do? For example, this is a form: Title: Data warehouse Type: | Article |

[web2py] Dropdown lists

2015-01-26 Thread Omi Chiba
I have a three dropdown and the value will be dynamically changed using ajax. It's working fine but something is wrong. In second dropdown (id="lead_name"), I specify jQuery('#model_name') but it's actually jQuery('#leadl_name') but then when the value for the second drop changed, the value dis

[web2py] dropdown text too long

2015-01-12 Thread Alex Glaros
drop down text is so long, it is cut off on right side. Text comes from "requires = IS_IN_DB" how to let user see all of the text? thanks, Alex Glaros -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.goog

[web2py] Dropdown based on multiple parents?

2015-01-01 Thread Gary Cowell
Hi, this is probably simple but searching as come up a blank and I'm still very new to web2py I have three tables, 'manufacturer' , 'model', and 'shoe' Manufacturer contains 'Asics','Nike' Then 'model' has parent of 'manufacturer', and will have 'Asics', 'Gel Nimbus' and 'Nike','Vomero' 'sho

[web2py] dropdown menu repopulate from database

2013-12-19 Thread Yebach
Hello I have the following question On my page I have a drop down menu where user selects some texts from db and it is then inserted into into ace editor. the user then saves the script using bootstrap modal with a new name. After he enters the new name of the text it is saved, but the drop do

[web2py] Dropdown list in form

2013-12-12 Thread Warrick
Hi Guys, I am trying to build a form. I have the drop down list working in the form, but when I display the record, it displays the id instead of the selected field. db.define_table('training', Field('type', type='string', label=T('Training Held')), auth.signature, format=

[web2py] Dropdown field not being accepted

2011-06-30 Thread Happy Rob
Hi I'm looking at doing a neural net 20 questions type program at some stage, but still having difficulty with the basics. Currently if I do a dropdown field, it won't let me enter the data unless the question on the NEXT screen is the same as this one. I know it's something to do with the fact tha

[web2py] dropdown plugin

2011-03-14 Thread Thomas Bellembois
Hello, I have just installed the dropdown plugin. It works well except for list:reference fields. I have just modified the models/plugin_dropdown.py file: def create(): table,field = request.args(0).split('.') # MODIF field_tablename = db[table][field].type.split(' ')[1] referee

Re: [web2py] Dropdown selection of table reference, select blank option --> 0 not None?

2011-03-06 Thread toan75
Thank Richard. I use: query = (db.tablegroup.parent==None), In this case: parent = 0 --> not work and I want update: parent = None. You have any idea? On Sunday, March 6, 2011 11:11:40 PM UTC+7, Richard wrote: > > What is this for : > > form[0][0][1] = TD(my_select) > > my_select = SELECT(*tabl

Re: [web2py] Dropdown selection of table reference, select blank option --> 0 not None?

2011-03-06 Thread Richard Vézina
What is this for : form[0][0][1] = TD(my_select) ??? Default choice to be charged into the dropdown field?? There is a option for default choice... And there is a syntax to be used into controller to set default value when needed if it is not to be set everywhere the model is used. db.tablegr

[web2py] Dropdown selection of table reference, select blank option --> 0 not None?

2011-03-06 Thread toan75
Hi all, Please help me with the problem of dropdown selection. It work fin by default: select blank option in the drop down, it update value of field reference = None But i need change drop down list: form[0][0][1] = TD(my_select) Now, it update value = 0 (not None) and I can't update: db(db.

Re: [web2py] Dropdown List with Select

2010-08-25 Thread Jean-Guy
I am not exactly sure of what you are looking for... Better if you send specific code of your model, controler and views... You can Change the ID representation that way : db.auth_membership.user_id.requires=IS_IN_DB(db,'auth_user.id','%(first_name)s %(last_name)s (%(id)s)') That generate a

[web2py] Dropdown List with Select

2010-08-23 Thread David
This seems list a simple task but I can't figure out a way to do it with Web2Py I want to have a dropdown list of services that someone can select and then be taken to the correct profile page etc I want to build this list of names dynamically from my services model. How do I pull the differ