Class JSDataReader
Jurassic class for exposing WMDataReader functionality to javascript called in a decision model.
Inherited Members
Namespace: Quantellia.WMServer.Execution.Model.JS
Assembly: WMServer.dll
Syntax
public class JSDataReader : ObjectInstance
Constructors
JSDataReader(ObjectInstance)
Jurassic constructor.
Declaration
public JSDataReader(ObjectInstance prototype)
Parameters
| Type | Name | Description |
|---|---|---|
| ObjectInstance | prototype |
Properties
Action
The action that dictates what a query returns
Declaration
[JSProperty]
public string Action { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
DataSourceDirectory
The directory of this reader's data source.
Declaration
[JSProperty]
public string DataSourceDirectory { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
FullPathName
The FullPathName of the dataReader represented by this class.
Declaration
[JSProperty]
public string FullPathName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Name
The name of the datasource represented by this class.
Declaration
[JSProperty]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SourceString
The query contained by this reader
Declaration
[JSProperty]
public string SourceString { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UserID
The UserID of the principal calling WMClass methods.
Declaration
public string UserID { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UserType
The UserType of the principal calling WMClass methods.
Declaration
public string UserType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
DataSource()
Returns a data reader's data source. Call this function in javascript on a JSDataReader instance with, ".dataSource()".
Declaration
[JSFunction(Name = "dataSource")]
public JSDataSource DataSource()
Returns
| Type | Description |
|---|---|
| JSDataSource | A JSDataSource object for use in javascript. |
Evaluate()
Exposes the ability to execute a data reader in javascript from a decision model. Call this function in javascript on a JSDataSource instance with, ".evaluate(...)".
Declaration
[JSFunction(Name = "evaluate")]
public object Evaluate()
Returns
| Type | Description |
|---|---|
| object | A javascript array of bag of values objects representing the returned table, a native javascript value, such as a string or number, or null. |
Evaluate(ObjectInstance)
Exposes the ability to execute a data reader in javascript from a decision model. Call this function in javascript on a JSDataSource instance with, ".evaluate(...)".
Declaration
[JSFunction(Name = "evaluate")]
public object Evaluate(ObjectInstance parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| ObjectInstance | parameters | The parameters to be passed into the reader represented as a javascript bag of values. Do not pass null into this parameter. If there are no parameters to be passed then utilize the parameterless version of this method. |
Returns
| Type | Description |
|---|---|
| object | A javascript array of bag of values objects representing the returned table, a native javascript value, such as a string or number, or null. |