fileHandling.js
/** Searches the data object collection and matches the passed zincId to
 * the object's zincId
 * @param {String} zincId The ZINC ID to match to
 * @param {Object} coll Collection of data objects to scan
 */
Searches the data object collection and matches the passed zincId to
the object's zincId
@param {String} zincId The ZINC ID to match to
@param {Object} coll Collection of data objects to scan
Searches the data object collection and matches the passed zincId to the object ' s zincId @param { String } zincId The ZINC ID to match to @param { Object } coll Collection of data objects to scan
function matchZincInCollection(zincId,coll){
   var tableId, ligObj;
   for(var ligIndex=0; ligIndex<coll.count(); ligIndex++)
   {
      tableId = coll.getIdByIndex(ligIndex);
      ligObj = coll.getItem(tableId);
      if (zincId == ligObj.zincId) {
         return ligObj;
      }
      else if (ligIndex == coll.count()-1) {
         return null;
      }
   }
}
function matchZincInCollection ( zincId , coll ) { var tableId , ligObj ; for ( var ligIndex = 0 ; ligIndex < coll . count ( ) ; ligIndex ++ ) { tableId = coll . getIdByIndex ( ligIndex ) ; ligObj = coll . getItem ( tableId ) ; if ( zincId == ligObj . zincId ) { return ligObj ; } else if ( ligIndex == coll . count ( ) - 1 ) { return null ; } } }
Searches the data object collection and matches the passed zincId to
 the object's zincId
 @param {String} zincId The ZINC ID to match to
 @param {Object} coll Collection of data objects to scan
Searches the data object collection and matches the passed zincId to the object ' s zincId @param { String } zincId The ZINC ID to match to @param { Object } coll Collection of data objects to scan
//Go through each item in the ligOutTable until a match is found