[web2py] Load giving a 404 NOT FOUND

2021-12-10 Thread mostwanted
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*

POLICY FORMS (DO REGISTRATION/S FOR {{=client_name(details)}})



{{loadmsg = SPAN("loading ...", BR(), SPAN(_class="fa 
fa-spinner fa-spin"), _style="font-size:20px;")}}

{{=LOAD(url=URL(r=request, f='children.load'),content=loadmsg, 
ajax=True)}}



-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/163f9bdb-69f3-4357-9377-cc0ec4f4acden%40googlegroups.com.


[web2py] LOAD is giving 404 NOT FOUND

2021-12-10 Thread mostwanted
I have forms i'm trying load into another page but i'm getting 
404 NOT FOUND error. I dont know what i'm doing wrong, if anyone can spot 
it please help, thats my code below






















*{{loadmsg = SPAN("loading ...", BR(), 
SPAN(_class="fa fa-spinner fa-spin"), _style="font-size:20px;")}}{{=LOAD(url=URL(r=request, 
f='spouse_details.load'),content=loadmsg, ajax=True)}}{{=LOAD(url=URL(r=request, 
f='children.load'),content=loadmsg, ajax=True)}}  
 {{=LOAD(url=URL(r=request, 
f='parent_and_inlaws_cover.load'),content=loadmsg, ajax=True)}}  
{{=LOAD(url=URL(r=request, 
f='extended_family_cover.load'),content=loadmsg, ajax=True)}}
*

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/2149d216-1a48-45a2-93e3-7d42eeed2d8bn%40googlegroups.com.