Difference between revisions of "CeData"

From ADF Docs
Jump to: navigation, search
(Undo revision 4303 by Ecaxabu (Talk))
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 "getCEData()" method.  It allows you to get the data  
+
The major method of the ceData component is the &quot;getCEData()&quot; 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:
  
  <cfdump var="#application.ADF.ceData.getCEData('Forum Categories")#">
+
  &lt;cfdump var=&quot;#application.ADF.ceData.getCEData('Forum Categories&quot;)#&quot;&gt;
  
 
Returns the following data structure:
 
Returns the following data structure:
Line 16: Line 24:
 
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:
  
<pre>
+
&lt;pre&gt;
<cfscript>
+
&lt;cfscript&gt;
   propertyValues = application.ADF.ceData.getCEData("Forum Categories");
+
   propertyValues = application.ADF.ceData.getCEData(&quot;Forum Categories&quot;);
 
   elementInfo = structNew();
 
   elementInfo = structNew();
 
   elementInfo.elementData = structNew();
 
   elementInfo.elementData = structNew();
 
   elementInfo.elementData.propertyValues = propertyValues;
 
   elementInfo.elementData.propertyValues = propertyValues;
</cfscript>
+
&lt;/cfscript&gt;
<cfmodule template="/ADF/apps/pt_forums/renderhandlers/categories_default_rh.cfm"
+
&lt;cfmodule template=&quot;/ADF/apps/pt_forums/renderhandlers/categories_default_rh.cfm&quot;
   elementInfo="#elementInfo#">
+
   elementInfo=&quot;#elementInfo#&quot;&gt;
  
</pre>
+
&lt;/pre&gt;
  
 
== Examples ==
 
== Examples ==

Revision as of 23:17, 23 November 2010



Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly


CLICK HERE


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:

<pre> <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#">

</pre>

Examples

(coming soon)

Projects heavily using ceData

(coming soon)