{"id":23936651,"url":"https://github.com/tichavich/devweb-googleappscript","last_synced_at":"2026-03-02T05:30:54.816Z","repository":{"id":242549506,"uuid":"661233586","full_name":"tichavich/DevWeb-GoogleAppScript","owner":"tichavich","description":"Module GoogleAppScript for Google Sheet","archived":false,"fork":false,"pushed_at":"2024-06-03T16:22:22.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T02:50:56.248Z","etag":null,"topics":["api","appscript","google","googleappscripts","googlesheets","googlesheetsapi"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tichavich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-02T07:54:12.000Z","updated_at":"2024-06-03T16:22:26.000Z","dependencies_parsed_at":"2024-06-03T18:38:44.932Z","dependency_job_id":null,"html_url":"https://github.com/tichavich/DevWeb-GoogleAppScript","commit_stats":null,"previous_names":["tichavich/devweb-googleappscript"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tichavich/DevWeb-GoogleAppScript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tichavich%2FDevWeb-GoogleAppScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tichavich%2FDevWeb-GoogleAppScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tichavich%2FDevWeb-GoogleAppScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tichavich%2FDevWeb-GoogleAppScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tichavich","download_url":"https://codeload.github.com/tichavich/DevWeb-GoogleAppScript/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tichavich%2FDevWeb-GoogleAppScript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29993376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","appscript","google","googleappscripts","googlesheets","googlesheetsapi"],"created_at":"2025-01-06T01:15:13.236Z","updated_at":"2026-03-02T05:30:54.802Z","avatar_url":"https://github.com/tichavich.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DevWeb-GoogleAppScript\n### DevWeb-GoogleAppScript คืออะไร\nเป็นโปรเจคที่สร้างขึ้นมาใช้สำหรับเช็คการเข้าทำงานหรือเข้าร่วมกิจกรรมของบริษัท โดยสร้างเขียน Google AppScript สร้างเป็นหน้าเว็บไซต์และเชื่อมต่อกับ GoogleSheet API เพือใช้เก็บข้อมูล\n### ฟังก์ชั่นที่ทำงานร่วมกับ GoogleSheet\n1. CreateDataSet ฟังก์ชั่นเขียนข้อมูล ต่อจาก Record ล่าสุด\n    function :\n    ```\n    CreateDataSet=(sheet_index,data)=\u003e{\n       let conSheet = SpreadsheetApp.openById(APPCONFIG.IDConnectSheet);\n       let selectSheet = conSheet.getSheetByName(APPCONFIG.sheetName[sheet_index]);\n       selectSheet.appendRow(data);\n    };\n    ```\n3. ReadDataOnceforCell ฟังก์ชั่นอ่านค่าข้อมูล โดยระบุตำแหน่งการเข้าถึงช่องเซลล์ เช่น A15 B26\n    function :\n    ```\n    const ReadDataOnceforCell=(sheet_index,cell_name)=\u003e{\n       let conSheet = SpreadsheetApp.openById(APPCONFIG.IDConnectSheet);\n       let selectSheet = conSheet.getSheetByName(APPCONFIG.sheetName[sheet_index]);\n       return selectSheet.getRange(cell_name).getValue();\n    };\n    ```\n5. ReadDataOnceforRowCol ฟังก์ชั่นอ่านค่าข้อมูล โดยระบุเป็นตัวเลขตำแหน่งแนวแถวและแนวคอลัมน์ เช่น ReadDataOnceforRowCol(1,5) 1 = ตำแหน่งแถว, 8 = ตำแหน่งคอลัมน์ ถ้าเป็นช่องเซลล์ก็เป็น H1\n    function :\n    ```\n    const ReadDataOnceforRowCol=(sheet_index,row_num,col_num)=\u003e{\n      let conSheet = SpreadsheetApp.openById(APPCONFIG.IDConnectSheet);\n      let selectSheet = conSheet.getSheetByName(APPCONFIG.sheetName[sheet_index]);    \n      return selectSheet.getRange(row_num,col_num).getValue();\n    };\n    ```\n7. ReadDataOnceforRangeRowCol ฟังก์ชั่นอ่านค่าข้อมูล โดยระบุเป็นตัวเลขตำแหน่งแนวแถวและแนวคอลัมน์ กำหนดช่วงข้อมูล เช่น (1 = row,3 = column,5 = row,8 = column) ถ้าเป็นช่วงเซลล์ก็เป็น C1:H5\n    function :\n    ```\n    const ReadDataOnceforRangeRowCol=(sheet_index,row,col,numRow,numCol)=\u003e{\n      let conSheet = SpreadsheetApp.openById(APPCONFIG.IDConnectSheet);\n      let selectSheet = conSheet.getSheetByName(APPCONFIG.sheetName[sheet_index]);    \n      return selectSheet.getRange(row,col,numRow,numCol).getValues();\n    };\n    ```\n9. ReadDataAll ฟังก์ชั่นอ่านค่าข้อมูลทั้งหมดที่อยุ่ใน Sheet\n    function :\n    ```\n     const ReadDataAll=(sheet_index)=\u003e{\n      let conSheet = SpreadsheetApp.openById(APPCONFIG.IDConnectSheet);\n      let selectSheet = conSheet.getSheetByName(APPCONFIG.sheetName[sheet_index]);\n      return selectSheet.getDataRange().getValues();\n    };\n    ```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftichavich%2Fdevweb-googleappscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftichavich%2Fdevweb-googleappscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftichavich%2Fdevweb-googleappscript/lists"}