TableEditFormPlugIn plugins
- Last UpdatedApr 24, 2025
- 1 minute read
The TableEditFormPlugIn element is nested under the DataSetTable element. If the ApplyFieldRules attribute in the XML file is set to true, you can use the TableEditFormPlugIn element to specify constraints for the Table Edit form.
Note: The TableEditFormPlugIn element definition must come before the RowEditFormPlugin element definition; otherwise, the system will generate an error and fail to compile the Advanced Database Editor (ADE) form.
Important
-
Modifications to plugins within the definition files do not take effect until ADE is restarted. There is no need to compile the changes.
-
If both the RowEditFormPlugIn and TableEditFormPlugIn plugins are used in an XML file, you must define the TableEditFormPlugIn plugin before the RowEditFormPlugIn plugin. Otherwise, the system will generate an error message saying that TableEditFormPlugIn is not supported when running the DBEditDisplaySchemaMerge command.
The following code will not compile.
<DataSetTable
Name="farms"
.
DataDisplayWidthMax="300">
<RowEditFormPlugIn Name="CompareValuesRowEdit" Args="iengr_@rawmax >= oengr_@rawmax, iengr_@rawmax > iengr_@rawmin, oengr_@rawmax > oengr_@rawmin, iengr_@rawmin <= oengr_@rawmin" />
<TableEditFormPlugIn Name="RemoveEnumsTableEdit" Args="pointtype(calculated,telemetered)" />
Sample error message:
DBEditDisplaySchemaMerge_22520 [TID=0x737c] - Exception: DataSetDisplaySchema validation failed: The element 'DataSetTable' in namespace 'http://www.telvent.com/DataSetSchema' has invalid child element 'TableEditFormPlugIn' in namespace 'http://www.telvent.com/DataSetSchema'. List of possible elements expected: 'RowEditFormPlugIn, Template, ExcelTemplate, Field, Button, Comment, CustomServerProcess, Group' in namespace 'http://www.telvent.com/DataSetSchema'. {C:\Agents\C1\_work\149\s\CoreSDK\source\OASySDNA.Common.Xml\XmlValidator.cs:150}
DBEditDisplaySchemaMerge_22520 [TID=0x737c] - Merger.ProcessAllTableNodesInTable: (ProcessTableFile) Invalid XML file found: 'The element 'DataSetTable' in namespace 'http://www.telvent.com/DataSetSchema' has invalid child element 'TableEditFormPlugIn' in namespace 'http://www.telvent.com/DataSetSchema'. List of possible elements expected: 'RowEditFormPlugIn, Template, ExcelTemplate, Field, Button, Comment, CustomServerProcess, Group' in namespace 'http://www.telvent.com/DataSetSchema'.' at line 14. {C:\Agents\C2\_work\175\s\Client\source\DBEditDisplaySchemaMerge\Merger.cs:327
Invalid XML File. Skipping this file. See log file for more details.