Miscellaneous
columnDataForProperty()
Signature
Section titled “Signature”columnDataForProperty() — returns any
Description
Section titled “Description”Returns a struct with data for the named property.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
property | string | yes | — | Name of column to retrieve data for. |
Examples
Section titled “Examples”columnDataForProperty(property) <!--- Get an object, set a value and then see if the property exists --->
<cfset employee = model("employee").new()>
<cfset employee.columnDataForProperty("firstName")><!--- returns column struct --->