I have several lists in my SharePoint site. there is a parent list called Audit. This audit has several child lists: Recommendation, inquiry and report.
In each child list there is a due date column.
I am building a report and I need to get the earliest due date for each audit for my report. the earliest due date can be in any of the child lists for a given audit. I decided to write JavaScript code to retrieve listitems from all child lists. I declared a two dimensional array and I push the values of audit (lookup field) in the child lists as well as the value of due date to the two dimensional array. At the end the array may have elements with common audits but different due dates. I need to process this array so that for the elements of the array with a common value for Audit, I need to get the earliest Due date. How can I write a function to accomplish this.
faye fouladi