|Delphi Clinic||C++Builder Gate||Training & Consultancy||Delphi Notes Weblog||Dr.Bob's Webshop|
WebSnap Custom Adapter Source Generator
The use of the on-line version of BobAdapt (my WebSnap custom adapter source generator) is really simple: just enter the name of your unit filename, the name of your custom WebSnap adapter (it will get a TB42 prefix), and finally up to 9 Adapter Field names (you also get one Adapter Action).
The Adapter Fields will implement the GetValue in such a way that they retain their value (useful when entering data, but raising an exception in the OnValidate event handler). This prevents the irritating clearing of all fields (which may be useful in the LoginFormAdapter, but not in a CustomerInfoAdapter).
Note: Make sure to enter proper identifiers (starting with a letter or underscore, etc.) or the resulting code won't compile!
For more information and details about the resulting custom Adapter source code, I can recommend my "WebSnap" Clinic, which also shows how to get more out of your WebSnap applications by creating powerful custom adapters (using the GUI version of BobAdapt for Delphi 6-7 or Kylix 3).
I have installed and tested the resulting WebSnap Adapters with Delphi 6-7 as well as Kylix 2-3, and they seem to work fine.
However, please understand that the resulting source code is provided as-is, without warranty of any kind.
And as always, I welcome all feedback and comments (by e-mail). Thanks in advance!