[web2py] Re: Smartgrid links with many-to-many join tables

2018-09-17 Thread Massimo Di Pierro
It is not that it does not work. it just treats a link table as a normal table, instead it should hide it and only use it to build the queries. it is not a hard change to make but we never got to make it because we always plant to reimplement the grid in a more modular manner On Monday, 3 Septe

[web2py] Re: Smartgrid links with many-to-many join tables

2018-09-03 Thread miiheikk
Hi, thanks for taking the time to answer. I quickly tested this and it's effectively the solution I referred to as circumventing the problem. I could define controller functions (response mappings) manually and then lambdaing the links to them, but it'd require a lot of code and I'd lose the r

[web2py] Re: Smartgrid links with many-to-many join tables

2018-09-02 Thread Massimo Di Pierro
How about this? def grid(): form = SQLFORM.grid(db.thing_a, links=[lambda row: A('b things', _href=URL('grid_b',args=row.id))]) return locals() def grid_b(): a_id = request.args(0) query = (db.thing_b.id==db.join_table.b_id) & (db.join_table.a_id==a_id) filelds = columns = [

[web2py] Re: smartgrid links

2017-06-20 Thread T.R.Rajkumar
Thank you Anthony. I will do the same. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google

[web2py] Re: smartgrid links

2017-06-19 Thread Anthony
I don't think that is supported. You can instead use server-side DOM manipulation to remove the unwanted DOM elements after the grid is created (or hide them via Javascript). Anthony On Wednesday, June 14,

[web2py] Re: smartgrid links

2017-06-19 Thread T.R.Rajkumar
Am I not clear in my question? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups

Re: [web2py] Re: Smartgrid Links

2013-06-25 Thread Tom Russell
Ah I see now, Thanks. On Tue, Jun 25, 2013 at 1:31 PM, Anthony wrote: > If you only provide two positional args to URL, it assumes they are the > controller and function. In this case, you'll need to specify the > application, controller, and function: > > URL("AppointmentManager", "yourcontrol

[web2py] Re: Smartgrid Links

2013-06-25 Thread Anthony
If you only provide two positional args to URL, it assumes they are the controller and function. In this case, you'll need to specify the application, controller, and function: URL("AppointmentManager", "yourcontroller", "appointment_create", args=[row. id]) You can also used keyword arguments