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 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 (because i define virtual field *beginning_inventory *first > and then *actual_inventory*): > id | name | beginning_cost | beginning_quantity | final_cost | > actual_quantity | *beginning_inventory *| *actual_inventory* > > best regards, > stifan > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

