{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
{sub-section:description|text=}{sub-section}\\{table:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[JSColumn]{td}{td}[#getColumn]\(name)
Returns a JSColumn for the named column.{td}{tr}{tbody}{tbody}{tr}{td}[String]\[]{td}{td}[#getColumnNames]\()
Returns an array containing the names of all table columns.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getQuotedSQLName]\()
Returns a quoted version of the table name, if necessary, as defined by the actual database used.{td}{tr}{tbody}{tbody}{tr}{td}[String]\[]{td}{td}[#getRowIdentifierColumnNames]\()
Returns an array containing the names of the identifier (PK) column(s).{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getSQLName]\()
Returns the table name.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getServerName]\()
Returns the Servoy server name.{td}{tr}{tbody}{table}\\{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=288E528A-B617-4BE0-8473-558CB07B4650}{tr:id=name}{td}h6.getColumn{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSColumn]{span}{span:id=iets|style=float: left; font-weight: bold;}getColumn{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:288E528A-B617-4BE0-8473-558CB07B4650_des|text=|trigger=button}{sub-section}{sub-section:288E528A-B617-4BE0-8473-558CB07B4650_des|trigger=none|class=sIndent}
Cache
index
true
refresh
100d
showRefresh
true
id
doc
title
Refresh page
showDate
true
retry
Enable
servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientservoy sSummary12%30%58%height: 30px;3Methods SummaryReturns a JSColumn for the named column (or column dataproviderID).Returns an array containing the names of all table columns.Returns the table data source uri.Returns a quoted version of the table name, if necessary, as defined by the actual database used.Returns an array containing the names of the identifier (PK) column(s).Returns the table name.Returns the Servoy server name.Returns whether table was flagged as metadata table.functionservoy sDetail2100%height:30px2Methods DetailsgetColumnname
getColumn(name)
dessIndent
Returns a JSColumn for the named column(or column
.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:288E528A-B617-4BE0-8473-558CB07B4650_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:288E528A-B617-4BE0-8473-558CB07B4650_prs|trigger=none}name -- The name of the column to return the value from.
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:288E528A-B617-4BE0-8473-558CB07B4650_ret|text=|trigger=button}{sub-section}{sub-section:288E528A-B617-4BE0-8473-558CB07B4650_ret|trigger=none|class=sIndent}[JSColumn] -- JSColumn column.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:288E528A-B617-4BE0-8473-558CB07B4650_see|text=|trigger=button}{sub-section}{sub-section:288E528A-B617-4BE0-8473-558CB07B4650_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:288E528A-B617-4BE0-8473-558CB07B4650_see|text=|trigger=button}{sub-section}{sub-section:288E528A-B617-4BE0-8473-558CB07B4650_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:288E528A-B617-4BE0-8473-558CB07B4650_sam|text=|trigger=button}{sub-section}{sub-section:288E528A-B617-4BE0-8473-558CB07B4650_sam|class=sIndent|trigger=none}{code:language=javascript}
var jsTable = databaseManager.getTable('udm', 'campaigns')
var jsColumn = jsTable.getColumn('campaign_name')
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=1B141973-229C-4768-9399-FBFB4A9C0EEF}{tr:id=name}{td}h6.getColumnNames{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getColumnNames{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:1B141973-229C-4768-9399-FBFB4A9C0EEF_des|text=|trigger=button}{sub-section}{sub-section:1B141973-229C-4768-9399-FBFB4A9C0EEF_des|trigger=none|class=sIndent}
dataproviderID).
prs
Parameters
sIndentnameThe name of the column to return the value from.ret
Returns
sIndent JSColumn column.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetColumnNamesname
getColumnNames()
dessIndent
Returns an array containing the names of all table columns.
{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:1B141973-229C-4768-9399-FBFB4A9C0EEF_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:1B141973-229C-4768-9399-FBFB4A9C0EEF_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:1B141973-229C-4768-9399-FBFB4A9C0EEF_ret|text=|trigger=button}{sub-section}{sub-section:1B141973-229C-4768-9399-FBFB4A9C0EEF_ret|trigger=none|class=sIndent}[String]\[] -- String array of column names.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:1B141973-229C-4768-9399-FBFB4A9C0EEF_see|text=|trigger=button}{sub-section}{sub-section:1B141973-229C-4768-9399-FBFB4A9C0EEF_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:1B141973-229C-4768-9399-FBFB4A9C0EEF_see|text=|trigger=button}{sub-section}{sub-section:1B141973-229C-4768-9399-FBFB4A9C0EEF_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:1B141973-229C-4768-9399-FBFB4A9C0EEF_sam|text=|trigger=button}{sub-section}{sub-section:1B141973-229C-4768-9399-FBFB4A9C0EEF_sam|class=sIndent|trigger=none}{code:language=javascript}
var jsTable = databaseManager.getTable('udm', 'campaigns')
var columnNames = jsTable.getColumnNames()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=4808C9F0-3B52-47E3-8D38-C817ECBE6C6B}{tr:id=name}{td}h6.getQuotedSQLName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getQuotedSQLName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:4808C9F0-3B52-47E3-8D38-C817ECBE6C6B_des|text=|trigger=button}{sub-section}{sub-section:4808C9F0-3B52-47E3-8D38-C817ECBE6C6B_des|trigger=none|class=sIndent}
If the table is in mem, then the internal rowid column name is not returned.
ret
Returns
sIndent String array of column names.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetDataSourcename
getDataSource()
dessIndent
Returns the table data source uri.
ret
Returns
sIndent String datasource uri.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetQuotedSQLNamename
getQuotedSQLName()
dessIndent
Returns a quoted version of the table name, if necessary, as defined by the actual database used.
{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:4808C9F0-3B52-47E3-8D38-C817ECBE6C6B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4808C9F0-3B52-47E3-8D38-C817ECBE6C6B_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:4808C9F0-3B52-47E3-8D38-C817ECBE6C6B_ret|text=|trigger=button}{sub-section}{sub-section:4808C9F0-3B52-47E3-8D38-C817ECBE6C6B_ret|trigger=none|class=sIndent}[String] -- String table name, quoted if needed.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4808C9F0-3B52-47E3-8D38-C817ECBE6C6B_see|text=|trigger=button}{sub-section}{sub-section:4808C9F0-3B52-47E3-8D38-C817ECBE6C6B_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4808C9F0-3B52-47E3-8D38-C817ECBE6C6B_see|text=|trigger=button}{sub-section}{sub-section:4808C9F0-3B52-47E3-8D38-C817ECBE6C6B_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4808C9F0-3B52-47E3-8D38-C817ECBE6C6B_sam|text=|trigger=button}{sub-section}{sub-section:4808C9F0-3B52-47E3-8D38-C817ECBE6C6B_sam|class=sIndent|trigger=none}{code:language=javascript}
//use with the raw SQL plugin:
//if the table name contains characters that are illegal in sql, the table name will be quoted
var jsTable = databaseManager.getTable('udm', 'campaigns')
var quotedTableName = jsTable.getQuotedSQLName()
plugins.rawSQL.executeSQL('udm', quotedTableName, 'select * from ' + quotedTableName + ' where is_active = ?', [1])
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=12CD9582-2DE7-40D4-92A2-2C285071CB49}{tr:id=name}{td}h6.getRowIdentifierColumnNames{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getRowIdentifierColumnNames{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:12CD9582-2DE7-40D4-92A2-2C285071CB49_des|text=|trigger=button}{sub-section}{sub-section:12CD9582-2DE7-40D4-92A2-2C285071CB49_des|trigger=none|class=sIndent}Returns an array containing the names of the identifier (PK) column(s).{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:12CD9582-2DE7-40D4-92A2-2C285071CB49_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:12CD9582-2DE7-40D4-92A2-2C285071CB49_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:12CD9582-2DE7-40D4-92A2-2C285071CB49_ret|text=|trigger=button}{sub-section}{sub-section:12CD9582-2DE7-40D4-92A2-2C285071CB49_ret|trigger=none|class=sIndent}[String]\[] -- String array of row identifier column names.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:12CD9582-2DE7-40D4-92A2-2C285071CB49_see|text=|trigger=button}{sub-section}{sub-section:12CD9582-2DE7-40D4-92A2-2C285071CB49_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:12CD9582-2DE7-40D4-92A2-2C285071CB49_see|text=|trigger=button}{sub-section}{sub-section:12CD9582-2DE7-40D4-92A2-2C285071CB49_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:12CD9582-2DE7-40D4-92A2-2C285071CB49_sam|text=|trigger=button}{sub-section}{sub-section:12CD9582-2DE7-40D4-92A2-2C285071CB49_sam|class=sIndent|trigger=none}{code:language=javascript}
var jsTable = databaseManager.getTable('udm', 'campaigns')
var identifierColumnNames = jsTable.getRowIdentifierColumnNames()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=52A3CAEE-6AD0-493C-9796-8C6D46AD6809}{tr:id=name}{td}h6.getSQLName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getSQLName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:52A3CAEE-6AD0-493C-9796-8C6D46AD6809_des|text=|trigger=button}{sub-section}{sub-section:52A3CAEE-6AD0-493C-9796-8C6D46AD6809_des|trigger=none|class=sIndent}Returns the table name.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:52A3CAEE-6AD0-493C-9796-8C6D46AD6809_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:52A3CAEE-6AD0-493C-9796-8C6D46AD6809_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:52A3CAEE-6AD0-493C-9796-8C6D46AD6809_ret|text=|trigger=button}{sub-section}{sub-section:52A3CAEE-6AD0-493C-9796-8C6D46AD6809_ret|trigger=none|class=sIndent}[String] -- String table name.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:52A3CAEE-6AD0-493C-9796-8C6D46AD6809_see|text=|trigger=button}{sub-section}{sub-section:52A3CAEE-6AD0-493C-9796-8C6D46AD6809_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:52A3CAEE-6AD0-493C-9796-8C6D46AD6809_see|text=|trigger=button}{sub-section}{sub-section:52A3CAEE-6AD0-493C-9796-8C6D46AD6809_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:52A3CAEE-6AD0-493C-9796-8C6D46AD6809_sam|text=|trigger=button}{sub-section}{sub-section:52A3CAEE-6AD0-493C-9796-8C6D46AD6809_sam|class=sIndent|trigger=none}{code:language=javascript}
var jsTable = databaseManager.getTable('udm', 'campaigns')
var tableNameForDisplay = jsTable.getSQLName()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=9D3397CE-C8BA-4D41-9834-BC6948180AA7}{tr:id=name}{td}h6.getServerName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getServerName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:9D3397CE-C8BA-4D41-9834-BC6948180AA7_des|text=|trigger=button}{sub-section}{sub-section:9D3397CE-C8BA-4D41-9834-BC6948180AA7_des|trigger=none|class=sIndent}Returns the Servoy server name.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:9D3397CE-C8BA-4D41-9834-BC6948180AA7_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9D3397CE-C8BA-4D41-9834-BC6948180AA7_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:9D3397CE-C8BA-4D41-9834-BC6948180AA7_ret|text=|trigger=button}{sub-section}{sub-section:9D3397CE-C8BA-4D41-9834-BC6948180AA7_ret|trigger=none|class=sIndent}[String] -- String server name.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9D3397CE-C8BA-4D41-9834-BC6948180AA7_see|text=|trigger=button}{sub-section}{sub-section:9D3397CE-C8BA-4D41-9834-BC6948180AA7_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9D3397CE-C8BA-4D41-9834-BC6948180AA7_see|text=|trigger=button}{sub-section}{sub-section:9D3397CE-C8BA-4D41-9834-BC6948180AA7_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9D3397CE-C8BA-4D41-9834-BC6948180AA7_sam|text=|trigger=button}{sub-section}{sub-section:9D3397CE-C8BA-4D41-9834-BC6948180AA7_sam|class=sIndent|trigger=none}{code:language=javascript}
var jsTable = databaseManager.getTable('udm', 'campaigns')
var serverName = jsTable.getServerName()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}ret
Returns
sIndent String table name, quoted if needed.clients
Returns an array containing the names of the identifier (PK) column(s).
Please note that if the table is in mem, then the internal rowid column name is also returned.
ret
Returns
sIndent String array of row identifier column names.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetSQLNamename
getSQLName()
dessIndent
Returns the table name.
ret
Returns
sIndent String table name.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetServerNamename
getServerName()
dessIndent
Returns the Servoy server name.
ret
Returns
sIndent String server name.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowisMetadataTablename
isMetadataTable()
dessIndent
Returns whether table was flagged as metadata table.