Why cant i use *details=db.table(request.args(0, cast=int)) *function
in a load? When i do i get 404 NOT FOUND error, is there way around this?
function:
def children():
client=db.client(request.args(0, cast=int))
db.children.client.default=client.id
form=SQLFORM(db.children)
if form.process().accepted:
response.flash=T('Family Member Registered')
return locals()
*THE VIEW BELOW DOES NOT OPEN THE FORM, IT GIVES ME A 404 ERROR*
*View*
<h1>
<u>POLICY FORMS (DO REGISTRATION/S FOR {{=client_name(details)}})</u>
</h1>
<br />
<div class="row">
{{loadmsg = SPAN("loading ...", BR(), SPAN(_class="fa
fa-spinner fa-spin"), _style="font-size:20px;")}}
<div class="col-md-6 form">
{{=LOAD(url=URL(r=request, f='children.load'),content=loadmsg,
ajax=True)}}
</div>
</div>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/163f9bdb-69f3-4357-9377-cc0ec4f4acden%40googlegroups.com.