Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

ColdFusion Components

< >

ColdFusion Components is a xml format created in 1995.

#2855on PLDB 29Years Old


Example from the web:
<cfcomponent> <cffunction name="allemployees" access="public" output="false" returntype="query"> <cfset var getNames=""> <cfquery name="getNames" datasource="cfdocexamples"> SELECT * FROM Employee </cfquery> </cffunction> <cffunction name="namesalarycontract" access="public" output="false" returntype="query"> <cfset var EmpList=""> <cfquery name="EmpList" datasource="cfdocexamples"> SELECT Firstname, Lastname, Salary, Contract FROM Employee </cfquery> </cffunction> <cffunction name="fullname" access="public" output="false" returntype="query"> <cfset var engquery=""> <cfquery name="engquery" datasource="cfdocexamples"> SELECT FirstName || ' ' || LastName AS FullName FROM Employee </cfquery> </cffunction> <cffunction name="bydept" access="public" output="false" returntype="query"> <cfset var deptquery=""> <cfquery name="deptquery" datasource="cfdocexamples"> SELECT Dept_ID, FirstName || ' ' || LastName AS FullName FROM Employee ORDER BY Dept_ID </cfquery> </cffunction> <cffunction name="employeebyURLID" access="public" output="false" returntype="query"> <cfset var GetRecordtoUpdate=""> <cfquery name="GetRecordtoUpdate" datasource="cfdocexamples"> SELECT * FROM Employee WHERE Emp_ID = #URL.Emp_ID# </cfquery> </cffunction> <cffunction name="deleteemployee" access="public" output="false" returntype="void"> <cfset var DeleteEmployee=""> <cfquery name="DeleteEmployee" datasource="cfdocexamples"> DELETE FROM Employee WHERE Emp_ID = #Form.Emp_ID# </cfquery> </cffunction> <cffunction name="distinctlocs"access="public" output="false" returntype="query"> <cfset var GetDepartments=""> <cfquery name="GetDepartments" datasource="cfdocexamples"> SELECT DISTINCT Location FROM Departmt </cfquery> </cffunction> </cfcomponent>

- Build the next great programming language Add Issues About Search Keywords Livestreams Labs Resources Acknowledgements

Built with Scroll v154.3.0