On Friday, May 20, 2016 at 11:34:08 AM UTC-7, rara wrote:
>
>  i am looking the solution on how to create the list of records that 
> customer was ordered. In my case, I am developing food delivery system 
> .user can order food more than one food, therefore, user can see the list 
> of foods that was ordered including total price for all foods.
>
>
> Anyone can help me to solve the problem? I really hope that I can settle 
> this part. Thank you in advance.
>


This sounds just like doing a query.   Depending on your table definitions, 
that might be something like
db((db.order.user == auth.user) & 
(!db.order.delivered)).select(db.order.foodname, db.order.quantity, 
db.order.units, db.order.price)

To give a better answer, we'll need to see your table definiitions, and 
maybe the queries you've already tried.

/dps

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to