|
Table Of Contents
|
Path : Home » ColdFusion Products » Database Management » UDI - Universal Database Interface » How to's (Common Problems Solved) » How to: Dynamic Includes
UDI - How to: Dynamic IncludesDynamic includes are a powerful feature of UDI that allow you to perform custom processing before and after the database gets update with an INSERT, UPDATE or DELETE action. For this full list of Dynamic Include options, see UDI Attributes.
Why Dynamic Includes are UsefulHere are some examples of what you can do with this ability:
Real world examples from Digital Crew projects:
Debugging Dynamic IncludesMake sure to turn the UDI debugging option on when testing your dynamic includes. Use the UDI showdebug="yes" option to display the debugging option. With debugging enabled, you will be able to display the iframe that performs the updating by clicking the "Show Debug" option at the bottom of the edit window. If you have an error in your include file, scroll to the bottom of the iframe to see the error. The Include File Pathwhen you say something like includeOnInsertOrUpdateOrDelete="udi_onInsertOrUpdateOrDelete.cfm", the file udi_onInsertOrUpdateOrDelete.cfm should be in the root folder in this example. We recommend you make a "UDIActions" folder within your project and put your UDI dynamic include files in there. includeOnInsertOrUpdateOrDelete="pages/UDIActions/udi_onInsertOrUpdateOrDelete.cfm". UDI will now try and include the file "pages/UDIActions/udi_onInsertOrUpdateOrDelete.cfm" - in this example, the "pages" folder should be in the root of your project. Tips
|