Ah I see now, Thanks.
On Tue, Jun 25, 2013 at 1:31 PM, Anthony <abasta...@gmail.com> wrote: > If you only provide two positional args to URL, it assumes they are the > controller and function. In this case, you'll need to specify the > application, controller, and function: > > URL("AppointmentManager", "yourcontroller", "appointment_create", args=[ > row.id]) > > You can also used keyword arguments "a", "c", and "f" with URL(). > > Anthony > > On Tuesday, June 25, 2013 12:08:57 PM UTC-4, Tom Russell wrote: >> >> I have a smartgrid with a link like so: >> >> links = [lambda row: A(T('Create Appointment'),_href=URL("** >> AppointmentManager","**appointment_create",args=[row.**id <http://row.id> >> ]))] >> >> grid = SQLFORM.smartgrid(db.patient, deletable=True, editable=True, >> create=True, maxtextlength=64, paginate=25, links=links, >> links_in_grid=True, linked_tables=['**emergencycontacts','** >> dependents']) >> return dict(grid=grid) >> >> Problem is that AppointmentManager is another app and the url points to >> /currentapp/**AppointmentManager/ etc, so how do I have it redirect to >> the other app? >> >> I looked in the book but could'nt find this. >> >> Thanks >> >> Tom >> > -- > > --- > 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. > > > -- --- 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.