[web2py] Update of timestamp on update

2013-12-11 Thread Phil Hughes
This should be obvious but, for some reason it escapes me. I have a record with a timestamp in it. I am using SQLFORM.grid to get a CRUD form. So far, so good but how to I get the timestamp to be updated if I update the record? -- Resources: - http://web2py.com - http://web2py.com/book (Docume

[web2py] How to not validate a reference field

2013-12-16 Thread Phil Hughes
I have some reference fields in a table and I want to be able to allow them to be null (for a while. I have sent notnull and required to False in the model but I get an error when I go to create a record in appadmin. Clearly I can set them to point to a dummy record in my application but I am w

[web2py] Re: How to not validate a reference field

2013-12-16 Thread Phil Hughes
> On Monday, December 16, 2013 12:28:14 PM UTC-5, Phil Hughes wrote: >> >> I have some reference fields in a table and I want to be able to allow >> them to be null (for a while. I have sent notnull and required to False in >> the model but I get an error when I go to cre

[web2py] Re: How to not validate a reference field

2013-12-16 Thread Phil Hughes
Perfect. Clearly the trick here is just getting used to all the options available. I have yet to find something I can't do but, much like learning any new language (computer or natural) you just need to get used to it. Thanks. On Monday, December 16, 2013 3:17:58 PM UTC-6, Anthony wrote: > > I

[web2py] SQLFORM: changing which fields are writeable

2013-12-26 Thread Phil Hughes
I see this as related to a thread about changing which fields are displayed but my need is slightly different. I want to display all the form fields but, depending on who is seeing it, change which fields can be edited. While there is a lot more in the record, basically allow a user to only upd

[web2py] Re: SQLFORM: changing which fields are writeable

2013-12-26 Thread Phil Hughes
edit the field, but I would think this > would work. It has to appear before you create the form in the controller. > > Am I understanding the question correctly? > > -Jim > > On Thursday, December 26, 2013 8:21:20 AM UTC-6, Phil Hughes wrote: >> >> I see this as related

[web2py] Re: Where should I put my application logic code?

2013-12-31 Thread Phil Hughes
Add an argument to the function: foo(bar): Only functions with no arguments can be called from the outside world. On Tuesday, December 31, 2013 3:57:56 AM UTC-6, Wei Li wrote: > > Hi, > > This could be a silly question:) . I am going to build up some > application logic. So I will create a few

[web2py] autocomplete basic confusion

2015-03-14 Thread Phil Hughes
I seem to be in a loop (me, not the computer) getting autocomplete to do what I want which is totally basic. I have reduced this to a test case and could use a push in the right direction. (Consider this one of my 20 variations.) What I want is for the reference lookup to use nombre (not the ID

Re: [web2py] Re: autocomplete basic confusion

2015-03-15 Thread Phil Hughes
s topics, send an email to > web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Phil Hughes nica...@gmail.com -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - h

Re: [web2py] Re: autocomplete basic confusion

2015-03-15 Thread Phil Hughes
ceived this message because you are subscribed to a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/OYly9gV1GHA/unsubscribe. > To unsubscribe from this group and all its topics, send an email to >

Re: [web2py] Re: autocomplete basic confusion

2015-03-15 Thread Phil Hughes
t; web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Phil Hughes nica...@gmail.com -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/w

[web2py] Validator for field X or Y but not both

2015-03-24 Thread Phil Hughes
I have a record with two reference links -- to two different tables. The validation I want is that one and only one of the two references are filled in. Cleary I can just brute force this when processing the form but I wonder if I am missing a way to do this in the model. -- Resources: - http:

[web2py] Adding search and insert in text input

2015-04-03 Thread Phil Hughes
I have a table with a text area. I want to be able to insert a clickable reference to a a record in another table while entering/editing the text. Ideally, I should be able to search the table I want to reference to find the entry I want to point to. I am sure I can do this with AJAX but, well,