What it does
Rules based on scripts enable you to create complex custom algorithms for document validation and normalization. The script rule is configured on the Rules tab of the (Administrator) Document Definition properties (Developer) Document Definition properties.Parameters
| Name | Type | Access | Description |
|---|---|---|---|
| Context | IRuleContext | According to the rule settings | The context of the rule |
- Connect to the data set using the IRuleContext.DataSet method.
- Create a query using the IDataSet.CreateQuery method.
- Add one or more conditions using the IDataSetQuery.AddValue method.
- Use the IDataSet.GetRecords method to get data that satisfies the query. If you need to determine how many records satisfy the query, use the IDataSet.GetRecordsCount method.
- You can get records with specific index numbers using the IRecordset.GetRecord method.
