Sorry I do not understand the workflow here. You seem to say
domicilio1 and domicilio2 are two actions but you show us only one
(domicilio).

Any chance you can isolate the problem in smaller actions?
This starts to be a lot of code to look over.

Massimo

On Jan 20, 4:07 pm, Jose <jjac...@gmail.com> wrote:
> Returning to thread [1] (I could not answer on it, so I opened a new
> thread).
>
> I still have problems with firefox. The transition from domicilio1 to
> domicilio2 does not occur properly. Instead of going to domicilio2
> with the values already loaded, domicilio1 redisplays with fields
> blank. As I mentioned this only happens with firefox.
>
> If I delete the view domicilio, to use the default view, works well.
>
> the controller:
>
> def domicilio():
>     if session.documento is None:
>         redirect(URL(r=request, c='default', f='index'))
>
>     if not len(request.args) > 0:
>         redirect(URL(r=request, c='default', f='index'))
>
>     tipodom = request.args[0]
>     boton = 'Siguiente >'
>     proximo = 'domicilio2'
>     if tipodom == '1':
>         idtipo = 2
>         parametro = [2]
>     elif tipodom == '2':
>         idtipo = 1
>         parametro = [3]
>     else:
>         idtipo = 4
>         boton = 'Aceptar'
>         proximo = 'final'
>         parametro = []
>
>     form = SQLFORM(db.DomiciliosSolicitud, submit_button=boton)
>
>     if session.vars:
>         form.vars.update(session.vars)
>
>     db.DomiciliosSolicitud.IdMatricula.default = session.documento
>     db.DomiciliosSolicitud.IdTipoDomicilio.default = idtipo
>
>     if form.accepts(request.vars, session):
>         if idtipo != 4:
>             session.vars = dict(form.vars)
>         else:
>             session.vars = None
>
>         redirect(URL(r=request, f=proximo, args=parametro))
>     return dict(form=form, tipodom=tipodom)
>
> the view (domicilio):
>
> {{if tipodom == '1':}}
>     <h1>Domicilio1</h1>
> {{elif tipodom == '2':}}
>     <h1>Domicilio2</h1>
> {{else:}}
>     <h1>Domicilio3</h1>
> {{pass}}
>
> {{=form}}
>
> As shown in view domicilio is very simple, which confuses me more
> because with the default view works well.
>
> Already solved by creating three views, d1, d2 and d3, and passing
> them with response.view, but I would like to know I am doing wrong.
>
> Jose
>
> [1]http://groups.google.com/group/web2py/browse_thread/thread/f54a50801d...

-- 
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