Calling an ADF Library Component

From ADF Docs
Revision as of 05:10, 15 April 2010 by Rwest (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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:

Adf component in filter.png

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