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
| function rename() { | |
| //Get AMS Root Folder | |
| amsFolder = DocsList.getFolder("Appraisal Management System"); | |
| //Get Array of Departmental Folders | |
| deptFolders = amsFolder.getFolders(); | |
| //Loop through Departmental Folders | |
| for (i=0;i<deptFolders.length;i++){ |
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
| // This the initial app screen | |
| function doGet() { | |
| //create the application | |
| var app = UiApp.createApplication(); | |
| //create the vertical panel to hold widgets | |
| var vp = app.createVerticalPanel().setId('vp'); | |
| //style the vertial panel | |
| vp.setBorderWidth(5).setStyleAttribute("border-color", "maroon").setStyleAttribute("font-weight", "bold"); |
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
| function sendEmail(e) { | |
| //open the spreadsheet and get the email sheet | |
| ss = SpreadsheetApp.openById("0AuD3WXC51A9gdGVScnVlVVNNZkxFZnlSdTZBVHVNUFE") | |
| sheet = ss.getSheetByName("emails"); | |
| //read the data into an array | |
| emailArray = sheet.getDataRange().getValues(); | |
| //get the teacher name from the form submission. | |
| name = e.values[5]; | |
| //loop through the array of names and email addresses |
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
| function weightClass() { | |
| //Establish Spreadsheet | |
| var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
| //Establish Sheet | |
| var sheet = ss.getActiveSheet(); | |
| //Get the cell being edited | |
| var cell = sheet.getActiveCell(); | |
| //Get the indeces of the cell being edited | |
| var row = cell.getRowIndex(); |