Difference between revisions of "CeData"

From ADF Docs
Jump to: navigation, search
(Created page with '== Overview == ceData is a component in the ADF (/lib/ceData/ceData_x_x). The goal of this component is to allow you to query Custom Element data through simple CFC method calls…')
 
m (Reverted edits by Ecaxabu (Talk) to last revision by Ssmith)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
 
ceData is a component in the ADF (/lib/ceData/ceData_x_x).  The goal of this component is to allow you to query Custom Element data through simple CFC method calls.  By adding programmatic access to CommonSpot Custom Elements you can extend your applications by connecting Custom Elements together.
 
ceData is a component in the ADF (/lib/ceData/ceData_x_x).  The goal of this component is to allow you to query Custom Element data through simple CFC method calls.  By adding programmatic access to CommonSpot Custom Elements you can extend your applications by connecting Custom Elements together.
 +
 +
== ceData.getCEData() ==
 +
The major method of the ceData component is the "getCEData()" method.  It allows you to get the data
  
 
== Data Structures ==
 
== Data Structures ==
Line 24: Line 27:
  
 
</pre>
 
</pre>
 
== ceData.getCEData() ==
 
The major method of the ceData component is the "getCEData()" method.  It allows you to get the data
 
  
 
== Examples ==
 
== Examples ==

Latest revision as of 17:32, 24 November 2010

Overview

ceData is a component in the ADF (/lib/ceData/ceData_x_x). The goal of this component is to allow you to query Custom Element data through simple CFC method calls. By adding programmatic access to CommonSpot Custom Elements you can extend your applications by connecting Custom Elements together.

ceData.getCEData()

The major method of the ceData component is the "getCEData()" method. It allows you to get the data

Data Structures

All of the data structures returned and used within the component take on the same format passed to Render Handlers. For example executing the following code in the Community Site:

<cfdump var="#application.ADF.ceData.getCEData('Forum Categories")#">

Returns the following data structure:

CeData getCEData.png

Since ceData keeps the same data structure that a typical CommonSpot Custom Element would return to a Render Handler it is possible to both programmatically get data for a Custom Element and call a standard Render Handler like this:

<cfscript>
   propertyValues = application.ADF.ceData.getCEData("Forum Categories");
   elementInfo = structNew();
   elementInfo.elementData = structNew();
   elementInfo.elementData.propertyValues = propertyValues;
</cfscript>
<cfmodule template="/ADF/apps/pt_forums/renderhandlers/categories_default_rh.cfm"
   elementInfo="#elementInfo#">

Examples

(coming soon)

Projects heavily using ceData

(coming soon)