hello,

maybe I'm doing this completely wrong, but it's a long time ago I used web2py.

In the main page I have a lot of links.
In fact these links are just indexes to a row in the database.

As I understand, the only way to pass parameters from clicking a link, is to use services.

An example of the link in my main document:

<a href="{{=URL('call/run/Show_Page/%s' % record.id)}}"> {{=record.id}}.Link</a>

So I created a service:
  @service.run
def Show_Page(ID):
return 'Test'

'Test' is shown as the result, but the view "views/default/Show_Page.html" is not used.

Can I not use a view with a service, or is it located on a different location ?

thanks,
Stef

--
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to