On Mar 20, 11:32 am, Neveen Adel <[email protected]> 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)] == "":
> session.flash = "Invalid Value"
>
> redirect(URL(r=request,f='items',vars=request.vars))
Hard to tell without the action code but assuming that you are using
form.accepts you should not redirect on form errors.
> // The previous code return an empty values.
>
> Issue#2:
> Is there a problem in function ajax() with version 1.91.6 .
>
> because when i used
> ajax('get_CIs', ['WO_cpp_id'], 'WO_ci_id');
> The function get_CIs has been called fine but the
> request.vars.WO_cpp_id is None.
Probably the action is returning an empty selection.
> Please, How i can fix the previous two issues?
>
> Thanks in Advance