https://www.google.com/ :D
--
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
Yeah I figured that out. Made the following change and it worked.
*Controller*
# Days Form
if session.days:
days_form =
SQLFORM(db.days,record=session.days,submit_button='Save',showid=False,
_id='days_form')
else:
days_form = SQLFORM(db.days, submit_button
I have an sqlform that is not working as expected. I think I have the wrong
sequence or something and would like some help with it.
*Controller*
# Days Form
if session.days:
days_form =
SQLFORM(db.days,record=session.days,submit_button='Save',showid=False,
Hi,
The controller returns rows from building table via which the dropdown is
populated. When a user selects a building from the dropdown, the address of
the building should be displayed in the paragraph tag. Here is what I have
done so far,
*Controller*
def index():
return
I used JQuery instead and did the following,
*View*
Home
Add Home
{{=form}}
$( document ).ready(function() {
$('form').hide();
});
function displayHomeForm()
{
$('#chooseHome').hide();
The code is as follows,
*Controller*
def index():
form = SQLFORM(
db.home,
submit_button = 'Save'
)
*View*
Home
Add Home
{{=form}}
I want to make the form visible only when "Add Home" button is clicked. Any
suggestions?
--
Resources:
-
t --
> http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#find--exclude--sort
> ).
>
> Anthony
>
> On Monday, April 17, 2017 at 5:26:33 AM UTC-4, Mujeeb Farees wrote:
>>
>> I know the auth_user table should have a company field for the case
>&g
I know the auth_user table should have a company field for the case below.
But this is just a sample data, the actual data is different.
*Company Table*
| *id* | *name* | *users* |
| 1 | Com1 | |1|2| |
| 2 | Com2 | |3|4|5| |
The users field is of list:reference type that
8 matches
Mail list logo