A Data Connector connects a Verj.io application to an external web service. It provides a simple JavaScript API that can be used by server-side events to interact with that service.
A Data Connector can be added to your Workspace by right-clicking on a Folder or Project in the Entity Tree and selecting New > Data Connector from the context menu.
This opens a Create New Data Connector dialog. You can choose to create a new Data Connector or download one from the Resource Hub.
Creating a new Data Connector
A new Data Connector can be created by entering a name and clicking OK.
A Data Connector containing an initial code template is added to your Workspace that can be modified to connect to a REST web service. See Creating Your Own Data Connector for more information.
Functions added to a Data Connector are accessible to all server-side events in any Form it is added to. Functions can be called via connectors.dataconnectors.<data_connector_name>
, for example, connectors.dataconnectors.myDataConnector.myFunction();
. See Using a Data Connector for more information.
Downloading a Data Connector
To download a Data Connector, select it and click OK. A description is shown for the selected Data Connector and more information is available in the Resource Hub, including instructions on how use it.