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 going to test. Thanks.
On Oct 20, 11:40 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > 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... 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 newbie to web2py (I think > > it already has to see it) and running of java and .net. > > > On Oct 20, 11:18 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > 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? > > > > > How would I do to implement a grid like this: > > > > > Table user > > > > > id, name, email, money, deposit, withdraw > > > > > The id field must have a link for editing the user. > > > > Add and drop fields should launch a modal popup with fields of type > > > > "value, reason, date, etc". > > > > > My question is how to create columns that have links (<a href="">) and > > > > events (onclick) in jqgrid within the controller or view on style > > > > web2py? And if it is not asking much, with some fields (deposit and > > > > withdraw) containing images? > > > > > Should choose to make a simple table or other component for that? > >