Child pages
  • JSTableObject

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
{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}[#createNewColumn]\(columnName, type, length, allowNull, pkColumn) Creates a new column in this table.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#deleteColumn]\(columnName) Deletes the column with the specified name from this table.{td}{tr}{tbody}{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=C7A3F129-D1E8-47A0-AC16-C135EA0B0BF1}{tr:id=name}{td}h6.createNewColumn{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSColumn]{span}{span:id=iets|style=float: left; font-weight: bold;}createNewColumn{span}{span:id=iets|style=float: left;}\(columnName, type, length, allowNull, pkColumn){span}{td}{tr}{tr:id=des}{td}{sub-section:C7A3F129-D1E8-47A0-AC16-C135EA0B0BF1_des|text=|trigger=button}{sub-section}{sub-section:C7A3F129-D1E8-47A0-AC16-C135EA0B0BF1_des|trigger=none|class=sIndent}Creates a new column in this table. The name, type and length of the new column must be specified. For specifying the type of the column, use the JSColumn constants. The column is not actually created in the database until this table is synchronized with the database using the JSServer.synchronizeWithDB method. The "allowNull" optional argument specifies if the column accepts null values (by default it does). The "pkColumn" optional argument specifies if the column is a primary key column (by default it is not).
Wiki Markup
Cache
indextrue
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClient

servoy sSummary12%30%58%height: 30px;3Methods SummaryCreates a new column in this table.Creates a new column in this table.Creates a new column in this table.voidDeletes the column with the specified name from this table.Returns 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 DetailscreateNewColumnname

createNewColumn(columnName, type, length)

dessIndent
Creates a new column in this table. The name, type and length of the new column must be specified. For specifying the
type of the column, use the JSColumn constants. The column is not actually created in the database until this
table is synchronized with the database using the JSServer.synchronizeWithDB method.

The method returns a JSColumn instance that corresponds to the newly created column. If any error occurs and the column cannot be created, then the method
returns null.
prs

Parameters

sIndentcolumnName ;type ;length ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRowcreateNewColumnname

createNewColumn(columnName, type, length, allowNull)

dessIndent
Creates a new column in this table. The name, type and length of the new column must be specified. For specifying the
type of the column, use the JSColumn constants. The column is not actually created in the database until this
table is synchronized with the database using the JSServer.synchronizeWithDB method.

The method returns a JSColumn instance that corresponds to the newly created column. If any error occurs and the column cannot be created, then the method
returns null.
prs

Parameters

sIndentcolumnName ;type ;length ;allowNull ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
createNewColumnname

createNewColumn(columnName, type, length, allowNull, pkColumn)

dessIndent
Creates a new column in this table. The name, type and length of the new column must be specified. For specifying the
type of the column, use the JSColumn constants. The column is not actually created in the database until this
table is synchronized with the database using the JSServer.synchronizeWithDB method.

The method returns a JSColumn instance that corresponds to the newly created column. If any error occurs and the column cannot be created, then the method
returns null.
{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:C7A3F129-D1E8-47A0-AC16-C135EA0B0BF1_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C7A3F129-D1E8-47A0-AC16-C135EA0B0BF1_prs|trigger=none}columnName type length allowNull pkColumn {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:C7A3F129-D1E8-47A0-AC16-C135EA0B0BF1_ret|text=|trigger=button}{sub-section}{sub-section:C7A3F129-D1E8-47A0-AC16-C135EA0B0BF1_ret|trigger=none|class=sIndent}[JSColumn]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C7A3F129-D1E8-47A0-AC16-C135EA0B0BF1_see|text=|trigger=button}{sub-section}{sub-section:C7A3F129-D1E8-47A0-AC16-C135EA0B0BF1_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C7A3F129-D1E8-47A0-AC16-C135EA0B0BF1_see|text=|trigger=button}{sub-section}{sub-section:C7A3F129-D1E8-47A0-AC16-C135EA0B0BF1_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C7A3F129-D1E8-47A0-AC16-C135EA0B0BF1_sam|text=|trigger=button}{sub-section}{sub-section:C7A3F129-D1E8-47A0-AC16-C135EA0B0BF1_sam|class=sIndent|trigger=none}{code:language=javascript} var server = plugins.maintenance.getServer("example_data"); if (server) { var table = server.createNewTable("users"); if (table) { table.createNewColumn("id", JSColumn.INTEGER, 0, false, true); table.createNewColumn("name", JSColumn.TEXT, 100); table.createNewColumn("age", JSColumn.INTEGER, 0); table.createNewColumn("last_login", JSColumn.DATETIME, 0); var result = server.synchronizeWithDB(table); if (result) application.output("Table successfully created."); else application.output("Table not created."); } } {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=FBA04064-75DC-4CA8-ABFD-5EEC11BA7580}{tr:id=name}{td}h6.deleteColumn{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}deleteColumn{span}{span:id=iets|style=float: left;}\(columnName){span}{td}{tr}{tr:id=des}{td}{sub-section:FBA04064-75DC-4CA8-ABFD-5EEC11BA7580_des|text=|trigger=button}{sub-section}{sub-section:FBA04064-75DC-4CA8-ABFD-5EEC11BA7580_des|trigger=none|class=sIndent}Deletes the column with the specified name from this table. The column is not actually deleted from the database until this table is synchronized with the database using the JSServer.synchronizeWithDB method.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:FBA04064-75DC-4CA8-ABFD-5EEC11BA7580_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FBA04064-75DC-4CA8-ABFD-5EEC11BA7580_prs|trigger=none}columnName {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:FBA04064-75DC-4CA8-ABFD-5EEC11BA7580_ret|text=|trigger=button}{sub-section}{sub-section:FBA04064-75DC-4CA8-ABFD-5EEC11BA7580_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:FBA04064-75DC-4CA8-ABFD-5EEC11BA7580_see|text=|trigger=button}{sub-section}{sub-section:FBA04064-75DC-4CA8-ABFD-5EEC11BA7580_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:FBA04064-75DC-4CA8-ABFD-5EEC11BA7580_see|text=|trigger=button}{sub-section}{sub-section:FBA04064-75DC-4CA8-ABFD-5EEC11BA7580_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:FBA04064-75DC-4CA8-ABFD-5EEC11BA7580_sam|text=|trigger=button}{sub-section}{sub-section:FBA04064-75DC-4CA8-ABFD-5EEC11BA7580_sam|class=sIndent|trigger=none}{code:language=javascript} var server = plugins.maintenance.getServer("example_data"); if (server) { var table = server.getTable("users"); if (table) { table.deleteColumn("last_login"); server.synchronizeWithDB(table); } } {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F130AE00-83B7-42CD-9743-099A9B6D0285}{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:F130AE00-83B7-42CD-9743-099A9B6D0285_des|text=|trigger=button}{sub-section}{sub-section:F130AE00-83B7-42CD-9743-099A9B6D0285_des|trigger=none|class=sIndent}Returns a JSColumn for the named column.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:F130AE00-83B7-42CD-9743-099A9B6D0285_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F130AE00-83B7-42CD-9743-099A9B6D0285_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:F130AE00-83B7-42CD-9743-099A9B6D0285_ret|text=|trigger=button}{sub-section}{sub-section:F130AE00-83B7-42CD-9743-099A9B6D0285_ret|trigger=none|class=sIndent}[JSColumn] -- JSColumn column.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F130AE00-83B7-42CD-9743-099A9B6D0285_see|text=|trigger=button}{sub-section}{sub-section:F130AE00-83B7-42CD-9743-099A9B6D0285_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F130AE00-83B7-42CD-9743-099A9B6D0285_see|text=|trigger=button}{sub-section}{sub-section:F130AE00-83B7-42CD-9743-099A9B6D0285_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F130AE00-83B7-42CD-9743-099A9B6D0285_sam|text=|trigger=button}{sub-section}{sub-section:F130AE00-83B7-42CD-9743-099A9B6D0285_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=0C240B35-3191-4AEF-9408-24FC7E0BE5DF}{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:0C240B35-3191-4AEF-9408-24FC7E0BE5DF_des|text=|trigger=button}{sub-section}{sub-section:0C240B35-3191-4AEF-9408-24FC7E0BE5DF_des|trigger=none|class=sIndent}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:0C240B35-3191-4AEF-9408-24FC7E0BE5DF_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0C240B35-3191-4AEF-9408-24FC7E0BE5DF_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:0C240B35-3191-4AEF-9408-24FC7E0BE5DF_ret|text=|trigger=button}{sub-section}{sub-section:0C240B35-3191-4AEF-9408-24FC7E0BE5DF_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:0C240B35-3191-4AEF-9408-24FC7E0BE5DF_see|text=|trigger=button}{sub-section}{sub-section:0C240B35-3191-4AEF-9408-24FC7E0BE5DF_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0C240B35-3191-4AEF-9408-24FC7E0BE5DF_see|text=|trigger=button}{sub-section}{sub-section:0C240B35-3191-4AEF-9408-24FC7E0BE5DF_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0C240B35-3191-4AEF-9408-24FC7E0BE5DF_sam|text=|trigger=button}{sub-section}{sub-section:0C240B35-3191-4AEF-9408-24FC7E0BE5DF_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=59557D39-4383-4383-BD81-61D16B034FD7}{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:59557D39-4383-4383-BD81-61D16B034FD7_des|text=|trigger=button}{sub-section}{sub-section:59557D39-4383-4383-BD81-61D16B034FD7_des|trigger=none|class=sIndent}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:59557D39-4383-4383-BD81-61D16B034FD7_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:59557D39-4383-4383-BD81-61D16B034FD7_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:59557D39-4383-4383-BD81-61D16B034FD7_ret|text=|trigger=button}{sub-section}{sub-section:59557D39-4383-4383-BD81-61D16B034FD7_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:59557D39-4383-4383-BD81-61D16B034FD7_see|text=|trigger=button}{sub-section}{sub-section:59557D39-4383-4383-BD81-61D16B034FD7_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:59557D39-4383-4383-BD81-61D16B034FD7_see|text=|trigger=button}{sub-section}{sub-section:59557D39-4383-4383-BD81-61D16B034FD7_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:59557D39-4383-4383-BD81-61D16B034FD7_sam|text=|trigger=button}{sub-section}{sub-section:59557D39-4383-4383-BD81-61D16B034FD7_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=3E7C6341-D838-4461-8F71-045CA3E91E24}{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:3E7C6341-D838-4461-8F71-045CA3E91E24_des|text=|trigger=button}{sub-section}{sub-section:3E7C6341-D838-4461-8F71-045CA3E91E24_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:3E7C6341-D838-4461-8F71-045CA3E91E24_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3E7C6341-D838-4461-8F71-045CA3E91E24_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:3E7C6341-D838-4461-8F71-045CA3E91E24_ret|text=|trigger=button}{sub-section}{sub-section:3E7C6341-D838-4461-8F71-045CA3E91E24_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:3E7C6341-D838-4461-8F71-045CA3E91E24_see|text=|trigger=button}{sub-section}{sub-section:3E7C6341-D838-4461-8F71-045CA3E91E24_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3E7C6341-D838-4461-8F71-045CA3E91E24_see|text=|trigger=button}{sub-section}{sub-section:3E7C6341-D838-4461-8F71-045CA3E91E24_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3E7C6341-D838-4461-8F71-045CA3E91E24_sam|text=|trigger=button}{sub-section}{sub-section:3E7C6341-D838-4461-8F71-045CA3E91E24_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=0E414A2A-3189-45D6-8019-84D4DC69D588}{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:0E414A2A-3189-45D6-8019-84D4DC69D588_des|text=|trigger=button}{sub-section}{sub-section:0E414A2A-3189-45D6-8019-84D4DC69D588_des|trigger=none|class=sIndent}Returns the table name.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:0E414A2A-3189-45D6-8019-84D4DC69D588_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0E414A2A-3189-45D6-8019-84D4DC69D588_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:0E414A2A-3189-45D6-8019-84D4DC69D588_ret|text=|trigger=button}{sub-section}{sub-section:0E414A2A-3189-45D6-8019-84D4DC69D588_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:0E414A2A-3189-45D6-8019-84D4DC69D588_see|text=|trigger=button}{sub-section}{sub-section:0E414A2A-3189-45D6-8019-84D4DC69D588_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0E414A2A-3189-45D6-8019-84D4DC69D588_see|text=|trigger=button}{sub-section}{sub-section:0E414A2A-3189-45D6-8019-84D4DC69D588_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0E414A2A-3189-45D6-8019-84D4DC69D588_sam|text=|trigger=button}{sub-section}{sub-section:0E414A2A-3189-45D6-8019-84D4DC69D588_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=52E5FC4C-9BB2-4155-82D6-273F91317EFE}{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:52E5FC4C-9BB2-4155-82D6-273F91317EFE_des|text=|trigger=button}{sub-section}{sub-section:52E5FC4C-9BB2-4155-82D6-273F91317EFE_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:52E5FC4C-9BB2-4155-82D6-273F91317EFE_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:52E5FC4C-9BB2-4155-82D6-273F91317EFE_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:52E5FC4C-9BB2-4155-82D6-273F91317EFE_ret|text=|trigger=button}{sub-section}{sub-section:52E5FC4C-9BB2-4155-82D6-273F91317EFE_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:52E5FC4C-9BB2-4155-82D6-273F91317EFE_see|text=|trigger=button}{sub-section}{sub-section:52E5FC4C-9BB2-4155-82D6-273F91317EFE_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:52E5FC4C-9BB2-4155-82D6-273F91317EFE_see|text=|trigger=button}{sub-section}{sub-section:52E5FC4C-9BB2-4155-82D6-273F91317EFE_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:52E5FC4C-9BB2-4155-82D6-273F91317EFE_sam|text=|trigger=button}{sub-section}{sub-section:52E5FC4C-9BB2-4155-82D6-273F91317EFE_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}
prs

