Re: [web2py] Re: Problems trying to use jqgrid from plugin_wiki

2011-01-10 Thread Bruno Rocha

 Ok, thanks very much! That was the problem, I had to login :)

 I've heard of PowerTable, and even I visited the webpage, saw the
 demos. PowerTable is really cool, but (I'm quoting the author in this)
 it's not appropriate for tables with lot of records, because it uses
 datatable, and datatable isn't server side processing;


Not yet,

Datatables has serverside processing
http://datatables.net/examples/server_side/server_side.html

http://datatables.net/examples/server_side/server_side.htmlBut, It is not
in plugin_powerTable yet, I have a list of wishes and issues, I am working
on my free time to fix bugs and implement new features.

There are some people helping with tests, and I hope to implement ServerSide
processing very soon ( I actually have it working on my machine, but it is
not very well included in the plugin)

I hope to be able to do something like:

plugins.powerTable.datasource = URL('a_funtion_which_returns_xml_or_json')

I am looking throught webgrid and Jqgrid code to take some ideas and it is
on the way.

For now, you have to go with webgrid or jqgrid if you need server side
processing.

-- 

Bruno Rocha
http://about.me/rochacbruno/bio


Re: [web2py] Re: Problems trying to use jqgrid from plugin_wiki

2011-01-10 Thread Richard Vézina
Hello Massimo it is related to this thread I think :
http://groups.google.com/group/web2py/browse_thread/thread/561ee826ac9c1ff2?pli=1

http://groups.google.com/group/web2py/browse_thread/thread/561ee826ac9c1ff2?pli=1So
you will close more then one issue ;-)

Richard

On Mon, Jan 10, 2011 at 4:13 PM, Massimo Di Pierro 
massimo.dipie...@gmail.com wrote:

 It took me a while to debug this.
 The problem is that the ajax service that fills the table requires
 login.
 You probably have not created an account or have not logged in.
 The page that displays the jqgrid does not require login so it shows,
 but the service responds with a login page instead of sending the
 data.

 There should be a clearly displayed error in this case and I will
 modify plugin_wiki to take care of this case more gracefully.

 On Jan 10, 2:00 pm, Lisandro rostagnolisan...@gmail.com wrote:
  I downloaded web2py (1.91.6) and executed the development server.
  I edited the welcome app:
 
  First, I installed the plugin plugin_wiki in the welcome app.
 
  Second, I edited the db.py, adding the following line (every other
  thing stays as default):
 
 ---
 
  db.define_table('ciudadanos', Field('nro_documento'))
 
 ---
 
  I added some sample records.
 
  Third, I edited the default/index.html view, adding the following
  line:
 
 ---
 
  {{=plugin_wiki.widget('jqgrid', 'ciudadanos')}}
 
 ---
 
 
  When I acceshttp://.../welcome/default/index, I can see the jqgrid,
  but it contains nothing.
  I tried with:
   * {{=plugin_wiki.widget('jqgrid',  table='ciudadanos')}}
   * {{=plugin_wiki.widget('jqgrid', table=db.ciudadanos)}}
  But nothing happens.
 
  ¿What am I doing wrong? Thanks in advance.