Hello,
I am using compute fields on a table.
The data are inserted with validate_and_insert method from args received in
the URL.
None of my compute fields are added to the DB.
Question : is the validate_and_insert method supposed to trigger compute
fields ?
Thanks
Seb
--
---
You
Dear All,
In one of my views, I am using a SQLForm.grid object. The grid is fed with
a table that has two computed fields and the query needs a LEFT JOIN to
another table.
The grid also use 'Links' to compute a field (create an column with an IMG
element depending on a column's value)
OK, using a debugger, I found out my problem.
When doing a left join, the row variable does not contain directly the
fields. We must use row.table_name.field_name instead.
This is now working. Problem solved.
Seb
On Tuesday, January 15, 2013 4:13:45 PM UTC+1, Sebastien Stormacq wrote
Dear All,
I recently used a SQLFORM.grid in my app and I wanted
#1 the possibility to have checkboxes to select multiple row to delete
#2 customize the text of the submit button
#3 have a select all checkbox in the table header.
#1 was easy to solve with the help of this mailing list.
(see
Thanks !
On Saturday, March 24, 2012 5:26:52 AM UTC+1, Javier wrote:
sabsto
You can use selectable, for example:
selectable = lambda ids: delete(ids)
form=SQLFORM.grid(query,​selectable=selectable)
def delete(ids):
to_delete=db(db.tabla.id.​belongs(ids))
to_delete.delete()
Hello Anthony,
Could you share your code for modal login ?
I am beginning with web2py and would love to learn from that example.
Thanks
Seb
On Friday, March 23, 2012 4:08:51 AM UTC+1, Anthony wrote:
@anthony: actually, on closer inspection, the doc does go into some
details:
Thanks !
On Friday, March 23, 2012 12:57:10 PM UTC+1, weheh wrote:
Sorry, last message got mangled somehow. Here goes again.
Sebastian, here's what I'm using:
7 matches
Mail list logo