[web2py] Re: Please help me understand how 'lambda row, rc' works

2011-11-06 Thread Stefaan Himpe
tomt wrote: I wanted to implement the 'extracolumns' feature of SQLTABLE and the example provided in the source code is: :param extracolums = [{'label':A('Extra',_href='#'), 'class': '', #class name of the header 'width':'', #width in pixels or %

[web2py] Re: Please help me understand how 'lambda row, rc' works

2011-11-06 Thread tomt
Thanks for your response. Using your suggestion of implementing a controller helped me to see that defining the 'content' statement in extracolumns causes SQLTABLE to pass the current record and rc(rowcount) to be used by a controller or function, that can then be used by the A() helper. - Tom O

Re: [web2py] Re: Please help me understand how 'lambda row, rc' works

2011-11-07 Thread Johann Spies
I found the cause of the problem: I used the suggest-widget with the doc_nr field and specified an id-field without specifying 'keyword' as in the documentation. This worked well in SQLFORM.factory but not in the model. Removing the 'id_field' argument solved the problem. Regards Johann -- Bec

Re: [web2py] Re: Please help me understand how 'lambda row, rc' works

2011-11-07 Thread Johann Spies
Apologies, I replied to the wrong thread. Ignore my previous email in this context please. Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3)