Re: [web2py] Re: jqgrid and edit-link

2010-08-26 Thread Johann Spies
Thanks. I am making progress. Regards Johann --     "Be not deceived; God is not mocked: for whatsoever a      man soweth, that shall he also reap."                                   Galatians 6:7

[web2py] Re: jqgrid and edit-link

2010-08-26 Thread mdipierro
plugin_wiki.widget('jqgrid',table='mytable') assumes all records (mytable.id>0) On Aug 26, 2:38 pm, Johann Spies wrote: > On 26 August 2010 21:08, mdipierro wrote: > > > datatable and jqgrid are different. > > > datatable fetches all records at once (without ajax) that allows > > arbitrary quer

Re: [web2py] Re: jqgrid and edit-link

2010-08-26 Thread Johann Spies
On 26 August 2010 21:08, mdipierro wrote: > datatable and jqgrid are different. > > datatable fetches all records at once (without ajax) that allows > arbitrary queries but does not work with large datasets. > > jqgrid fetches records via ajax. that allows only simple queries > (because they have

[web2py] Re: jqgrid and edit-link

2010-08-26 Thread mdipierro
datatable and jqgrid are different. datatable fetches all records at once (without ajax) that allows arbitrary queries but does not work with large datasets. jqgrid fetches records via ajax. that allows only simple queries (because they have to be passed in a safe way via ajax) but works well wit

Re: [web2py] Re: jqgrid and edit-link

2010-08-26 Thread Johann Spies
With the datatable plugin I can use teachers=plugin_datatable(db(db.teacher.id>0).select(),_class='datatable') which works but is to wide and with column headers that looks ugly. db.teacher.id.represent = lambda id: SPAN(A('edit',_href=URL(r=request,c='default',f='edit_teacher',args=id))) works

Re: [web2py] Re: jqgrid and edit-link

2010-08-26 Thread Johann Spies
On 26 August 2010 03:30, mdipierro wrote: > look into the plugin code modes/plugin_wiki.py models/plugin_wiki.py Thanks. That helped to see what is going on but: When I use teachers=plugin_jqgrid(db.teacher,columns=["id", "surname","name","highest_qualification","id_number","school", "gende

[web2py] Re: jqgrid and edit-link

2010-08-25 Thread mdipierro
look into the plugin code modes/plugin_wiki.py On Aug 25, 4:14 pm, Johann Spies wrote: > On 25 August 2010 22:51, mdipierro wrote: > > > {{=plugin_wiki.widget('jqgrid',table='tablename')}} > > > the first argument is the widget name, the other named arguments are > > the widgets attributes. > >

Re: [web2py] Re: jqgrid and edit-link

2010-08-25 Thread Johann Spies
On 25 August 2010 22:51, mdipierro wrote: > {{=plugin_wiki.widget('jqgrid',table='tablename')}} > > the first argument is the widget name, the other named arguments are > the widgets attributes. Thanks. My first try did not work. I will have to read up on what "the other named arguments" are s

[web2py] Re: jqgrid and edit-link

2010-08-25 Thread mdipierro
{{=plugin_wiki.widget('jqgrid',table='tablename')}} the first argument is the widget name, the other named arguments are the widgets attributes. On Aug 25, 3:39 pm, Johann Spies wrote: > > Are you using plugin_jqgrid. If so please use widget jqgrid from > > plugin_wiki. > > I don't know how to d

Re: [web2py] Re: jqgrid and edit-link

2010-08-25 Thread Johann Spies
> Are you using plugin_jqgrid. If so please use widget jqgrid from > plugin_wiki. I don't know how to do it. All the documentation refers to that usage within wiki pages. I am not using a wiki in this case. Regards Johann --     "Be not deceived; God is not mocked: for whatsoever a      man sow

[web2py] Re: jqgrid and edit-link

2010-08-25 Thread mdipierro
Are you using plugin_jqgrid. If so please use widget jqgrid from plugin_wiki. On Aug 25, 12:45 am, Johann Spies wrote: > I followed the example in the radiolog-example of using jqgrid but I > am doing something wrong I suppose. > > Given the following model > > db.define_table("teacher", >