in a JQM app, I have a list service that populates a list. For each list item, I would like to use that item's ID in a where clause for a service that is invoked. The second service will be used to retrieve all records related to each item in the list and sum a field in that list.
For example I have a list with 4 items, and each item has 5 "child" records (records that have its id in them) in another table, each with the value of 1 in the field I want to sum. The end result of what I am trying to do here is to display that sum, in this case 5, in each list item.
I know this must be possible and would fall as custom JS logic, but I have spent days worth of hours trying to get there myself and am totally lost. Could someone just point me in the right direction please?