[web2py] Re: How to create fields with links and events in jqgrid?

2010-10-21 Thread Savio Sabino
Hello. I did the following test with virtual fields: db.define_table('product', Field ('type', db.tp_produto) Field ('manufacturer', db.fabricante) Field ('qt', 'integer', default = 0), Field ('qt_min', 'integer', default = 0)

[web2py] Re: How to create fields with links and events in jqgrid?

2010-10-21 Thread Savio Sabino
Complementing the line: db.produto.virtualfields.append(VirtualFields()) causes error in creating the tables below it. On Oct 21, 9:00 am, Savio Sabino savi...@gmail.com wrote: Hello. I did the following test with virtual fields: db.define_table('product',                 Field ('type',

[web2py] Re: How to create fields with links and events in jqgrid?

2010-10-20 Thread mdipierro
In model: db.table.field.represent=lambda value:A('click me',_href=value)) and this will be used by jqgrid On Oct 20, 6:41 am, Savio Sabino savi...@gmail.com wrote: Hello again. I have a new question. The current way of using jqgrid is with plugin_wiki? Even in the view or controller?

[web2py] Re: How to create fields with links and events in jqgrid?

2010-10-20 Thread Savio Sabino
Thanks this is nice solution. And very thanks for the great framework. And now... How do I add the two fields (deposit and withdraw) that no store data and be used only in the view? Must create a virtual copy of this table for and add fields? How? Take this opportunity to mention that I am

[web2py] Re: How to create fields with links and events in jqgrid?

2010-10-20 Thread mdipierro
I never tried but you can try define virtualfields: http://www.web2py.com/book/default/chapter/06?search=virtualfield and they should appear in jqgrid On Oct 20, 9:35 am, Savio Sabino savi...@gmail.com wrote: Thanks this is nice solution. And very thanks for the great framework. And now...

[web2py] Re: How to create fields with links and events in jqgrid?

2010-10-20 Thread Savio Sabino
I think it's more or less what I'm looking for. The difference is that instead of making a calculation as in the example, I put the onclick event which calls the ajax function to load a template type and puts the data in one modal. Overall, things became more practical than I thought. Now I'm