[web2py] Re: virtual field ordered on grid

2014-03-04 Thread 黄祥
got it, thank you so much for detail explaination anthony. it seems that python principles all the way in this matter : explicit is better than implicit. thanks and best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] Re: virtual field ordered on grid

2014-03-03 Thread Anthony
I don't think the table stores information about the order of definition of virtual fields, so they will probably be displayed in arbitrary order unless you provide the "fields" argument. Anthony On Monday, March 3, 2014 3:42:59 PM UTC-5, 黄祥 wrote: > > yes, got it, but the virtual field is not

[web2py] Re: virtual field ordered on grid

2014-03-03 Thread 黄祥
yes, got it, but the virtual field is not in correct order yet. like in example above the result i got from the grid is (bold are virtual field) : id | name | beginning_cost | beginning_quantity | final_cost | actual_quantity | *actual_inventory *| *beginning_inventory* my expectation is (becaus