[web2py] table headers with style

2016-12-03 Thread Dave S
I'm finding that SQLTABLE, though mostly well-behaved, doesn't properly take the th elements into account when sizing the table space; I'd like to add padding-right to those elements, but I've forgotten how to do it. My view looks like: myeheaders: th { padding-right: 2em} ; {{extend

[web2py] Re: Checking if user is offline/online

2016-12-03 Thread Anthony
On Saturday, December 3, 2016 at 2:25:50 PM UTC-5, Marlysson Silva wrote: > > You can do it with javascript, using: > > Api navigador: > https://developer.mozilla.org/en-US/docs/Online_and_offline_events#Overview > > https://developer.mozilla.org/en-US/docs/Online_and_offline_events#Overview >

[web2py] Re: Checking if user is offline/online

2016-12-03 Thread Marlysson Silva
You can do it with javascript, using: Api navigador: https://developer.mozilla.org/en-US/docs/Online_and_offline_events#Overview https://developer.mozilla.org/en-US/docs/Online_and_offline_events#Overview Em sexta-feira, 2 de dezembro de 2016 15:11:08 UTC-3, Ramos escreveu: > > What could be the

[web2py] Re: SQLFORM.grid: using groupby disables create?

2016-12-03 Thread Scott Hunter
In my case, I have records with 2 fields, A & B; I want one record to be displayed for each distinct value of A when B is either 1 or 2, but it is possible that each will be present, so I use groupby A to avoid duplication. I tried using a smartgrid, but it exhibited the same groupby/add

[web2py] Re: SQLFORM.grid: using groupby disables create?

2016-12-03 Thread Anthony
This is tricky. Write operations (as well as the details view) are disabled with groupby because the rows in the grid do not necessarily represent individual records. Of course, that shouldn't necessarily preclude adding new records, but from a user perspective, we have to think of what is

[web2py] Re: sqlform.grid search numeric fields

2016-12-03 Thread Anthony
You can customize the search functionality by providing (a) a custom widget via the "search_widget" argument (it takes a list of searchable fields and a URL and should return a search form) and/or (b) a custom search query builder via the "searchable" argument (it takes a list of searchable

[web2py] sqlform.grid search numeric fields

2016-12-03 Thread Scott Hunter
When using the basic (as opposed to advanced) search function of an SQLFORM.grid, it only appears to look in text fields, such that if I enter a number, it doesn't find any matches unless that number appears in a text field (even if that field is not one of the ones displayed in the grid). Is

[web2py] SQLFORM.grid: using groupby disables create?

2016-12-03 Thread Scott Hunter
I have a SQLFORM.grid in which I would like to use groupby as well as be able to create records. But when I supply the groupby parameter, the Add Record button disappears, and can be made to re-appear if the only thing I change is remove the groupby parameter. Is this a bug? If it is a

[web2py] Re: SQLFORM.grid and oncreate error

2016-12-03 Thread Scott Hunter
My bad; I was using concrete (the callback for AFTER a record has been created) instead of onvalidation (the one for BEFORE that). On Friday, December 2, 2016 at 11:17:57 PM UTC-5, Scott Hunter wrote: > > If the oncreate callback for a SQLFORM.grid sets form.errors to true, the > record is not