New Features
TX Text Control 28.0 provides the following new features:
Conditional Instructions
As part of the implementation of form fields, a complete rule engine is available to enable workflows and logic within document forms. By using the built-in ManageConditionalInstructionsDialog dialog or Conditional Instructions sidebar, the ConditionalInstructionDialog dialog is provided to define objects of type ConditionalInstruction. An instance of that class represents a list of form field related Instruction elements that are executed when specific requirements, represented by an array of Condition objects, are fulfilled. It is added to an instance of the ConditionalInstructionCollection class, that can be obtained with the FormFieldCollection.ConditionalInstructions property. A condition of a ConditionalInstruction is met, when the comparison between the value of the related FormField and the required comparison value succeeded. An object of type Instruction represents one of up to four types of actions that can be executed to the related form field: Changing the FormField.Enabled property, marking the form field value as valid or invalid, setting a new value and replacing the SelectionFormField.Items array with another string array. Furthermore, an else instruction value can be defined for that instruction, which is applied when the corresponding conditions are not fulfilled. More information about conditional instructions can be found in Creating Conditional Instructions for Form Fields.
Enhanced JavaScript API
The JavaScript API of the TX Text Control HTML5 Document Editor has been greatly enhanced. Most parts of the extensive programming interface the .NET versions of Text Control provide are now also accessible in the Browser. The existing parts of the API are unaffected by this, so existing programs will continue to work without having to make adjustments. Because of the asynchronous nature of web based programming, most of the properties are implemented as explicit getter and setter functions which take callback functions as parameters to accept requested values and possible error messages. For an overview of the new features and a starting point to get a feeling for how to use the API enhancements, best take a look at the properties and functions of the main TXTextControl object and continue from there.
HTML5 Document Editor Reconnect Feature
The TX Text Control HTML5 Document Editor is now capable of reestablishing a lost client connection to a certain extent. In cases of short connection losses (for example due to bad mobile network coverage) the document editor will now try to reconnect to the server for a certain amount of time instead of immediately abandon the current session.