DASchemaClientBusinessRuleScript
Overview
The DASchemaClientBusinessRuleScript 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 .
Location
- Reference: DASchemaClientBusinessRuleScript.h
- Namespace: DataAbstract
- Ancestry: NSObject | DASchemaBaseObject | DASchemaServerBusinessRuleScript | DASchemaClientBusinessRuleScript
initWithName: (declared in DASchemaBaseObject)
Initializes a new instance of the class with a given name.
- (id) initWithName:(NSString *)aName
Parameters:
- aName:
initWithXml: (declared in DASchemaBaseObject)
Initializes a new instance of the class with a given XML string. Here, the XML string is the XML node from the Schema XML file that represents a certain schema object, for example the Schema Data Table or Schema Parameter. In most cases you will not need to invoke this method directly on the DASchemaBaseObject. This method is overridden in descendant classes (for example in the DASchemaDataTable) where it can be used for deserializing schema XML into a schema object.
- (id) initWithXml:(NSString *)anXml
Parameters:
- anXml:
name retain (declared in DASchemaBaseObject)
Represents the name of the schema object. Name is a mandatory property and an exception will be raised if its value is nil or empty. Only alpha-numeric characters are allowed in the Name value.
@property (retain) NSString *name
note retain (declared in DASchemaBaseObject)
Description for schema object
@property (retain) NSString *note
runOnClientAndServer assign
Determines whether the script is run on the client and server side.
@property (assign) BOOL runOnClientAndServer
script retain (declared in DASchemaServerBusinessRuleScript)
Gets or sets Business Rules Script source code.
@property (retain) NSString *script
scriptLanguage retain (declared in DASchemaServerBusinessRuleScript)
Gets or sets the name of the scripting language used in the {bold|Script} property.
@property (retain) NSString *scriptLanguage
name retain (declared in DASchemaBaseObject)
Represents the name of the schema object. Name is a mandatory property and an exception will be raised if its value is nil or empty. Only alpha-numeric characters are allowed in the Name value.
@property (retain) NSString *name
note retain (declared in DASchemaBaseObject)
Description for schema object
@property (retain) NSString *note
runOnClientAndServer assign
Determines whether the script is run on the client and server side.
@property (assign) BOOL runOnClientAndServer
script retain (declared in DASchemaServerBusinessRuleScript)
Gets or sets Business Rules Script source code.
@property (retain) NSString *script
scriptLanguage retain (declared in DASchemaServerBusinessRuleScript)
Gets or sets the name of the scripting language used in the {bold|Script} property.
@property (retain) NSString *scriptLanguage
initWithName: (declared in DASchemaBaseObject)
Initializes a new instance of the class with a given name.
- (id) initWithName:(NSString *)aName
Parameters:
- aName:
initWithXml: (declared in DASchemaBaseObject)
Initializes a new instance of the class with a given XML string. Here, the XML string is the XML node from the Schema XML file that represents a certain schema object, for example the Schema Data Table or Schema Parameter. In most cases you will not need to invoke this method directly on the DASchemaBaseObject. This method is overridden in descendant classes (for example in the DASchemaDataTable) where it can be used for deserializing schema XML into a schema object.
- (id) initWithXml:(NSString *)anXml
Parameters:
- anXml:
See Also
- SchemaBusinessRuleScript