Personal tools


Calling an ADF Library Component

From ADF Docs

Calling an ADF Library Component
Jump to: navigation, search

Overview

There are many ADF Library (API) components. They are all easy to call anywhere in your code. All of the latest ADF Library Components are loaded into your site when it is configured to use the ADF.

Note: See Installing the ADF and Site Configuration (ADF.cfc) for more info

Making a call

You can use the following code in any code (Custom Script, Render Handler, Custom Field Type etc...) you want inside your site.

<cfset lastMonth = application.ADF.csDate.lastMonth()>

Alternatively you can also use this coding method for any CommonSpot data filter:

Image:Adf_component_in_filter.png

Note: This is not to be confused with Calling an ADF Library Component in your ADF Application