SchemaClientBusinessRuleScript

Overview

The SchemaClientBusinessRuleScript provides the Business Rules Scripts class which defines specific rules and actions to validate data input, without having to hard-code this logic into the client and server application.

With Business Rules Scripts, the server can provide the business logic in form of JavaScript language as part of the schema, which will then be executed on the server and client side.

See more about Scripting at Business Rules Scripting Overview.

Location


 

constructor

Creates new instance of SchemaClientBusinessRuleScript class.

 

constructor

 

SchemaClientBusinessRuleScript()

 

Sub New()

constructor (String, INameChangeNotification)

 

constructor(name: String; notification: INameChangeNotification)

 

SchemaClientBusinessRuleScript(String name, INameChangeNotification notification)

 

Sub New(name As String, notification As INameChangeNotification)

Parameters:

  • name:
  • notification:

Clone

Creates and returns an identical copy of the SchemaClientBusinessRuleScript object.

 

method Clone: Object

 

Object Clone()

 

Function Clone() As Object

CloneFrom

Creates an identical copy of the SchemaClientBusinessRuleScript object and assigns it with current instance.

 

method CloneFrom(aSource: Object)

 

void CloneFrom(Object aSource)

 

Sub CloneFrom(aSource As Object)

Parameters:

  • aSource: Specified SchemaClientBusinessRuleScript object to clone from.

CompileOnServer

Determines whether the script is compiled on the server side.

 

property CompileOnServer: Boolean read write;

 

Boolean CompileOnServer { get; set; }

 

Property CompileOnServer() As Boolean

RunOnClientAndServer

Determines whether the script is run on the client and server side.

 

property RunOnClientAndServer: Boolean read write;

 

Boolean RunOnClientAndServer { get; set; }

 

Property RunOnClientAndServer() As Boolean

Script    (declared in SchemaBusinessRuleScript)

Gets or sets Business Rules Script source code.

 

property Script: String read write;

 

String Script { get; set; }

 

Property Script() As String

ScriptLanguageStr    (declared in SchemaBusinessRuleScript)

Gets or sets name of the scripting language used in the {bold|Script} script.

IScriptProvider uses value of this property to determine is it able to

 

property ScriptLanguageStr: String read write;

 

String ScriptLanguageStr { get; set; }

 

Property ScriptLanguageStr() As String

 

CompileOnServer

Determines whether the script is compiled on the server side.

 

property CompileOnServer: Boolean read write;

 

Boolean CompileOnServer { get; set; }

 

Property CompileOnServer() As Boolean

RunOnClientAndServer

Determines whether the script is run on the client and server side.

 

property RunOnClientAndServer: Boolean read write;

 

Boolean RunOnClientAndServer { get; set; }

 

Property RunOnClientAndServer() As Boolean

Script    (declared in SchemaBusinessRuleScript)

Gets or sets Business Rules Script source code.

 

property Script: String read write;

 

String Script { get; set; }

 

Property Script() As String

ScriptLanguageStr    (declared in SchemaBusinessRuleScript)

Gets or sets name of the scripting language used in the {bold|Script} script.

IScriptProvider uses value of this property to determine is it able to

 

property ScriptLanguageStr: String read write;

 

String ScriptLanguageStr { get; set; }

 

Property ScriptLanguageStr() As String

 

constructor

Creates new instance of SchemaClientBusinessRuleScript class.

 

constructor

 

SchemaClientBusinessRuleScript()

 

Sub New()

constructor (String, INameChangeNotification)

 

constructor(name: String; notification: INameChangeNotification)

 

SchemaClientBusinessRuleScript(String name, INameChangeNotification notification)

 

Sub New(name As String, notification As INameChangeNotification)

Parameters:

  • name:
  • notification:

Clone

Creates and returns an identical copy of the SchemaClientBusinessRuleScript object.

 

method Clone: Object

 

Object Clone()

 

Function Clone() As Object

CloneFrom

Creates an identical copy of the SchemaClientBusinessRuleScript object and assigns it with current instance.

 

method CloneFrom(aSource: Object)

 

void CloneFrom(Object aSource)

 

Sub CloneFrom(aSource As Object)

Parameters:

  • aSource: Specified SchemaClientBusinessRuleScript object to clone from.