Difference between revisions of "CeData"

From ADF Docs
Jump to: navigation, search
m (Reverted edits by Ecaxabu (Talk) to last revision by Ssmith)
 
Line 1: Line 1:
----
 
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
----
 
=[http://ynodyky.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=
 
----
 
=[http://ynodyky.co.cc CLICK HERE]=
 
----
 
</div>
 
 
== 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() ==
 
== ceData.getCEData() ==
The major method of the ceData component is the &quot;getCEData()&quot; method.  It allows you to get the data  
+
The major method of the ceData component is the "getCEData()" method.  It allows you to get the data  
  
 
== Data Structures ==
 
== 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:
 
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:
  
  &lt;cfdump var=&quot;#application.ADF.ceData.getCEData('Forum Categories&quot;)#&quot;&gt;
+
  <cfdump var="#application.ADF.ceData.getCEData('Forum Categories")#">
  
 
Returns the following data structure:
 
Returns the following data structure:
Line 24: Line 16:
 
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:
 
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:
  
&lt;pre&gt;
+
<pre>
&lt;cfscript&gt;
+
<cfscript>
   propertyValues = application.ADF.ceData.getCEData(&quot;Forum Categories&quot;);
+
   propertyValues = application.ADF.ceData.getCEData("Forum Categories");
 
   elementInfo = structNew();
 
   elementInfo = structNew();
 
   elementInfo.elementData = structNew();
 
   elementInfo.elementData = structNew();
 
   elementInfo.elementData.propertyValues = propertyValues;
 
   elementInfo.elementData.propertyValues = propertyValues;
&lt;/cfscript&gt;
+
</cfscript>
&lt;cfmodule template=&quot;/ADF/apps/pt_forums/renderhandlers/categories_default_rh.cfm&quot;
+
<cfmodule template="/ADF/apps/pt_forums/renderhandlers/categories_default_rh.cfm"
   elementInfo=&quot;#elementInfo#&quot;&gt;
+
   elementInfo="#elementInfo#">
  
&lt;/pre&gt;
+
</pre>
  
 
== 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)