Hi

I've this particular case :

def governorate():
    form = crud.create(db.governorate)
     ........
     ........
    return dict(governorates=governorates, form=form)

def edit_governorate():
    form = SQLFORM(db.governorate ,request.vars.gov_id)
    if form.accepts(request.vars, formname='name'):pass
    return dict(form=form)

Now in governorate.html   the returned table has an action on every
record

{{for governorate in governorates:}}
        <tr>
            <td>
                <a href="# " id='update_governorate' onclick=
"func('{{=governorate.id}}');">{{=governorate.name}}</a>

        ----------


<div id="governorate_form">
    {{=A(.............,
_href=URL(r=request, ,c="controller",f="governorate")}}
    {{=form}}
</div>



now func() should call edit_governorate , get the form into the
governorate_form div

Now the update form is not working, how exactly can I get it work ?




-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to