Ok now is solved, I can show the modal:

{{extend 'layout.html'}}


{{a=PluginMModal(title='Hello
World',content='Hello!',close="close",width=70,height=70)}}

{{db.user.id.represent = lambda rep: a.link('Update')}}

{{=a}}

{{=SQLTABLE(table,
    headers='fieldname:capitalize',
   _id = 'smarttable',
   _class = 'smarttable',
   truncate=200,
   )
}}


But how could I pass arguments to the modal, so I can make this:

{{a=PluginMModal(title='Hello World',content=crud.update(db.user,
field),close="close",width=70,height=70)}}


On Wed, Aug 10, 2011 at 12:20 PM, Ialejandro <[email protected]> wrote:

> hi! I'm trying to represend the ID of a SQLTABLE as a link to a mmodal
> window (containing a crud.update) so I'm doing this (just to show the
> modal):
>
>
> {{extend 'layout.html'}}
>
>
> {{a=PluginMModal(title='Hello World',content='give this a
> try!',close='close',width=70,height=70)}}
> {{=a}}
>
> {{=SQLTABLE(table,
>    headers='fieldname:capitalize',
>   _id = 'smarttable',
>   _class = 'smarttable',
>   truncate=200,
>   linkto=a.link('Update')
>   )
> }}
>
> But, is not working I get this:
>
> invalid request
>
> and it generates this url
>
>
> http://127.0.0.1/reference/default/index/%3Ca%20onclick=%22jQuery%28&#x27;#6f91c756-fabc-46db-9ead-11c0a8b6fd81&#x27;%29.fadeIn%28%29;%20return%20false%22%3EUpdate%3C/a%3E/user/2
>
> So how could I do this? also how could I send args to the modal.
>
> I think what I want is something like the powergrid plugin, (I can't
> use it due application architechture).
>
>

Reply via email to