[web2py] Re: SQLFORM.smartgrid seems to ignore formargs(separator=':'), whereas SQLFORM.grid obeys it

2019-03-04 Thread Massimo Di Pierro
should work but will check asap On Sunday, 3 March 2019 19:59:49 UTC-8, junderh...@launchpnt.com wrote: > > Thanks, Massimo. Will this work for multiple tables? When I write: > > formargs={'Wordlist': dict(separator=': '), 'Wordlist2word': dict( > separator=': ')} > > this works for the first

[web2py] Re: SQLFORM.smartgrid seems to ignore formargs(separator=':'), whereas SQLFORM.grid obeys it

2019-03-03 Thread junderhill
Thanks, Massimo. Will this work for multiple tables? When I write: formargs={'Wordlist': dict(separator=': '), 'Wordlist2word': dict(separator=': ')} this works for the first table, but when I navigate into the second table via a linked field, the arguments don't seem to be picked up. I ask

[web2py] Re: SQLFORM.smartgrid seems to ignore formargs(separator=':'), whereas SQLFORM.grid obeys it

2019-03-03 Thread Massimo Di Pierro
It is not a bug. The problem is that in smartgrid you have to specify which table the formargs apply to. For example: form = SQLFORM.smartgrid(dvdb.Wordlist, args=request.args[:1], paginate=100, formargs={'Wordlist': dict(separator=': ')}, breadcrumbs_class='breadcrumbs' ) I am making a change