[web2py] Re: Random form field order

2014-08-12 Thread Richard
Anthony, Thank you, both hints work fine :) Richard D On Tuesday, August 12, 2014 12:16:57 PM UTC+2, Richard wrote: > > For updating a dynamically generated table I use a temporarily table and a > SQLFORM on that table. > This works fine except the sequence of the fields looks random to me. > >

[web2py] Re: Random form field order

2014-08-12 Thread Anthony
Your lev_fields_dict is not a dictionary but a set object (if you use curly braces without providing both keys and values separated by colons, you get a set). Neither sets nor dictionaries preserve order. In any case, you don't need a set -- just use a list (replace the curly braces with bracket