Parameters

sIndentcolumnName ;type ;length ;allowNull ;pkColumn ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRowdeleteColumnname

deleteColumn(columnName)

dessIndent
Deletes the column with the specified name from this table. The column is not actually deleted from the database until this
table is synchronized with the database using the JSServer.synchronizeWithDB method.
prs

Parameters

sIndentcolumnName ;
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getColumnname

getColumn(name)

dessIndent
Returns a JSColumn for the named column (or column dataproviderID).
prs

Parameters

sIndentnameThe name of the column to return the value from.
ret

Returns

sIndent JSColumn column.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getColumnNamesname

getColumnNames()

dessIndent
Returns an array containing the names of all table columns.
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,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getDataSourcename

getDataSource()

dessIndent
Returns the table data source uri.
ret

Returns

sIndent String datasource uri.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getQuotedSQLNamename

getQuotedSQLName()

dessIndent
Returns a quoted version of the table name, if necessary, as defined by the actual database used.
ret

Returns

sIndent String table name, quoted if needed.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getRowIdentifierColumnNamesname

getRowIdentifierColumnNames()

dessIndent
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,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getSQLNamename

getSQLName()

dessIndent
Returns the table name.
ret

Returns

sIndent String table name.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getServerNamename

getServerName()

dessIndent
Returns the Servoy server name.
ret

Returns

sIndent String server name.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
isMetadataTablename

isMetadataTable()

dessIndent
Returns whether table was flagged as metadata table.
ret

Returns

sIndent boolean is metadata
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow