fileHandling.js
/* Gets ZINC ID from file data and adds it as a new property to an object
 * in the datatable
 * @author Shelby Matlock & csera
 * @param {String} fileText Parsed file contents to scan
 * @param {String} objId ID of the object in the relevant datatable to modify
 */
Gets ZINC ID from file data and adds it as a new property to an object
in the datatable
@author Shelby Matlock & csera
@param {String} fileText Parsed file contents to scan
@param {String} objId ID of the object in the relevant datatable to modify
Gets ZINC ID from file data and adds it as a new property to an object in the datatable @author Shelby Matlock & csera @param { String } fileText Parsed file contents to scan @param { String } objId ID of the object in the relevant datatable to modify
function parseForZinc(fileText, objId){
   var regex = /ZINC/i; 
   var zincLoc = fileText.search(regex);
   var zId = fileText.slice(zincLoc, zincLoc+12);
   dataObjs.getItem(objId).zincId = zId;
}
function parseForZinc ( fileText , objId ) { var regex = / ZINC / i ; var zincLoc = fileText . search ( regex ) ; var zId = fileText . slice ( zincLoc , zincLoc + 12 ) ; dataObjs . getItem ( objId ) . zincId = zId ; }
Gets ZINC ID from file data and adds it as a new property to an object
 in the datatable
 @author Shelby Matlock & csera
 @param {String} fileText Parsed file contents to scan
 @param {String} objId ID of the object in the relevant datatable to modify
Gets ZINC ID from file data and adds it as a new property to an object in the datatable @author Shelby Matlock & csera @param { String } fileText Parsed file contents to scan @param { String } objId ID of the object in the relevant datatable to modify
//Note: THIS WILL NOT WORK WITH FILES CONTAINING MULTIPLE ZINC IDs //Matches to first case-insensitive (i) instance of "ZINC" //12 is length of ZINC ID //Set the ZINC ID as a new property for the object