Thanks a lot Kevin for your time & explanation :)
On Mar 21, 3:44 pm, Kevin Ivarsen wrote:
> One other thought - if web2py wasn't rejecting the form based on the formkey
> after redirect, I think you would actually be running into an infinite
> redirect loop here the way things are currently str
One other thought - if web2py wasn't rejecting the form based on the formkey
after redirect, I think you would actually be running into an infinite
redirect loop here the way things are currently structured!
Cheers,
Kevin
Why do you need to redirect back to the same view to display the error? The
normal way of doing this is basically what you currently have: if there is
an error in the form in the POST, immediately redisplay the form.
I think the reason this is failing is because of the formkey technique used
by
This is hard to follow. Can you isolate the parts that don't work? Are you able
to radically simplify the logic?
Hello DenesL,
Thanks for your reply.
For Issue#2:
inside get_CIs function the request.vars.WO_cpp_id is None which
represent the selected id from first dropdown.
could you please advice me what the problem?
On Mar 20, 6:24 pm, DenesL wrote:
> On Mar 20, 11:32 am, Neveen Adel wrote:
>
> >
Hello Kevin ,
Thanks a lot for your reply.
what i want to do is :
def items():
wo = db(db.WO.id == request.vars.wo_id).select()[0]
checkList_items = db(db.checklist_item.cl_id ==
request.vars.cl_id).select(orderby="checklist_item.id DESC")
form = SQLFORM(SQLDB(None).define_table('m
On Mar 20, 11:32 am, Neveen Adel wrote:
> Hello,
>
> Issue#1:
>
> I want make server validation, but when return the page again i want
> to be had the entered values:
> e.x:
> if request.vars[str(item.id)] == "NO" and
> request.vars["comment"+str(item.id)] == "":
>
Hi Neveen,
Without a bit more context I'm having trouble determining the problem. In
principle you should be able to pass vars=request.vars to URL and have them
show up in the redirected URL. For example:
def func1():
if request.vars.value == "hello":
return "you submitted hello"
8 matches
Mail list logo