I have a smartgrid with a link in it like this:
links = [lambda row: A(T('Create Appointment'),_href=URL("default",
"appointment_create",args=[row.id]))]
And I pass that to this function:
@auth.requires_login()
def appointment_create():
record = db.patient(request.args(0))
db.appointment.patient.default = record
db.appointment.patient.writable = False
form = SQLFORM(db.appointment, next='appointment_select')
return dict(form=form)
And that gives me the whole record but I am looking for just the name of
the patient in this case. IN my db I set format='%(first_name)s
%(last_name)s') expecting to get that returned on the record but not so.
What should I be doing to obtain this correctly?
Thanks.
--
---
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/groups/opt_out.