M
mcchu
I like to sum up all details that belong to current master row. My schema is
as follows:
myFields
Categories
Category
CategoryID
Description
Products
Product
PCategoryID
ProductID
PDescription
Price
Total
I set the default value for Total to
sum(current()/../my
roduct/my
rice)
and the result of my total is always 0 in this case.
If I set the default value for Total to
sum(../my
roduct/my
rice)
and the result of my total is always the total of all prices nor matter what
the category the product is in.
I am using master for Category (CategoryID) and detail for Product
(PCategoryID). I only want the total to sum up all prices for all products
within each category.
Thanks for the reply.
as follows:
myFields
Categories
Category
CategoryID
Description
Products
Product
PCategoryID
ProductID
PDescription
Price
Total
I set the default value for Total to
sum(current()/../my
and the result of my total is always 0 in this case.
If I set the default value for Total to
sum(../my
and the result of my total is always the total of all prices nor matter what
the category the product is in.
I am using master for Category (CategoryID) and detail for Product
(PCategoryID). I only want the total to sum up all prices for all products
within each category.
Thanks for the reply.