The 2.2 release of the DataFlex AJAX Library is designed to work with DataFlex and previous DataFlex applications since the 2010/16.0 release. Below you will find a summary of the changes since version 2.1 of the AJAX Library. See the “release notes” from the menu items for the library for a more detailed explanation.
Both the ’classic’ and ’business’ theme have been updated with new icons, buttons and other small improvements to improve visual appeal and improving the loading speed, reducing the amount of flicker by using sprite techniques when loading pages.
The new expression data binding allows you to directly call functions in your DataFlex application that will be executed to show a calculated value at the client side (HTML). For example: <span vdfDatabinding=”e:CalcAmount” /> where CalcAmount is the name of a published function at the DataFlex Server side that should perform the calculation and return the result.
At some point you will want to call a function in your DataFlex application directly from the browser. Now you can do that very easy using the new VdfCall interface. You can make those AJAX calls to the server within a single line of code, passing function name, the parameters as an array, and a reference to a client side handler function. Since the calls are placed asynchronously, you use the handler function to present follow up on the result of the call.
Data bound server call
Similar to the Vdf Call above, but the data bound call makes sure that all buffers at the server side contain the records that are currently active at the client, making it easy to work with the buffers. Buffer values that are changed at the server side during the call will be shown upon return of the call.
This allows an application to easily get the server side data dictionary label for a field. For example: <span vdfControlType=”vdf.core.Label” vdfDataBinding=”customer.name” />.
The missing clear all function has been added to the Data Dictionary Object system. It will clear the complete form just as the DataFlex for Windows performs a “clear all”.
Improved DDO structure support
The way the information from the data dictionaries between the client side and server side is exchanged has been redesigned to be able to handle more complex database forms.
Error details & CollapsePanel
Errors now have a “details” section that will show error details. By default the details are hidden. This allows for more user friendly messages for the end-user while still providing as much as possible detail for the developer.