Class DataSourceTableColumn
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
مستندات تفصيلية
getDataSourceColumn()
تحصل على عمود مصدر البيانات.
الإرجاع
DataSourceColumn
: عمود مصدر البيانات.
التفويض
تتطلّب النصوص البرمجية التي تستخدِم هذه الطريقة الحصول على إذن واحد أو أكثر من النطاقات التالية:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
remove()
تزيل هذه الدالة العمود من DataSourceTable
.
التفويض
تتطلّب النصوص البرمجية التي تستخدِم هذه الطريقة الحصول على إذن واحد أو أكثر من النطاقات التالية:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003e\u003ccode\u003eDataSourceTableColumn\u003c/code\u003e enables access and modification of existing columns within a \u003ccode\u003eDataSourceTable\u003c/code\u003e linked to a database.\u003c/p\u003e\n"],["\u003cp\u003eUse \u003ccode\u003eDataSourceTable.addColumns(columnNames)\u003c/code\u003e to add new columns to the table, instead of this class.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to retrieve the data source column (\u003ccode\u003egetDataSourceColumn()\u003c/code\u003e) and remove it from the table (\u003ccode\u003eremove()\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eBoth methods require authorization with specific scopes related to spreadsheet access.\u003c/p\u003e\n"]]],["This class manages existing columns in a DataSourceTable, which is linked to a database. Key actions include retrieving a specific column using `getDataSourceColumn()` and removing a column entirely with `remove()`. Adding new columns is done through `DataSourceTable.addColumns(columnNames)`. The methods require authorization with specific scopes related to spreadsheet access: `https://www.googleapis.com/auth/spreadsheets.currentonly` and `https://www.googleapis.com/auth/spreadsheets`. It is used with data connected to a database.\n"],null,["# Class DataSourceTableColumn\n\nDataSourceTableColumn\n\nAccess and modify an existing column in a [DataSourceTable](/apps-script/reference/spreadsheet/data-source-table). To add columns to a data\nsource table, use [DataSourceTable.addColumns(columnNames)](/apps-script/reference/spreadsheet/data-source-table#addColumns(String)).\n\n\n**Only use this class with data that's connected to a database.** \n\n### Methods\n\n| Method | Return type | Brief description |\n|-------------------------------------------------|---------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|\n| [getDataSourceColumn()](#getDataSourceColumn()) | [DataSourceColumn](/apps-script/reference/spreadsheet/data-source-column) | Gets the data source column. |\n| [remove()](#remove()) | `void` | Removes the column from the [DataSourceTable](/apps-script/reference/spreadsheet/data-source-table). |\n\nDetailed documentation\n----------------------\n\n### `get``Data``Source``Column()`\n\nGets the data source column.\n\n#### Return\n\n\n[DataSourceColumn](/apps-script/reference/spreadsheet/data-source-column) --- The data source column.\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/spreadsheets.currentonly`\n- `https://www.googleapis.com/auth/spreadsheets`\n\n*** ** * ** ***\n\n### `remove()`\n\nRemoves the column from the [DataSourceTable](/apps-script/reference/spreadsheet/data-source-table).\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/spreadsheets.currentonly`\n- `https://www.googleapis.com/auth/spreadsheets`"]]