1. First, since there will be multiple orders for each product, the link needs to appear in the Orders library to the Products library to identify what product the order is for.
2. Memento allows one to create a Mass Calculation field to calculate a total. It also allows one to create that field with a dependency upon another field. So the total of orders for a seller could be such a field, giving the total you want.
To also include a total for a different range, such as a grand total across all sellers, one would need a separate field for that total, and this field would have the same calculation, but no dependency.
Now, PERHAPS it is possible to use only one total field that will serve both purposes. When the user wants to see only those records for a particular seller, he or she could use a filter on the seller (link) field. My question to others is: Can the one total field in this case display the total only for the items currently filtered by the user, or would it necessarily display only the full total in all cases? If the latter is true, you'll need both of the totals I described earlier, if you want to show a grand total when filtered.
-Bill
I think Memento is among the very best of databases for mobile devices, but representing many-to-many relationships like products and orders is difficult or impossible for all of them.
Memento can do it. One would use:
- a Products library with no links to orders
- an Order library with ID & date information and a seller ID or link, but no links to products
- a 3rd (called associative) Order Items library that simultaneously identifies the products on an order and the orders for a product, containing (besides a link to a product & a link to an order) information such as size or style for that order of that product.
Though this can be done in Memento (to its credit), limitations arise, as you have already surmised. Features one would like to use may require referencing a field in another library, and that may not be possible. And the view would be complicated.
I hope others will contribute, because there could be an (at least partial) solution using features I haven't used, like multiple pages for a library list view, but I cannot picture it.
-bc