Re: [web2py] powerTable.extrajs question

2011-03-04 Thread Richard Vézina
Hello Bruno, What do you think of using web2py service JSONRPC? So we need function to deal with those call from DataTables : intiDisplayStartDisplay start pointintiDisplayLengthNumber of records to displayintiColumnsNumber of columns being displayed (useful for getting individual column search

Re: [web2py] powerTable.extrajs question

2011-02-01 Thread Bruno Rocha
2011/2/1 Johann Spies > I hope some time in future people with proper knowledge of javascript like > you will be able to combine pagination the way jqgrid from the plugin_wiki > does (using limitby in sql-queries) with the other powerfull features to get > the best of both sides. datatables.net

Re: [web2py] powerTable.extrajs question

2011-02-01 Thread Johann Spies
On 1 February 2011 13:17, rochacbruno wrote: > The problem is in > > art_id = request.vars['dt_1'].split('.')[-1] > > For the first row it will be called dt_1 but for the second it will be dt_2 > and so on. > > Thanks. Now I am beginning to understand your logic. The following is working now (a

Re: [web2py] powerTable.extrajs question

2011-02-01 Thread rochacbruno
The problem is in art_id = request.vars['dt_1'].split('.')[-1] For the first row it will be called dt_1 but for the second it will be dt_2 and so on. Another possibility is that when you call the second. It mess up the JavaScript. Can you pastebin your whole code or attach your w2p app?

Re: [web2py] powerTable.extrajs question

2011-02-01 Thread Johann Spies
Apologies, I sent the email before it was completed. It seems that only on artikel.id == 1 the function (skrywerdetails) is called. The print lines in that function print only the following content: (request.vars) 1 (art_id) For all other rows in the table clickng on the + results in an empty

Re: [web2py] powerTable.extrajs question

2011-02-01 Thread Johann Spies
Thanks. It helped a bit. I see I had to use table.extra and not table.extrajs as in the example I followed. But my problems are not over :( My controller: def pwrtable(): """ Generiese definisie vir plugin: powertable. """ powerTable = plugins.powerTable powerTable.dtfeature

Re: [web2py] powerTable.extrajs question

2011-01-31 Thread Richard Vézina
Nop! I look how it works. Richard On Mon, Jan 31, 2011 at 5:03 PM, Bruno Rocha wrote: > Hello Richard, powerTable is currently based on a modified version of > SQLTABLE, but I realized that when working with Ajax datasource SQLTABLE is > not a good idea. so now I'm thinking in restarting the d

Re: [web2py] powerTable.extrajs question

2011-01-31 Thread Bruno Rocha
Hello Richard, powerTable is currently based on a modified version of SQLTABLE, but I realized that when working with Ajax datasource SQLTABLE is not a good idea. so now I'm thinking in restarting the development of the plugin from scratch. Create aspecialized class to return the TABLE object and

Re: [web2py] powerTable.extrajs question

2011-01-31 Thread Richard Vézina
Bruno, I would help you the best I can... I would like to focus on JSON where to start? Do you have a app with the demo : products and category db? Thanks Richard On Mon, Jan 31, 2011 at 3:54 PM, Bruno Rocha wrote: > Hi, > > I could not reproduce your model, but here it is my example app run

Re: [web2py] powerTable.extrajs question

2011-01-31 Thread Richard Vézina
Hello Bruno, Did you get powerTable to use serverside working with web2py json? Richard On Mon, Jan 31, 2011 at 9:37 AM, Bruno Rocha wrote: > I am trying to implement your model here with the latest powerTable, I'll > came back soon with the answer. > > > > > Bruno Rocha > http://about.me/roch

Re: [web2py] powerTable.extrajs question

2011-01-31 Thread Bruno Rocha
I am trying to implement your model here with the latest powerTable, I'll came back soon with the answer. Bruno Rocha http://about.me/rochacbruno/bio

[web2py] powerTable.extrajs question

2011-01-31 Thread Johann Spies
I am trying to get PowerTable to show referenced records (like that in the PowerTable-examples (category - products) but I could so far not get that working (Is there other documentation available?). I have used this powerTable.extrajs = dict(autoresize={}, tooltip={