Can you describe the symptoms as you go through the interface?

Are you using the web2py_ajax.html function "web2py_ajax_page" to load
the form and trap it into the page?

On Feb 7, 6:37 am, "hamdy.a.farag" <hamdy.a.fa...@inbox.com> wrote:
> 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