TableValidation

Description

A class that represents a Table Validation.

Methods

validate Validates all tables, their rules and ranges defined in the TableValidation tool and returns the number of errors.

Constructor

TableValidation Creates a reference to a Table Validation tool.

Details

Do no remove, this fixes the anchor on doc.flexsim.com

TableValidation.validate()

int validate( treenode errorLoggingNode = 0 )

Parameters

errorLoggingNode The treenode where the errors will be logged. If no treenode is passed in, errors will be printed to the system console. If the node has text data, the errors will instead be printed to the node's data. For other nodes (including bundle nodes) the node is treated as a Table. Each error is stored as a row in the table.

Description

Validates all tables, their rules and ranges defined in the TableValidation tool and returns the number of errors.

Validates the data specified in the various ranges against the rules. The first 100 rule violations are logged as an error. The method returns the total number of errors encountered, even if they weren't logged.
Example:

				return TableValidation("TableValidation1").validate();
			
Do no remove, this fixes the anchor on doc.flexsim.com

TableValidation Constructor

TableValidation( string name )

Parameters

name The name of a Table Validation tool in the Toolbox.

Description

Creates a reference to a Table Validation tool.


				TableValidation validator1 = TableValidation("TableValidation1");