Class DataSourceParameter
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
ParametroOrigineDati
Accedi ai parametri delle origini dati esistenti.
Utilizza questa classe solo con dati collegati a un database.
Documentazione dettagliata
getName()
Recupera il nome del parametro.
Invio
String
: il nome del parametro.
getSourceCell()
Recupera la cella di origine in base alla quale viene valutato il parametro o null
se il tipo di parametro non è DataSourceParameterType.CELL
.
Invio
String
: la cella di origine, come specificato nella notazione A1.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 2025-07-26 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eDataSourceParameter\u003c/code\u003e class allows access to existing data source parameters, but should only be used with data connected to a database.\u003c/p\u003e\n"],["\u003cp\u003eThis class provides methods to get the parameter name (\u003ccode\u003egetName()\u003c/code\u003e), the source cell (\u003ccode\u003egetSourceCell()\u003c/code\u003e), and the parameter type (\u003ccode\u003egetType()\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eIf the parameter type is not \u003ccode\u003eDataSourceParameterType.CELL\u003c/code\u003e, \u003ccode\u003egetSourceCell()\u003c/code\u003e will return \u003ccode\u003enull\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Class DataSourceParameter\n\nDataSourceParameter\n\nAccess existing data source parameters.\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| [getName()](#getName()) | `String` | Gets the parameter name. |\n| [getSourceCell()](#getSourceCell()) | `String` | Gets the source cell the parameter is valued based on, or `null` if the parameter type is not [DataSourceParameterType.CELL](/apps-script/reference/spreadsheet/data-source-parameter-type#CELL). |\n| [getType()](#getType()) | [DataSourceParameterType](/apps-script/reference/spreadsheet/data-source-parameter-type) | Gets the parameter type. |\n\nDetailed documentation\n----------------------\n\n### `get``Name()`\n\nGets the parameter name.\n\n#### Return\n\n\n`String` --- The parameter name.\n\n*** ** * ** ***\n\n### `get``Source``Cell()`\n\nGets the source cell the parameter is valued based on, or `null` if the parameter type is\nnot [DataSourceParameterType.CELL](/apps-script/reference/spreadsheet/data-source-parameter-type#CELL).\n\n#### Return\n\n\n`String` --- The source cell, as specified in A1 notation.\n\n*** ** * ** ***\n\n### `get``Type()`\n\nGets the parameter type.\n\n#### Return\n\n\n[DataSourceParameterType](/apps-script/reference/spreadsheet/data-source-parameter-type) --- The parameter type."]]