On Feb 19, 7:56 am, ural <[email protected]> wrote:
> I am a beginner in python and web2py.

Welcome :)

> How to build a link --from any view to any view of the same
> application-- which has to be adressed not directly( like =form) but
> instead in the models related field.

I would do this by having fields in the Model for 'controller' &
'action'
View would then have a link as:
. . . . .href="{{=URL
(r=request,c=titles.controller,f=titles.action)}}".....

If controller was always the same (as I think they are for you), then
you can simply miss that part out.
SQLField('linker','string') can contain the action.

View can have just:
. . . . .href="{{=URL(r=request,f=titles.linker)}}".....

Does this solve your issue?

F
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to