Search

User Manual

GETTING STARTED


MODULES AND PLATFORM


APPENDIX


TUTORIALS & HELPFUL TRICKS


GLOSSARY


STRATEGIC PARTNER LINKS

Sepasoft - MES Modules
Cirrus Link - MQTT Modules

RESOURCES

Inductive University
Ignition Demo Project
Knowledge Base Articles
Forum
IA Support
SDK Documentation
SDK Examples

ALL MANUAL VERSIONS

Ignition 8
Ignition 7.9
Ignition 7.8

Deprecated Pages

Skip to end of metadata
Go to start of metadata

This function is used by Ignition's Expression language.

Description

This function is only available in Transaction Group Expression Items and Expression Tags.

Checks if the given database connection is available. Will use the default for that scope if none is specified.

Syntax

isDBConnectionAvailable([datasource])

  • Parameters

string datasource - Optional. The name of the database connection to check if available. If omitted, will return the default database connection for the nearest resource, based on where the function is being called from.

Common locations where the function can be called from:

  • Somewhere on a tag(i.e., Expression Tags): The default database connection for the Tag Provider
  • Somewhere in a project (i.e., Expression Binding): The default database connection for the Project.
  • Results

Bool - True if the database connection is available, False if not.

Examples
Code Snippet
isDBConnectionAvailable("MySQLConnection") //would return true when the database connection was valid.