On Friday, December 14, 2018 at 1:52:54 PM UTC-8, isi_jca wrote: > > Hi! > > Is possible to get data (a string) in this mammer? > > > tpaciente.idarticulo.comment= lambda row : myfunction(row.idarticulo) > > In the grid form from view, it is show "<function <lambda> at > 0x7f604fce2aa0>" > > Can anybody help me?. > > Thanks in advanced. >
Perhaps you could provide a little more description of what you are trying to do. Do you want the comment to be displayed after the rest of the page (including the grid) is rendered? Then you'd probably want to do a jQuery action. If the comment is being looked up in a table, and that table is different from the rest of the grid's table, you can probably do a join and use the results of the join in the grid call. if the string is being computed from user input [perhaps after the grid is rendered], you probably are back to a jQuery action. /dps A typical controller function (such as myapp/controllers/default.py ... def index()) can return a string a basic view will render it as body text. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

