Hi,
I am writing script using javascript client object model and using it on a sharepoint page via content editor webpart.
I am trying to achieve following:
I have two sharepoint lists with parent child relationship:
1) products
2) Orders are related by product ID field in products list. an order can be of type A, B, C . An order will have order Date.
What I want to do is build a summary table using Javascript CSOM that shows a product in first column and the second column it shows total count of orders associated with a product, third column it shows total count of orders associated with a product that are of Type A, fourth column it shows total count of orders associated with a product that are of type B and fifth column total count of orders associated with a product that are of type C. Sixth colum i would like to show a list of unique order dates associated with a product in a list of orders.
The very last row of the table would do the sum of all orders for all the products.
I am new to CSOM and javascript. Please help,
Thanks in advance