Created
July 26, 2012 22:52
-
-
Save minitech/3185075 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In regards to | |
// http://stackoverflow.com/questions/11679116/creating-a-dynamic-binding-in-javascript | |
for(var i = 0; i < info.length; i++){ | |
var temp = [ | |
parseInt(info[i].site_id), | |
info[i].site, | |
info[i].site_code, | |
processArray(info[i].tc10), | |
processArray(info[i].tc9x_test), | |
processArray(info[i].tc9x_build), | |
processArray(info[i].oracle_dev), | |
processArray(info[i].database), | |
processArray(info[i].baseline), | |
processArray(info[i].push_windows), | |
processArray(info[i].push_unix), | |
processArray(info[i].license), | |
processArray(info[i].tcx), | |
processArray(info[i].eng), | |
processArray(info[i].perforce_proxy), | |
processArray(info[i].volume_server), | |
info[i].windows_ref_unit_location, | |
info[i].unix_ref_unit_location, | |
info[i].windows_rte_location, | |
info[i].unix_rte_location, | |
info[i].windows_toolbox_location, | |
info[i].unix_toolbox_location, | |
info[i].UGII_LICENSE_FILE, | |
info[i].UGS_LICENSE_SERVER, | |
info[i].unix_dev_units, | |
info[i].unix_devop_path, | |
info[i].perforce_proxy_path, | |
info[i].primary_contact, | |
info[i].secondary_contact, | |
info[i].num_users, | |
info[i].TC_12 | |
]; | |
// check if new columns got added: | |
if(len > 29) { | |
for(var j = 30; j < len; j++){ | |
var col = columns[j]; | |
temp.push(info[i][col]); | |
} | |
} | |
rows.push(temp); | |
} | |
return rows; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment