angular-ip21

AngularJS library to access AspenTech InfoPlus21 Webservice (v >= 8)


Keywords
angularjs, angular, ip21, aspentech, infoplus21, pims, webservice, javascript
License
ISC
Install
npm install angular-ip21@1.1.3

Documentation

Angular IP21

AngularJS tiny library to access Aspentech InfoPlus21 Sql Web server.

Install

npm install --save angular-ip21

Configuration

Include the module name angular-ip21 in your angular app. For example:

angular.module('app', ['angular-ip21']);

Usage

The create function accept three parameters. The config parameter is optional

ip21SqlService.create(url, port, config)

An example of utilization:

function controller(ip21SqlService) {
    var ip21Sql = ip21SqlService.create(
        "http://hostname/ProcessData/AtProcessDataREST.dll/SQL", // url
        10014,                                                         // port
        {                                                              // config
            host: "localhost",
            adsa: "CHARINT=N;CHARFLOAT=N;CHARTIME=N;CONVERTERRORS=N"
        }
    );

    ip21Sql.executeSelect("select name, ip_input_value from ip_analogdef")
        .then(function(data) {
            ...
        });
}

Demo

To run the demo npm start