Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleAvailability

This routine is available starting with katl-commons 2.6.5.

Syntax

databaseAvailable(dbstring [, sqlstring])

...

Parameter name

Type

Required

Description

dbstring

string

yes

The datasource Datasource JNDI name or the datasource name. For JIRA Jira database, this is set to "jdbc/JiraDS" by default (, if exported).

sqlstring

string

no

The SQL string.

Return type

 boolean (true/false)

...

Code Block
languagejava
TextField=databaseAvailable("InexistentTestDB", "select pname from project");//will set `TextField` value to `false`, because the database resource does not exist

Notes

Note

To see how you should configure the data source , check the corresponding configuration chapter: SQL data sources configuration chapter.

 

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "sql_support"
labelssql_support

...