The second argument is the name of the table, not the table.
wl2 = plugin_wiki.widget('jqgrid', 'ips', fieldname="b_or_w",
fieldvalue="w", fields=["id", "ipaddress", "attacknotes"])
On Friday, 11 May 2012 17:07:02 UTC-5, Larry Wapnitsky wrote:
>
> I'll try that, but even adjusting, this (in the controller) does not work:
>
> wl2 = plugin_wiki.widget('jqgrid', db.ips, fieldname="b_or_w",
> fieldvalue="w", fields=["id", "ipaddress", "attacknotes"])
>
> nor does:
>
> wl2 = plugin_wiki.widget('jqgrid', ips, fieldname="b_or_w",
> fieldvalue="w", fields=["id", "ipaddress", "attacknotes"])
>
> On Fri, May 11, 2012 at 6:01 PM, Massimo Di Pierro <
> [email protected]> wrote:
>
>> What do you get if you call this yourself?
>>
>> Anyway, I do not see the signature. Are you logged in?
>>
>> jqgrid in plugin_wiki requires login if I remember it right.
>>
>>
>>
>> On Thursday, 10 May 2012 15:02:27 UTC-5, Larry Wapnitsky wrote:
>>>
>>> Also just found this via the dev tools::
>>>
>>> Request URL:
>>> http://127.0.0.1:8000/rbl_**web2py/plugin_wiki/jqgrid?**
>>> columns=ipaddress%**2Cattacknotes%2Cb_or_w%**2CupdCount&fieldname=&**
>>> fieldvalue=None&tablename=ips&**_search=false&nd=**
>>> 1336679760463&rows=10&page=1&**sidx=&sord=asc<http://127.0.0.1:8000/rbl_web2py/plugin_wiki/jqgrid?columns=ipaddress%2Cattacknotes%2Cb_or_w%2CupdCount&fieldname=&fieldvalue=None&tablename=ips&_search=false&nd=1336679760463&rows=10&page=1&sidx=&sord=asc>
>>>
>>>
>