...
...
Table Row (tr) Table Head (th)Method Summary
...
...
Divcache DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING. THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO AUTO UPDATE THE CONTENT THROUGH THE DOC GENERATOR. Enter additional information related to this 'class' inside the {div} macro with 'id=description'
...
...
true refresh 100d showRefresh true id doc title Refresh page showDate true retry Enable
servoy sReturnTypes 2 100% height: 30px; 2 Supported Clients sWordList SmartClient sWordList WebClient sWordList NGClient
servoy sSummary 12% 30% 58% height: 30px; 3 Methods Summary 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 Servoy server name.
...
...
HTML Tableid Returns whether table was flagged as metadata table.
...
function class Colgroup Tag Column Table Row (tr)style servoy sDetail Table Row (tr) Table Cell (td) Span2 100% height:30px ; Table Head (th)Method Details
Table Body (tbody)id 2 Methods Details getColumn name getColumn (name) Table Row (tr)des Table Cell (td) Divclass sIndent Returns a JSColumn for the named column (or column dataproviderID). Table Row (tr)idtd prs class Parameters
DivsIndent { String } name – The name of the column to return the value from. Table Row (tr)id ret
Table Cell (td)Returns
Divclass JSColumn – sIndent id JSColumn column. clients
Table Row (tr)Supported Clients
sIndent SmartClient,WebClient,NGClient sam
Table Cell (td) Table Row (tr) Table Cell (td) Table Body (tbody) Table Row (tr) Table Cell (td)getColumnNames
Table Row (tr) Table Cell (td) DivReturns an array containing the names of all table columns.
Table Row (tr) Table Cell (td)Returns DivString [] – String array of column names.
Table Row (tr) Table Cell (td)Sample Div Code Block
var jsTable = databaseManager.getTable('udm', 'campaigns')
var columnNames = jsTable.getColumnNames()
Table Row (tr) Table Cell (td) Table Body (tbody) Table Row (tr) Table Cell (td)getDataSource
Table Row (tr) Table Cell (td) DivReturns the table data source uri.
Table Row (tr) Table Cell (td)Returns DivString – String datasource uri.
Table Row (tr) Table Cell (td)Sample Div Code Block
var jsTable = databaseManager.getTable('udm', 'campaigns')
var dataSource = jsTable.getDataSource()
Table Row (tr) Table Cell (td) Table Body (tbody) Table Row (tr) Table Cell (td)getQuotedSQLName
Table Row (tr) Table Cell (td) DivReturns a quoted version of the table name, if necessary, as defined by the actual database used.
Table Row (tr) Table Cell (td)Returns DivString – String Sample
Div Code Block
var jsTable = databaseManager.getTable('udm', 'campaigns')
var jsColumn = jsTable.getColumn('campaign_name')
id sIdent javascript lastDetailRow getColumnNames name getColumnNames() des sIndent 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
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow getDataSource name getDataSource() des sIndent Returns the table data source uri. ret Returns
sIndent String datasource uri. clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow getQuotedSQLName name getQuotedSQLName() des sIndent 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
Table Row (tr)Supported Clients
sIndent SmartClient,WebClient,NGClient sam
Table Cell (td) Table Row (tr) Table Cell (td) Table Body (tbody)id getRowIdentifierColumnNames
Table Row (tr) Table Cell (td)getRowIdentifierColumnNames
Table Row (tr) Table Cell (td) SpangetRowIdentifierColumnNames
Table Row (tr) Table Cell (td) DivReturns an array containing the names of the identifier (PK) column(s).
Table Row (tr) Table Cell (td)Returns DivString [] – String Sample
Div Code Block
//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])
Table Row (tr) Table Cell (td) DivReturns whether table was flagged as metadata table.
Table Row (tr) Table Cell (td)Sample Div Code Block
var jsTable = databaseManager.getTable('udm', 'campaigns')
var isMetaDataTable = jsTable.isMetadataTable()
Table Row (tr)td sIdent javascript lastDetailRow getRowIdentifierColumnNames name getRowIdentifierColumnNames() des sIndent 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
Table Row (tr) Table Cell (td)Sample Div Code Block
var jsTable = databaseManager.getTable('udm', 'campaigns')
var identifierColumnNames = jsTable.getRowIdentifierColumnNames()
Table Row (tr) Table Cell (td) Table Body (tbody) Table Row (tr) Table Cell (td)getSQLName
Table Row (tr) Table Cell (td) DivReturns the table name.
Table Row (tr) Table Cell (td)Returns DivString – String table name.
Table Row (tr) Table Cell (td)Sample Div Code Block
var jsTable = databaseManager.getTable('udm', 'campaigns')
var tableNameForDisplay = jsTable.getSQLName()
Table Row (tr) Table Cell (td) Table Body (tbody) Table Row (tr) Table Cell (td)getServerName
Table Row (tr) Table Cell (td) DivReturns the Servoy server name.
Table Row (tr) Table Cell (td)Returns DivString – String server name.
Table Row (tr) Table Cell (td)Sample Div Code Block
var jsTable = databaseManager.getTable('udm', 'campaigns')
var serverName = jsTable.getServerName()
Table Row (tr) Table Cell (td) Table Body (tbody)Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow getSQLName name getSQLName() des sIndent Returns the table name. ret Returns
sIndent String table name. clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow getServerName name getServerName() des sIndent Returns the Servoy server name. ret Returns
sIndent String server name. clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow isMetadataTable name isMetadataTable() des sIndent Returns whether table was flagged as metadata table. ret Returns
sIndent boolean is metadata clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow